Package org.nuxeo.ecm.core.api
Class InstanceRef
- java.lang.Object
-
- org.nuxeo.ecm.core.api.InstanceRef
-
- All Implemented Interfaces:
Serializable,DocumentRef
public class InstanceRef extends Object implements DocumentRef
Document repository reference including the principal owner of the session.- Since:
- 7.10
- Author:
- Stephane Lacoin at Nuxeo (aka matic)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.nuxeo.ecm.core.api.DocumentRef
ID, INSTANCE, PATH
-
-
Constructor Summary
Constructors Constructor Description InstanceRef(DocumentModel doc, NuxeoPrincipal principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()Objectreference()Gets the reference value.inttype()Gets the type of the reference.
-
-
-
Constructor Detail
-
InstanceRef
public InstanceRef(DocumentModel doc, NuxeoPrincipal principal)
-
-
Method Detail
-
type
public int type()
Description copied from interface:DocumentRefGets the type of the reference.- Specified by:
typein interfaceDocumentRef- Returns:
- the type of the reference
-
reference
public Object reference()
Description copied from interface:DocumentRefGets 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:
referencein interfaceDocumentRef- Returns:
- the reference value
-
-