Package com.emc.d2fs.interfaces
Interface IRelationService
- All Superinterfaces:
ID2fsService
Document relation management.
-
Method Summary
Modifier and TypeMethodDescriptionGet child id for specified relationchildRelations
(Context context, String parentId) Get child relation list for specified parent documentchildrenId
(Context context, String relationId) Get children ids for specified relationcreateRelation
(Context context, String relationName, String linkType, String childId, String parentId, String description) Create parent/child relation between documentsboolean
destroyRelation
(Context context, String relationId) Destroy relation between documentsdefault List<RelationTypeConfig>
getRelationTypesConfig
(Context context) Get parent id for specified relationparentRelations
(Context context, String childId) Get parent relations list for specified child documentMethods inherited from interface com.emc.d2fs.interfaces.ID2fsService
isRemote, setRemote
-
Method Details
-
createRelation
String createRelation(Context context, String relationName, String linkType, String childId, String parentId, String description) throws Exception Create parent/child relation between documents- Parameters:
context
-Context
object containing informations about client/sessionrelationName
- : the config name of the relationlinkType
- : "relation" , "vd" , "both"childId
- String value of child document idparentId
- String value of parent document id- Returns:
- String value of relation id
- Throws:
Exception
- Since:
- 4.1.0
-
destroyRelation
Destroy relation between documents -
childId
Get child id for specified relation- Parameters:
context
-Context
object containing informations about client/sessionrelationId
- String value of relation id- Returns:
- String value of document id
- Throws:
D2fsException
-
childrenId
Get children ids for specified relation- Parameters:
context
-Context
object containing informations about client/sessionrelationId
- String value of relation id- Returns:
- String list of children ids
- Throws:
D2fsException
- Since:
- 4.0.1
-
parentId
Get parent id for specified relation- Parameters:
context
-Context
object containing informations about client/sessionrelationId
- String value of relation id- Returns:
- String value of parent id
- Throws:
D2fsException
-
childRelations
Get child relation list for specified parent document- Parameters:
context
-Context
object containing informations about client/sessionparentId
- String value of parent id- Returns:
- String list of relation ids
- Throws:
D2fsException
-
parentRelations
Get parent relations list for specified child document- Parameters:
context
-Context
object containing informations about client/sessionchildId
- String value of child document- Returns:
- String list of relations ids
- Throws:
D2fsException
- Since:
- 4.0.1
-
getRelationTypesConfig
- Throws:
Exception
-