public class UserAssociationStoreImpl extends Object implements UserAssociationStore
| Constructor and Description |
|---|
UserAssociationStoreImpl(OfBizDelegator ofBizDelegator,
UserManager userManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
associationExists(String associationType,
ApplicationUser user,
String sinkNodeEntity,
Long sinkNodeId)
Tests if the given association exists.
|
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 userName,
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
|
public UserAssociationStoreImpl(OfBizDelegator ofBizDelegator, UserManager userManager)
public void createAssociation(String associationType, ApplicationUser user, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStorecreateAssociation in interface UserAssociationStoreassociationType - the Association typeuser - the user to associate with the sink node.sink - the sink nodepublic void createAssociation(String associationType, ApplicationUser user, Issue sink)
UserAssociationStorecreateAssociation in interface UserAssociationStoreassociationType - 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)
UserAssociationStorecreateAssociation in interface UserAssociationStoreassociationType - 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, String userkey, String sinkNodeEntity, Long sinkNodeId)
UserAssociationStoreremoveAssociation in interface UserAssociationStoreassociationType - 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 entitypublic void removeAssociation(String associationType, ApplicationUser user, Issue sink)
UserAssociationStoreremoveAssociation in interface UserAssociationStoreassociationType - the Association typeuser - the user to associate with the sink node.sink - the sink nodepublic void removeUserAssociationsFromUser(String associationType, ApplicationUser user, String sinkNodeEntity)
UserAssociationStoreremoveUserAssociationsFromUser in interface UserAssociationStoreassociationType - the Association typeuser - the UsersinkNodeEntity - The entity name of the sink node (eg "Issue").public void removeUserAssociationsFromSink(String sinkNodeEntity, Long sinkNodeId)
UserAssociationStoreremoveUserAssociationsFromSink in interface UserAssociationStoresinkNodeEntity - The entity name of the sink node (eg "Issue").sinkNodeId - the id of the sink node entitypublic boolean associationExists(String associationType, ApplicationUser user, String sinkNodeEntity, Long sinkNodeId)
UserAssociationStoreassociationExists in interface UserAssociationStoreassociationType - the Association typeuser - the UsersinkNodeEntity - The entity name of the sink node (eg "Issue").sinkNodeId - The id of the sink node.public List<ApplicationUser> getUsersFromSink(String associationType, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStoregetUsersFromSink in interface UserAssociationStoreassociationType - the Association typesink - the sink nodepublic List<String> getUsernamesFromSink(String associationType, org.ofbiz.core.entity.GenericValue sink)
UserAssociationStoregetUsernamesFromSink in interface UserAssociationStoreassociationType - the Association typesink - the sink nodepublic Collection<String> getUserkeysFromSink(String associationType, String sinkNodeEntity, Long sinkNodeId)
UserAssociationStoregetUserkeysFromSink in interface UserAssociationStoreassociationType - the Association typesinkNodeEntity - The entity name of the sink node (eg "Issue").sinkNodeId - The id of the sink node.public Collection<String> getUserkeysFromIssue(String associationType, Long issueId)
getUserkeysFromIssue in interface UserAssociationStorepublic List<org.ofbiz.core.entity.GenericValue> getSinksFromUser(String associationType, ApplicationUser user, String sinkNodeEntity)
UserAssociationStoregetSinksFromUser in interface UserAssociationStoreassociationType - the Association typeuser - the UsersinkNodeEntity - The entity name of the sink node (eg "Issue").Copyright © 2002-2018 Atlassian. All Rights Reserved.