|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class BulkEditUserGroups
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper |
---|
I18nHelper.BeanFactory |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
---|
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters |
Fields inherited from class com.atlassian.jira.action.JiraActionSupport |
---|
log |
Fields inherited from class webwork.action.ActionSupport |
---|
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
BulkEditUserGroups(UserManager userManager,
MultiUserConverter multiUserConverter,
ApplicationProperties applicationProperties,
GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil,
GroupService groupService)
|
Method Summary | |
---|---|
String |
doExecute()
|
void |
doValidation()
|
Collection |
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. NOTE: This does not count distinct users - so with multiple selected groups, the count may be off |
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 |
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. |
String |
getOptionValue(UserOption userOption)
used to determine what the option value (format) for a UserOption should be |
String |
getPrettyPrintOverloadedGroups()
|
String |
getPrunedUsersToAssign()
|
String[] |
getSelectedGroupsStr()
|
List |
getSelectedGroupsUserHasPermToSee()
Of the groups the user has selected, return only those the current user has permission to edit. |
String |
getUnassign()
|
Collection |
getUsersToAssign()
|
String |
getUsersToAssignStr()
|
String[] |
getUsersToUnassign()
|
boolean |
isTooManyUsersListed()
|
void |
setAssign(String assign)
|
void |
setSelectedGroupsStr(String[] selectedGroupsStr)
|
void |
setUnassign(String unassign)
|
void |
setUsersToAssignStr(String usersToAssignStr)
|
void |
setUsersToUnassign(String[] usersToUnassign)
|
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
---|
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
---|
addError, addErrorMessage, doDefault, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.util.ErrorCollection |
---|
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages |
Methods inherited from interface webwork.action.CommandDriven |
---|
setCommand |
Constructor Detail |
---|
public BulkEditUserGroups(UserManager userManager, MultiUserConverter multiUserConverter, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService)
Method Detail |
---|
public void doValidation()
doValidation
in class webwork.action.ActionSupport
public String doExecute() throws Exception
doExecute
in class webwork.action.ActionSupport
Exception
public Collection getAllVisibleGroups()
public boolean getIsGroupSelected(Group group)
public Collection getMembersList()
public int getAssignedUsersCount()
public int getAssignedUsersListSize()
public int getListSize(int size)
public String getOptionValue(UserOption userOption)
public String getUnassign()
public void setUnassign(String unassign)
public String getAssign()
public void setAssign(String assign)
public String[] getSelectedGroupsStr()
public void setSelectedGroupsStr(String[] selectedGroupsStr)
public List getSelectedGroupsUserHasPermToSee()
Groups
.public void setUsersToAssignStr(String usersToAssignStr)
public String getUsersToAssignStr()
public Collection getUsersToAssign()
public String getPrunedUsersToAssign()
public void setUsersToUnassign(String[] usersToUnassign)
public String[] getUsersToUnassign()
public boolean isTooManyUsersListed()
public int getMaxUsersDisplayedPerGroup()
public String getPrettyPrintOverloadedGroups()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |