|
Nuxeo ECM Projects 5.6-RC1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelationshipService
Service to manage relations between entities.
Method Summary | |
---|---|
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 |
Method Detail |
---|
List<RelationshipKind> getRelationshipKinds(String actorId, String targetId)
List<String> getTargets(String actorId)
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 kinds
Boolean addRelation(String actorId, String targetId, RelationshipKind kind)
true
if a new relation is created, false
otherwise.Boolean removeRelation(String actorId, String targetId, RelationshipKind kind)
|
Nuxeo ECM Projects 5.6-RC1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |