public class

BulkEditUserGroups

extends JiraWebActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.admin.user.BulkEditUserGroups

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
BulkEditUserGroups(GroupManager groupManager, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, UserManager userManager)
Public Methods
void doValidation()
Collection<Group> getAllVisibleGroups()
gets all the groups, used to populate the groups select list
String getAssign()
int getAssignedUsersCount()
Counts the total number of user entries from the memberslist.
int getAssignedUsersListSize()
determine what size the assigned users select list should be (capped at MAX_LIST_SIZE)
boolean getIsGroupSelected(Group group)
Checks if the group is selected
int getListSize(int size)
use this to limit the listSizes to MAX_LIST_SIZE
int getMaxUsersDisplayedPerGroup()
Collection<GroupOption> getMembersList()
Used to populate the assigned users of the selected groups.
String getOptionValue(UserOption userOption)
used to determine what the option value (format) for a UserOption should be
String getPrettyPrintOverloadedGroups()
Collection<String> getPrunedUsersToAssign()
String[] getSelectedGroupsStr()
List<Group> getSelectedGroupsUserHasPermToSee()
Of the groups the user has selected, return only those the current user has permission to edit.
String getUnassign()
String[] getUsersToAssignMultiSelect()
@Deprecated String getUsersToAssignStr()
Collection<ApplicationUser> getUsersToAssignToTheMultiSelect()
String[] getUsersToUnassign()
boolean isTooManyUsersListed()
void setAssign(String assign)
void setSelectedGroupsStr(String[] selectedGroupsStr)
void setUnassign(String unassign)
void setUsersToAssignMultiSelect(Collection<String> usersToAssignMultiSelect)
void setUsersToAssignMultiSelect(String[] usersToAssignMultiSelect)
@Deprecated void setUsersToAssignStr(String usersToAssignStr)
void setUsersToUnassign(String[] usersToUnassign)
Protected Methods
String doExecute()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public BulkEditUserGroups (GroupManager groupManager, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, UserManager userManager)

Public Methods

public void doValidation ()

public Collection<Group> getAllVisibleGroups ()

gets all the groups, used to populate the groups select list

public String getAssign ()

public int getAssignedUsersCount ()

Counts the total number of user entries from the memberslist.
NOTE: This does not count distinct users - so with multiple selected groups, the count may be off

public int getAssignedUsersListSize ()

determine what size the assigned users select list should be (capped at MAX_LIST_SIZE)

public boolean getIsGroupSelected (Group group)

Checks if the group is selected

public int getListSize (int size)

use this to limit the listSizes to MAX_LIST_SIZE

public int getMaxUsersDisplayedPerGroup ()

public Collection<GroupOption> getMembersList ()

Used to populate the assigned users of the selected groups.
Always has the 'All' group which represents all the members of the selected groups.
Rest of the users are added under individual group names.

public String getOptionValue (UserOption userOption)

used to determine what the option value (format) for a UserOption should be

public String getPrettyPrintOverloadedGroups ()

public Collection<String> getPrunedUsersToAssign ()

Returns
  • collection of valid user names to assign to the currently selected groups

public String[] getSelectedGroupsStr ()

public List<Group> getSelectedGroupsUserHasPermToSee ()

Of the groups the user has selected, return only those the current user has permission to edit.

Returns

public String getUnassign ()

public String[] getUsersToAssignMultiSelect ()

@Deprecated public String getUsersToAssignStr ()

public Collection<ApplicationUser> getUsersToAssignToTheMultiSelect ()

public String[] getUsersToUnassign ()

public boolean isTooManyUsersListed ()

public void setAssign (String assign)

public void setSelectedGroupsStr (String[] selectedGroupsStr)

public void setUnassign (String unassign)

public void setUsersToAssignMultiSelect (Collection<String> usersToAssignMultiSelect)

public void setUsersToAssignMultiSelect (String[] usersToAssignMultiSelect)

@Deprecated public void setUsersToAssignStr (String usersToAssignStr)

public void setUsersToUnassign (String[] usersToUnassign)

Protected Methods

protected String doExecute ()

Throws
Exception