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, resource
public RelationImpl(String host)
public void setAuthorizationToken(String authorizationToken)
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 uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getRelations
in interface BaseRelation
AccessDeniedException
PathNotFoundException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public List<RelationGroup> getRelationGroups(String uuid) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
getRelationGroups
in interface BaseRelation
AccessDeniedException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public List<RelationGroup> getAllRelationGroups() throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
getAllRelationGroups
in interface BaseRelation
AccessDeniedException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public void addRelationGroup(String uuid, String groupName, long type) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
addRelationGroup
in interface BaseRelation
AccessDeniedException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public void addNodeToGroup(String uuid, long groupId) throws AccessDeniedException, PathNotFoundException, DatabaseException, RepositoryException, UnknowException, WebserviceException
addNodeToGroup
in interface BaseRelation
AccessDeniedException
PathNotFoundException
DatabaseException
RepositoryException
UnknowException
WebserviceException
public void deleteRelationGroupItem(String uuid, long groupId) throws AccessDeniedException, DatabaseException, PathNotFoundException, RepositoryException, UnknowException, WebserviceException
deleteRelationGroupItem
in interface BaseRelation
AccessDeniedException
DatabaseException
PathNotFoundException
RepositoryException
UnknowException
WebserviceException
public void deleteRelationGroup(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 © 2019 Open Knowledge Management System S.L.. All Rights Reserved.