Package com.emc.documentum.rest.dfc
Interface RelationManager
public interface RelationManager
The relation manager.
-
Method Summary
Modifier and TypeMethodDescriptioncreateRelation
(RelationObject relationObject) Create a relation object.void
deleteRelationById
(String relationId) Delete relation by ID.getChildRelatives
(String parentId, String relationName, AttributeView attributeView) Returns a collection of RelationObject objects where the given object is the parent of all these relations and, and the relation_name is given, too.getParentRelatives
(String childId, String relationName, AttributeView attributeView) Returns a collection of RelationObject objects where the given object is the child of all these relations and, and the relation_name is given, too.getRelationById
(String relationId, AttributeView attributeView) Get relation object by relation ID.
-
Method Details
-
createRelation
RelationObject createRelation(RelationObject relationObject) throws com.documentum.fc.common.DfException Create a relation object.- Parameters:
relationObject
- relation to create- Returns:
- the created relation object
- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
getRelationById
RelationObject getRelationById(String relationId, AttributeView attributeView) throws com.documentum.fc.common.DfException Get relation object by relation ID.- Parameters:
relationId
- relation object IDattributeView
- attribute view- Returns:
- relation object
- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
getParentRelatives
List<RelationObject> getParentRelatives(String childId, String relationName, AttributeView attributeView) throws com.documentum.fc.common.DfException Returns a collection of RelationObject objects where the given object is the child of all these relations and, and the relation_name is given, too. *- Parameters:
childId
- the child object IDrelationName
- the relation nameattributeView
- the attribute view on the result- Returns:
- a collection of relations
- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
getChildRelatives
List<RelationObject> getChildRelatives(String parentId, String relationName, AttributeView attributeView) throws com.documentum.fc.common.DfException Returns a collection of RelationObject objects where the given object is the parent of all these relations and, and the relation_name is given, too.- Parameters:
parentId
- the parent object IDrelationName
- the relation nameattributeView
- the attribute view on the result- Returns:
- a collection of relations.
- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
deleteRelationById
Delete relation by ID.- Parameters:
relationId
- relation Id- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-