public static class CmsCmisRelationHelper.RelationKey extends java.lang.Object
Constructor and Description |
---|
CmsCmisRelationHelper.RelationKey(CmsUUID sourceId,
CmsUUID targetId,
java.lang.String relType)
Creates a new relation key.
|
Modifier and Type | Method and Description |
---|---|
void |
fillRelation(CmsObject cms)
Reads the actual resource and relation data from the OpenCms VFS.
|
CmsRelation |
getRelation()
Gets the relation object.
|
java.lang.String |
getRelType()
Gets the relation type.
|
CmsResource |
getSource()
Gets the source resource of the relation.
|
CmsUUID |
getSourceId()
Gets the source id.
|
CmsUUID |
getTargetId()
Gets the target id of the relation.
|
void |
setRelType(java.lang.String relType)
Sets the relation type.
|
void |
setSourceId(CmsUUID sourceId)
Sets the source id.
|
void |
setTargetId(CmsUUID targetId)
Sets the target id.
|
java.lang.String |
toString() |
public CmsCmisRelationHelper.RelationKey(CmsUUID sourceId, CmsUUID targetId, java.lang.String relType)
sourceId
- the source idtargetId
- the target idrelType
- the relation typepublic void fillRelation(CmsObject cms)
cms
- the CMS context to use for reading the datapublic CmsRelation getRelation()
public java.lang.String getRelType()
public CmsResource getSource()
public CmsUUID getSourceId()
public CmsUUID getTargetId()
public void setRelType(java.lang.String relType)
relType
- the relation typepublic void setSourceId(CmsUUID sourceId)
sourceId
- the source idpublic void setTargetId(CmsUUID targetId)
targetId
- the target idpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()