|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.util.GroupSelectorUtils
public class GroupSelectorUtils
Utility class for mapping group custom field values to the corresponding groups and/or users.
Constructor Summary | |
---|---|
GroupSelectorUtils(FieldManager fieldManager,
UserUtil userUtil,
GroupManager groupManager)
|
Method Summary | |
---|---|
List<Field> |
getCustomFieldsSpecifyingGroups()
Get all custom fields that could possibly be identifying a group. |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers(Issue issue,
String customFieldId)
Get users from a group chosen by a Group Selector custom field, in a certain issue. |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers(Object groupCustomFieldRawValue)
|
boolean |
isUserInCustomFieldGroup(Issue issue,
CustomField field,
com.atlassian.crowd.embedded.api.User user)
Determines if a user is a member of a group specified by a custom field value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupSelectorUtils(FieldManager fieldManager, UserUtil userUtil, GroupManager groupManager)
Method Detail |
---|
public Set<com.atlassian.crowd.embedded.api.User> getUsers(Issue issue, String customFieldId)
issue
- The current issuecustomFieldId
- Id of GroupSelectorField
.
User
s.public Set<com.atlassian.crowd.embedded.api.User> getUsers(Object groupCustomFieldRawValue)
public List<Field> getCustomFieldsSpecifyingGroups()
public boolean isUserInCustomFieldGroup(Issue issue, CustomField field, com.atlassian.crowd.embedded.api.User user)
issue
- The current issuefield
- The custom field specifying the group(s). Eg. a select-list.user
- The user we wish to check for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |