public interface RelationshipService
Modifier and Type | Method and Description |
---|---|
Boolean |
addRelation(String actorId,
String targetId,
RelationshipKind kind)
Adds a relation between two entities.
|
List<RelationshipKind> |
getRegisteredKinds(String group)
Gets registered (contributed with the extension point) relationship kinds depending of a group
|
List<RelationshipKind> |
getRelationshipKinds(String actorId,
String targetId)
Gets all existing relationship kinds between an actor and a target.
|
List<String> |
getTargets(String actorId)
Gets all targets of an actor.
|
List<String> |
getTargetsOfKind(String actorId,
RelationshipKind kind)
Gets all targets of a specific relation.
|
List<String> |
getTargetsWithFulltext(String actorId,
RelationshipKind kind,
String targetPattern)
Gets all targets that match the targetPattern with the given kind.
|
List<String> |
getTargetsWithFulltext(String actorId,
String targetPattern)
Gets all targets that match the targetPattern.
|
Boolean |
removeRelation(String actorId,
String targetId,
RelationshipKind kind)
Removes a relationship composed by parameters
|
List<RelationshipKind> getRelationshipKinds(String actorId, String targetId)
List<String> getTargetsWithFulltext(String actorId, String targetPattern)
List<String> getTargetsWithFulltext(String actorId, RelationshipKind kind, String targetPattern)
List<String> getTargetsOfKind(String actorId, RelationshipKind kind)
kind
- if null, it will return all targets getTargets(java.lang.String)
, it can be only filled with the group or the
nameList<RelationshipKind> getRegisteredKinds(String group)
group
- can be null, or empty if you want to get all kindsBoolean addRelation(String actorId, String targetId, RelationshipKind kind)
true
if a new relation is created, false
otherwise.Boolean removeRelation(String actorId, String targetId, RelationshipKind kind)
Copyright © 2015 Nuxeo SA. All rights reserved.