Package com.openkm.sdk4j.impl
Class RelationImpl
java.lang.Object
com.openkm.sdk4j.impl.ClientImpl
com.openkm.sdk4j.impl.RelationImpl
- All Implemented Interfaces:
BaseRelation,Serializable
RelationImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd relation.voidAdd relation group.voidaddNodeToGroup(String uuid, long groupId) Add node to group.voiddelete(long relationId) Delete relation.voiddeleteGroup(long groupId) Delete group.voiddeleteItemFromGroup(String uuid, long groupId) Delete item from group.getAllRelationGroups(long relationTypeId, String filter, int offset, int limit) Gets all relation groups.getGroup(long groupId) Get group.getRelationGroups(String uuid) Gets relation groups.getRelations(String uuid) Gets relations.getRelationTypes(String type) Gets relation types.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenvoidsetGroupName(long groupId, String groupName) Sets relation group name.Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
RelationImpl
RelationImpl
-
-
Method Details
-
setAuthorizationToken
setAuthenticationToken -
getRelationTypes
public List<RelationType> getRelationTypes(String type) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseRelationGets relation types.- Specified by:
getRelationTypesin interfaceBaseRelation- Parameters:
type- the type- Returns:
- the relation types
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
add
public void add(String nodeAId, String nodeBId, long relTypeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseRelationAdd relation.- Specified by:
addin interfaceBaseRelation- Parameters:
nodeAId- the node a idnodeBId- the node b idrelTypeId- the rel type id- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
delete
public void delete(long relationId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseRelationDelete relation.- Specified by:
deletein interfaceBaseRelation- Parameters:
relationId- the relation id- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getRelations
public List<Relation> getRelations(String uuid) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseRelationGets relations.- Specified by:
getRelationsin interfaceBaseRelation- Parameters:
uuid- the uuid- Returns:
- the relations
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getRelationGroups
public List<RelationGroup> getRelationGroups(String uuid) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException Description copied from interface:BaseRelationGets relation groups.- Specified by:
getRelationGroupsin interfaceBaseRelation- Parameters:
uuid- the uuid- Returns:
- the relation groups
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAllRelationGroups
public RelationGroupResultSet getAllRelationGroups(long relationTypeId, String filter, int offset, int limit) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException Description copied from interface:BaseRelationGets all relation groups.- Specified by:
getAllRelationGroupsin interfaceBaseRelation- Parameters:
relationTypeId- the relation type idfilter- the filteroffset- the offsetlimit- the limit- Returns:
- the all relation groups
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
addGroup
public void addGroup(String uuid, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseRelationAdd relation group.- Specified by:
addGroupin interfaceBaseRelation- Parameters:
uuid- the uuidgroupName- the group nametype- the type- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
addNodeToGroup
public void addNodeToGroup(String uuid, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException Description copied from interface:BaseRelationAdd node to group.- Specified by:
addNodeToGroupin interfaceBaseRelation- Parameters:
uuid- the uuidgroupId- the group id- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteItemFromGroup
public void deleteItemFromGroup(String uuid, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknownException, WebserviceException Description copied from interface:BaseRelationDelete item from group.- Specified by:
deleteItemFromGroupin interfaceBaseRelation- Parameters:
uuid- the uuidgroupId- the group id- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteGroup
public void deleteGroup(long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknownException, WebserviceException Description copied from interface:BaseRelationDelete group.- Specified by:
deleteGroupin interfaceBaseRelation- Parameters:
groupId- the group id- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getGroup
public RelationGroup getGroup(long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException Description copied from interface:BaseRelationGet group.- Specified by:
getGroupin interfaceBaseRelation- Parameters:
groupId- the group id- Returns:
- the relation group
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setGroupName
public void setGroupName(long groupId, String groupName) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseRelationSets relation group name.- Specified by:
setGroupNamein interfaceBaseRelation- Parameters:
groupId- the group idgroupName- the group name- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-