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) |
void |
addRelation(String nodeAId,
String nodeBId,
long relTypeId) |
void |
addRelationGroup(String uuid,
String groupName,
long type) |
void |
deleteRelation(long relationId) |
void |
deleteRelationGroup(long groupId) |
void |
deleteRelationGroupItem(String uuid,
long groupId) |
RelationGroup |
findRelationGroup(long groupId) |
List<RelationGroup> |
getAllRelationGroups() |
List<RelationGroup> |
getRelationGroups(String uuid) |
List<Relation> |
getRelations(String uuid) |
List<RelationType> |
getRelationTypes(String type) |
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setRelationGroupName(long groupId,
String groupName) |
getClient, resource, resourcepublic RelationImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<RelationType> getRelationTypes(String type) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException
getRelationTypes in interface BaseRelationAccessDeniedExceptionDatabaseExceptionUnknownExceptionWebserviceExceptionpublic void addRelation(String nodeAId, String nodeBId, long relTypeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
addRelation in interface BaseRelationLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknownExceptionWebserviceExceptionpublic void deleteRelation(long relationId)
throws LockException,
PathNotFoundException,
AccessDeniedException,
RepositoryException,
DatabaseException,
UnknownException,
WebserviceException
deleteRelation in interface BaseRelationLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknownExceptionWebserviceExceptionpublic List<Relation> getRelations(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
getRelations in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknownExceptionWebserviceExceptionpublic List<RelationGroup> getRelationGroups(String uuid) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
getRelationGroups in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionUnknownExceptionWebserviceExceptionpublic List<RelationGroup> getAllRelationGroups() throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
getAllRelationGroups in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionUnknownExceptionWebserviceExceptionpublic void addRelationGroup(String uuid, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
addRelationGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionUnknownExceptionWebserviceExceptionpublic void addNodeToGroup(String uuid, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException
addNodeToGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionRepositoryExceptionUnknownExceptionWebserviceExceptionpublic void deleteRelationGroupItem(String uuid, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknownException, WebserviceException
deleteRelationGroupItem in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionRepositoryExceptionUnknownExceptionWebserviceExceptionpublic void deleteRelationGroup(long groupId)
throws AccessDeniedException,
DatabaseException,
PathNotFoundException,
RepositoryException,
UnknownException,
WebserviceException
deleteRelationGroup in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionRepositoryExceptionUnknownExceptionWebserviceExceptionpublic RelationGroup findRelationGroup(long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknownException, WebserviceException
findRelationGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionRepositoryExceptionUnknownExceptionWebserviceExceptionpublic void setRelationGroupName(long groupId,
String groupName)
throws AccessDeniedException,
DatabaseException,
UnknownException,
WebserviceException
setRelationGroupName in interface BaseRelationAccessDeniedExceptionDatabaseExceptionUnknownExceptionWebserviceExceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.