Package com.openkm.sdk4j.definition
Interface BaseRelation
-
- All Known Implementing Classes:
RelationImpl
public interface BaseRelationBaseRelation- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(String nodeAId, String nodeBId, long relTypeId)Add relation.voidaddGroup(String uuid, String groupName, long type)Add 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.RelationGroupResultSetgetAllRelationGroups(long relationTypeId, String filter, int offset, int limit)Gets all relation groups.RelationGroupgetGroup(long groupId)Get group.List<RelationGroup>getRelationGroups(String uuid)Gets relation groups.List<Relation>getRelations(String uuid)Gets relations.List<RelationType>getRelationTypes(String type)Gets relation types.voidsetGroupName(long groupId, String groupName)Sets relation group name.
-
-
-
Method Detail
-
getRelationTypes
List<RelationType> getRelationTypes(String type) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Gets relation types.- Parameters:
type- the type- Returns:
- the relation types
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
add
void add(String nodeAId, String nodeBId, long relTypeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Add relation.- 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
void delete(long relationId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceExceptionDelete relation.- 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
List<Relation> getRelations(String uuid) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Gets relations.- 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
List<RelationGroup> getRelationGroups(String uuid) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Gets relation groups.- 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
RelationGroupResultSet getAllRelationGroups(long relationTypeId, String filter, int offset, int limit) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Gets all relation groups.- 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
void addGroup(String uuid, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Add relation group.- 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
void addNodeToGroup(String uuid, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException
Add node to group.- 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
void deleteItemFromGroup(String uuid, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknownException, WebserviceException
Delete item from group.- 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
void deleteGroup(long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknownException, WebserviceExceptionDelete group.- 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
RelationGroup getGroup(long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException
Get group.- 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
void setGroupName(long groupId, String groupName) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceExceptionSets relation group name.- Parameters:
groupId- the group idgroupName- the group name- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-