Class AbsoluteDocumentRef

java.lang.Object
org.nuxeo.ecm.automation.core.impl.adapters.helper.AbsoluteDocumentRef
All Implemented Interfaces:
Serializable, DocumentRef

public class AbsoluteDocumentRef extends Object implements DocumentRef
An absolute reference to a DocumentModel, composed of:
 - a repository name
 - a DocumentRef
 
Since:
2023.5
See Also:
  • Field Details

    • repositoryName

      protected final String repositoryName
    • documentRef

      protected final DocumentRef documentRef
  • Constructor Details

    • AbsoluteDocumentRef

      public AbsoluteDocumentRef(String repositoryName, DocumentRef documentRef)
  • Method Details

    • type

      public int type()
      Description copied from interface: DocumentRef
      Gets the type of the reference.
      Specified by:
      type in interface DocumentRef
      Returns:
      the type of the reference
    • reference

      public Object reference()
      Description copied from interface: DocumentRef
      Gets the reference value.

      For an ID reference, this is the document UUID.

      For a PATH reference, this is the document path.

      For an INSTANCE reference this is the document itself.

      Specified by:
      reference in interface DocumentRef
      Returns:
      the reference value
    • getRepositoryName

      public String getRepositoryName()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object