public class RelationImpl extends ClientImpl implements BaseRelation, Serializable
| Constructor and Description |
|---|
RelationImpl(String host)
RelationImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeToGroup(String uuid,
long groupId)
Add node to group.
|
void |
addRelation(String nodeAId,
String nodeBId,
long relTypeId)
Add relation.
|
void |
addRelationGroup(String uuid,
String groupName,
long type)
Add relation group.
|
void |
deleteRelation(long relationId)
Delete relation.
|
void |
deleteRelationGroup(long groupId)
Delete relation group.
|
void |
deleteRelationGroupItem(String uuid,
long groupId)
Delete relation group item.
|
RelationGroup |
findRelationGroup(long groupId)
Find relation group relation group.
|
List<RelationGroup> |
getAllRelationGroups()
Gets all relation groups.
|
List<RelationGroup> |
getRelationGroups(String uuid)
Gets relation groups.
|
List<Relation> |
getRelations(String uuid)
Gets relations.
|
List<RelationType> |
getRelationTypes(String type)
Gets relation types.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setRelationGroupName(long groupId,
String groupName)
Sets relation group name.
|
getClient, resource, resourcepublic RelationImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<RelationType> getRelationTypes(String type) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException
BaseRelationgetRelationTypes in interface BaseRelationtype - the typeAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void addRelation(String nodeAId, String nodeBId, long relTypeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseRelationaddRelation in interface BaseRelationnodeAId - the node a idnodeBId - the node b idrelTypeId - the rel type idLockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void deleteRelation(long relationId)
throws LockException,
PathNotFoundException,
AccessDeniedException,
RepositoryException,
DatabaseException,
UnknownException,
WebserviceException
BaseRelationdeleteRelation in interface BaseRelationrelationId - the relation idLockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<Relation> getRelations(String uuid) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseRelationgetRelations in interface BaseRelationuuid - the uuidAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<RelationGroup> getRelationGroups(String uuid) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseRelationgetRelationGroups in interface BaseRelationuuid - the uuidAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionPathNotFoundException - the path not found exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<RelationGroup> getAllRelationGroups() throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseRelationgetAllRelationGroups in interface BaseRelationAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionPathNotFoundException - the path not found exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void addRelationGroup(String uuid, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseRelationaddRelationGroup in interface BaseRelationuuid - the uuidgroupName - the group nametype - the typeAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void addNodeToGroup(String uuid, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException
BaseRelationaddNodeToGroup in interface BaseRelationuuid - the uuidgroupId - the group idAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void deleteRelationGroupItem(String uuid, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknownException, WebserviceException
BaseRelationdeleteRelationGroupItem in interface BaseRelationuuid - the uuidgroupId - the group idAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionPathNotFoundException - the path not found exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void deleteRelationGroup(long groupId)
throws AccessDeniedException,
DatabaseException,
PathNotFoundException,
RepositoryException,
UnknownException,
WebserviceException
BaseRelationdeleteRelationGroup in interface BaseRelationgroupId - the group idAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionPathNotFoundException - the path not found exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic RelationGroup findRelationGroup(long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException
BaseRelationfindRelationGroup in interface BaseRelationgroupId - the group idAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void setRelationGroupName(long groupId,
String groupName)
throws AccessDeniedException,
DatabaseException,
UnknownException,
WebserviceException
BaseRelationsetRelationGroupName in interface BaseRelationgroupId - the group idgroupName - the group nameAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionCopyright © 2022 Open Knowledge Management System S.L.. All Rights Reserved.