public class BulkEditUserGroups extends JiraWebActionSupport
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
log
Constructor and Description |
---|
BulkEditUserGroups(GroupManager groupManager,
ApplicationProperties applicationProperties,
GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil,
GroupService groupService,
UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
protected String |
doExecute() |
void |
doValidation() |
Collection<com.atlassian.crowd.embedded.api.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.
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(com.atlassian.crowd.embedded.api.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.
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() |
Collection<String> |
getPrunedUsersToAssign() |
String[] |
getSelectedGroupsStr() |
List<com.atlassian.crowd.embedded.api.Group> |
getSelectedGroupsUserHasPermToSee()
Of the groups the user has selected, return only those the current user has permission to edit.
|
String |
getUnassign() |
String[] |
getUsersToAssignMultiSelect() |
String |
getUsersToAssignStr()
Deprecated.
|
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) |
void |
setUsersToAssignStr(String usersToAssignStr)
Deprecated.
|
void |
setUsersToUnassign(String[] usersToUnassign) |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, addErrorMessage, doDefault, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
public BulkEditUserGroups(GroupManager groupManager, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, UserManager userManager)
public void doValidation()
doValidation
in class webwork.action.ActionSupport
protected String doExecute() throws Exception
doExecute
in class webwork.action.ActionSupport
Exception
public Collection<com.atlassian.crowd.embedded.api.Group> getAllVisibleGroups()
public boolean getIsGroupSelected(com.atlassian.crowd.embedded.api.Group group)
public Collection<GroupOption> 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<com.atlassian.crowd.embedded.api.Group> getSelectedGroupsUserHasPermToSee()
Groups
.@Deprecated public void setUsersToAssignStr(String usersToAssignStr)
@Deprecated public String getUsersToAssignStr()
public String[] getUsersToAssignMultiSelect()
public void setUsersToAssignMultiSelect(String[] usersToAssignMultiSelect)
public void setUsersToAssignMultiSelect(Collection<String> usersToAssignMultiSelect)
public Collection<ApplicationUser> getUsersToAssignToTheMultiSelect()
public Collection<String> getPrunedUsersToAssign()
public void setUsersToUnassign(String[] usersToUnassign)
public String[] getUsersToUnassign()
public boolean isTooManyUsersListed()
public int getMaxUsersDisplayedPerGroup()
public String getPrettyPrintOverloadedGroups()
Copyright © 2002-2022 Atlassian. All Rights Reserved.