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 aDocumentModel
, composed of:- a repository name - a
DocumentRef
- Since:
- 2023.5
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentRef
documentRef
protected String
repositoryName
-
Fields inherited from interface org.nuxeo.ecm.core.api.DocumentRef
ID, INSTANCE, PATH
-
-
Constructor Summary
Constructors Constructor Description AbsoluteDocumentRef(String repositoryName, DocumentRef documentRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getRepositoryName()
int
hashCode()
Object
reference()
Gets the reference value.int
type()
Gets the type of the reference.
-
-
-
Field Detail
-
repositoryName
protected final String repositoryName
-
documentRef
protected final DocumentRef documentRef
-
-
Constructor Detail
-
AbsoluteDocumentRef
public AbsoluteDocumentRef(String repositoryName, DocumentRef documentRef)
-
-
Method Detail
-
type
public int type()
Description copied from interface:DocumentRef
Gets the type of the reference.- Specified by:
type
in interfaceDocumentRef
- 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 interfaceDocumentRef
- Returns:
- the reference value
-
getRepositoryName
public String getRepositoryName()
-
-