|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserAssociationStore
This Store is used to work with relationships between Users and other objects.
Method Summary | |
---|---|
boolean |
associationExists(String associationType,
ApplicationUser user,
String sinkNodeEntity,
Long sinkNodeId)
Tests if the given association exists. |
boolean |
associationExists(String associationType,
com.atlassian.crowd.embedded.api.User user,
String sinkNodeEntity,
Long sinkNodeId)
Deprecated. Use associationExists(String, com.atlassian.jira.user.ApplicationUser, String, Long) instead. Since v6.0. |
void |
createAssociation(String associationType,
ApplicationUser user,
org.ofbiz.core.entity.GenericValue sink)
Creates an association between a user and a sink node. |
void |
createAssociation(String associationType,
ApplicationUser user,
Issue sink)
Creates an association between a user and a sink node. |
void |
createAssociation(String associationType,
String userkey,
String sinkNodeEntity,
Long sinkNodeId)
Creates an association between a user and a sink node. |
List<org.ofbiz.core.entity.GenericValue> |
getSinksFromUser(String associationType,
ApplicationUser user,
String sinkNodeEntity)
Returns all the sinks that are associated with the given User. |
Collection<String> |
getUserkeysFromIssue(String associationType,
Long issueId)
|
Collection<String> |
getUserkeysFromSink(String associationType,
String sinkNodeEntity,
Long sinkNodeId)
Finds and returns a list of userkeys associated with a given sink. |
List<String> |
getUsernamesFromSink(String associationType,
org.ofbiz.core.entity.GenericValue sink)
Finds and returns a list of usernames associated with a given sink. |
List<ApplicationUser> |
getUsersFromSink(String associationType,
org.ofbiz.core.entity.GenericValue sink)
Finds and returns a list of Users associated with a given sink. |
void |
removeAssociation(String associationType,
ApplicationUser user,
Issue sink)
Removes an association between a user and a sink node. |
void |
removeAssociation(String associationType,
String userkey,
String sinkNodeEntity,
Long sinkNodeId)
Removes an association between a user and a sink node. |
void |
removeUserAssociationsFromSink(String sinkNodeEntity,
Long sinkNodeId)
Removes all User Associations for this Sink |
void |
removeUserAssociationsFromUser(String associationType,
ApplicationUser user,
String sinkNodeEntity)
Removes all User Associations for this User of the given associationType |
Method Detail |
---|
boolean associationExists(String associationType, com.atlassian.crowd.embedded.api.User user, String sinkNodeEntity, Long sinkNodeId)
associationExists(String, com.atlassian.jira.user.ApplicationUser, String, Long)
instead. Since v6.0.
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").sinkNodeId
- The id of the sink node.
boolean associationExists(String associationType, ApplicationUser user, String sinkNodeEntity, Long sinkNodeId)
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").sinkNodeId
- The id of the sink node.
List<String> getUsernamesFromSink(String associationType, org.ofbiz.core.entity.GenericValue sink)
associationType
- the Association typesink
- the sink node
Collection<String> getUserkeysFromSink(String associationType, String sinkNodeEntity, Long sinkNodeId)
associationType
- the Association typesinkNodeEntity
- The entity name of the sink node (eg "Issue").sinkNodeId
- The id of the sink node.
Collection<String> getUserkeysFromIssue(String associationType, Long issueId)
List<org.ofbiz.core.entity.GenericValue> getSinksFromUser(String associationType, ApplicationUser user, String sinkNodeEntity)
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").
List<ApplicationUser> getUsersFromSink(String associationType, org.ofbiz.core.entity.GenericValue sink)
associationType
- the Association typesink
- the sink node
void createAssociation(String associationType, ApplicationUser user, org.ofbiz.core.entity.GenericValue sink)
associationType
- the Association typeuser
- the user to associate with the sink node.sink
- the sink nodevoid createAssociation(String associationType, ApplicationUser user, Issue sink)
associationType
- the Association typeuser
- the user to associate with the sink node.sink
- the sink nodevoid createAssociation(String associationType, String userkey, String sinkNodeEntity, Long sinkNodeId)
associationType
- the Association typeuserkey
- the user name to associate with the sink node.sinkNodeEntity
- the entity name of the sink nodesinkNodeId
- the id of the sink node entityvoid removeAssociation(String associationType, String userkey, String sinkNodeEntity, Long sinkNodeId)
associationType
- the Association typeuserkey
- the user to associate with the sink node.sinkNodeEntity
- the entity name of the sink nodesinkNodeId
- the id of the sink node entityvoid removeAssociation(String associationType, ApplicationUser user, Issue sink)
associationType
- the Association typeuser
- the user to associate with the sink node.sink
- the sink nodevoid removeUserAssociationsFromUser(String associationType, ApplicationUser user, String sinkNodeEntity)
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").void removeUserAssociationsFromSink(String sinkNodeEntity, Long sinkNodeId)
sinkNodeEntity
- The entity name of the sink node (eg "Issue").sinkNodeId
- the id of the sink node entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |