public class RelationImpl extends ClientImpl implements BaseRelation
| Constructor and Description |
|---|
RelationImpl(String host,
String user,
String password)
RelationImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeToGroup(String nodeId,
long groupId) |
void |
addRelation(String nodeAId,
String nodeBId,
long relTypeId) |
void |
addRelationGroup(String nodeId,
String groupName,
long type) |
void |
deleteRelation(long relationId) |
void |
deleteRelationGroup(String nodeId,
long groupId) |
RelationGroup |
findRelationGroup(long groupId) |
List<RelationGroup> |
getRelationGroups(String nodeId) |
List<Relation> |
getRelations(String nodeId) |
List<RelationType> |
getRelationTypes(String type) |
void |
setRelationGroupName(long groupId,
String groupName) |
getClientpublic 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 nodeId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getRelations in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<RelationGroup> getRelationGroups(String nodeId) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
getRelationGroups in interface BaseRelationAccessDeniedExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void addRelationGroup(String nodeId, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
addRelationGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void addNodeToGroup(String nodeId, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknowException, WebserviceException
addNodeToGroup in interface BaseRelationAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionRepositoryExceptionUnknowExceptionWebserviceExceptionpublic void deleteRelationGroup(String nodeId, 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 © 2016 Open Knowledge Management System S.L.. All rights reserved.