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, getClient, resource, resourcepublic RelationImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<RelationType> getRelationTypes(String type) throws AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getRelationTypes in interface BaseRelationAccessDeniedExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void addRelation(String nodeAId, String nodeBId, long relTypeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
addRelation in interface BaseRelationLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void deleteRelation(long relationId)
throws LockException,
PathNotFoundException,
AccessDeniedException,
RepositoryException,
DatabaseException,
UnknowException,
WebserviceException
deleteRelation in interface BaseRelationLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<Relation> getRelations(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getRelations in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<RelationGroup> getRelationGroups(String uuid) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
getRelationGroups in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic List<RelationGroup> getAllRelationGroups() throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
getAllRelationGroups in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void addRelationGroup(String uuid, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
addRelationGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void addNodeToGroup(String uuid, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknowException, WebserviceException
addNodeToGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionRepositoryExceptionUnknowExceptionWebserviceExceptionpublic void deleteRelationGroupItem(String uuid, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknowException, WebserviceException
deleteRelationGroupItem in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionRepositoryExceptionUnknowExceptionWebserviceExceptionpublic void deleteRelationGroup(long groupId)
throws AccessDeniedException,
DatabaseException,
PathNotFoundException,
RepositoryException,
UnknowException,
WebserviceException
deleteRelationGroup in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionRepositoryExceptionUnknowExceptionWebserviceExceptionpublic RelationGroup findRelationGroup(long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknowException, WebserviceException
findRelationGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionRepositoryExceptionUnknowExceptionWebserviceExceptionpublic void setRelationGroupName(long groupId,
String groupName)
throws AccessDeniedException,
DatabaseException,
UnknowException,
WebserviceException
setRelationGroupName in interface BaseRelationAccessDeniedExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionCopyright © 2020 Open Knowledge Management System S.L.. All Rights Reserved.