|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.association.UserAssociationStoreImpl
public class UserAssociationStoreImpl
Constructor Summary | |
---|---|
UserAssociationStoreImpl(OfBizDelegator ofBizDelegator,
UserManager userManager)
|
Method Summary | |
---|---|
boolean |
associationExists(String associationType,
com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue sink)
Tests if the given association exists. |
boolean |
associationExists(String associationType,
com.atlassian.crowd.embedded.api.User user,
String sinkNodeEntity,
Long sinkNodeId)
Tests if the given association exists. |
void |
createAssociation(String associationType,
String userName,
String sinkNodeEntity,
Long sinkNodeId)
Creates an association between a user and a sink node. |
void |
createAssociation(String associationType,
com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue sink)
Creates an association between a user and a sink node. |
List<org.ofbiz.core.entity.GenericValue> |
getSinksFromUser(String associationType,
com.atlassian.crowd.embedded.api.User user,
String sinkNodeEntity)
Returns all the sinks that are associated with the given User. |
List<String> |
getUsernamesFromSink(String associationType,
org.ofbiz.core.entity.GenericValue sink)
Finds and returns a list of usernames associated with a given sink. |
List<com.atlassian.crowd.embedded.api.User> |
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,
String username,
org.ofbiz.core.entity.GenericValue sink)
Removes an association between a user and a sink node. |
void |
removeAssociation(String associationType,
com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue sink)
Removes an association between a user and a sink node. |
void |
removeUserAssociationsFromUser(String associationType,
com.atlassian.crowd.embedded.api.User user,
String sinkNodeEntity)
Removes all User Associations for this User of the given associationType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserAssociationStoreImpl(OfBizDelegator ofBizDelegator, UserManager userManager)
Method Detail |
---|
public void createAssociation(String associationType, com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStore
createAssociation
in interface UserAssociationStore
associationType
- the Association typeuser
- the user to associate with the sink node.sink
- the sink nodepublic void createAssociation(String associationType, String userName, String sinkNodeEntity, Long sinkNodeId)
UserAssociationStore
createAssociation
in interface UserAssociationStore
associationType
- the Association typeuserName
- the user name to associate with the sink node.sinkNodeEntity
- the entity name of the sink nodesinkNodeId
- the id of the sink node entitypublic void removeAssociation(String associationType, com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStore
removeAssociation
in interface UserAssociationStore
associationType
- the Association typeuser
- the user to associate with the sink node.sink
- the sink nodepublic void removeAssociation(String associationType, String username, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStore
removeAssociation
in interface UserAssociationStore
associationType
- the Association typeusername
- the user to associate with the sink node.sink
- the sink nodepublic void removeUserAssociationsFromUser(String associationType, com.atlassian.crowd.embedded.api.User user, String sinkNodeEntity)
UserAssociationStore
removeUserAssociationsFromUser
in interface UserAssociationStore
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").public boolean associationExists(String associationType, com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStore
associationExists
in interface UserAssociationStore
associationType
- the Association typeuser
- the Usersink
- the sink node
public boolean associationExists(String associationType, com.atlassian.crowd.embedded.api.User user, String sinkNodeEntity, Long sinkNodeId)
UserAssociationStore
associationExists
in interface UserAssociationStore
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").sinkNodeId
- The id of the sink node.
public List<com.atlassian.crowd.embedded.api.User> getUsersFromSink(String associationType, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStore
getUsersFromSink
in interface UserAssociationStore
associationType
- the Association typesink
- the sink node
public List<String> getUsernamesFromSink(String associationType, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStore
getUsernamesFromSink
in interface UserAssociationStore
associationType
- the Association typesink
- the sink node
public List<org.ofbiz.core.entity.GenericValue> getSinksFromUser(String associationType, com.atlassian.crowd.embedded.api.User user, String sinkNodeEntity)
UserAssociationStore
getSinksFromUser
in interface UserAssociationStore
associationType
- the Association typeuser
- the UsersinkNodeEntity
- The entity name of the sink node (eg "Issue").
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |