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) |
getClient
public List<RelationType> getRelationTypes(String type) throws AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getRelationTypes
in interface BaseRelation
AccessDeniedException
DatabaseException
UnknowException
WebserviceException
public void addRelation(String nodeAId, String nodeBId, long relTypeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
addRelation
in interface BaseRelation
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void deleteRelation(long relationId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
deleteRelation
in interface BaseRelation
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public List<Relation> getRelations(String nodeId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getRelations
in interface BaseRelation
AccessDeniedException
PathNotFoundException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public List<RelationGroup> getRelationGroups(String nodeId) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
getRelationGroups
in interface BaseRelation
AccessDeniedException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public void addRelationGroup(String nodeId, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
addRelationGroup
in interface BaseRelation
AccessDeniedException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public void addNodeToGroup(String nodeId, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknowException, WebserviceException
addNodeToGroup
in interface BaseRelation
AccessDeniedException
PathNotFoundException
DatabaseException
RepositoryException
UnknowException
WebserviceException
public void deleteRelationGroup(String nodeId, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknowException, WebserviceException
deleteRelationGroup
in interface BaseRelation
AccessDeniedException
DatabaseException
PathNotFoundException
RepositoryException
UnknowException
WebserviceException
public RelationGroup findRelationGroup(long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknowException, WebserviceException
findRelationGroup
in interface BaseRelation
AccessDeniedException
PathNotFoundException
DatabaseException
RepositoryException
UnknowException
WebserviceException
public void setRelationGroupName(long groupId, String groupName) throws AccessDeniedException, DatabaseException, UnknowException, WebserviceException
setRelationGroupName
in interface BaseRelation
AccessDeniedException
DatabaseException
UnknowException
WebserviceException
Copyright © 2018 Open Knowledge Management System S.L.. All Rights Reserved.