Package org.opencms.cmis
Class CmsCmisRelationHelper.RelationKey
java.lang.Object
org.opencms.cmis.CmsCmisRelationHelper.RelationKey
- Enclosing class:
- CmsCmisRelationHelper
A class which contains the necessary information to identify a relation object.
-
Constructor Summary
ConstructorDescriptionRelationKey
(CmsUUID sourceId, CmsUUID targetId, String relType) Creates a new relation key. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillRelation
(CmsObject cms) Reads the actual resource and relation data from the OpenCms VFS.Gets the relation object.Gets the relation type.Gets the source resource of the relation.Gets the source id.Gets the target id of the relation.void
setRelType
(String relType) Sets the relation type.void
setSourceId
(CmsUUID sourceId) Sets the source id.void
setTargetId
(CmsUUID targetId) Sets the target id.toString()
-
Constructor Details
-
RelationKey
Creates a new relation key.- Parameters:
sourceId
- the source idtargetId
- the target idrelType
- the relation type
-
-
Method Details
-
fillRelation
Reads the actual resource and relation data from the OpenCms VFS.- Parameters:
cms
- the CMS context to use for reading the data
-
getRelation
Gets the relation object.- Returns:
- the relation object
-
getRelType
Gets the relation type.- Returns:
- the relation type
-
getSource
Gets the source resource of the relation.- Returns:
- the source of the relation
-
getSourceId
Gets the source id.- Returns:
- the source id
-
getTargetId
Gets the target id of the relation.- Returns:
- the target id
-
setRelType
Sets the relation type.- Parameters:
relType
- the relation type
-
setSourceId
Sets the source id.- Parameters:
sourceId
- the source id
-
setTargetId
Sets the target id.- Parameters:
targetId
- the target id
-
toString
-