public class GroupSelectorUtils extends Object
| Constructor and Description |
|---|
GroupSelectorUtils(FieldManager fieldManager,
UserUtil userUtil,
GroupManager groupManager) |
| Modifier and Type | Method and Description |
|---|---|
List<Field> |
getCustomFieldsSpecifyingGroups()
Get all custom fields that could possibly be identifying a group.
|
Set<ApplicationUser> |
getUsers(Issue issue,
String customFieldId)
Get users from a group chosen by a Group Selector custom field, in a certain issue.
|
Set<ApplicationUser> |
getUsers(Object groupCustomFieldRawValue) |
boolean |
isUserInCustomFieldGroup(Issue issue,
CustomField field,
ApplicationUser user)
Determines if a user is a member of a group specified by a custom field value.
|
public GroupSelectorUtils(FieldManager fieldManager, UserUtil userUtil, GroupManager groupManager)
public Set<ApplicationUser> getUsers(Issue issue, String customFieldId)
issue - The current issuecustomFieldId - Id of GroupSelectorField.Users.public Set<ApplicationUser> getUsers(Object groupCustomFieldRawValue)
public List<Field> getCustomFieldsSpecifyingGroups()
public boolean isUserInCustomFieldGroup(Issue issue, CustomField field, ApplicationUser user)
issue - The current issuefield - The custom field specifying the group(s). Eg. a select-list.user - The user we wish to check forCopyright © 2002-2017 Atlassian. All Rights Reserved.