public class EditNestedGroups 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 |
---|
EditNestedGroups(MultiUserConverter multiUserConverter,
ApplicationProperties applicationProperties,
GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil,
GroupService groupService,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
GroupManager groupManager) |
Modifier and Type | Method and Description |
---|---|
protected String |
doExecute() |
void |
doValidation() |
Collection |
getAllVisibleGroups()
gets all the groups, used to populate the groups select list
|
String |
getAssign() |
int |
getAssignedChildrenCount()
Counts the total number of child entries from the memberslist.
NOTE: This does not count distinct children - so with multiple selected groups, the count may be off |
int |
getAssignedChildrenListSize()
determine what size the assigned children select list should be (capped at MAX_LIST_SIZE)
|
String[] |
getChildrenToAssignStr() |
String[] |
getChildrenToUnassign() |
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 |
getMaxChildrenDisplayedPerGroup() |
Collection |
getMembersList()
Used to populate the assigned children of the selected groups.
Always has the 'All' group which represents all the members of the selected groups. Rest of the children are added under individual group names. |
String |
getOptionValue(ChildGroupOption childOption)
used to determine what the option value (format) for a ChildOption should be
|
String |
getPrettyPrintOverloadedGroups() |
String |
getPrunedChildrenToAssign() |
List |
getSelectedGroups()
Of the groups the user has selected
|
String[] |
getSelectedGroupsStr() |
String |
getUnassign() |
boolean |
isTooManyChildrenListed() |
void |
setAssign(String assign) |
void |
setChildrenToAssignStr(String[] childrenToAssignStr) |
void |
setChildrenToUnassign(String[] childrenToUnassign) |
void |
setSelectedGroupsStr(String[] selectedGroupsStr) |
void |
setUnassign(String unassign) |
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 EditNestedGroups(MultiUserConverter multiUserConverter, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, com.atlassian.crowd.embedded.api.CrowdService crowdService, GroupManager groupManager)
public void doValidation()
doValidation
in class webwork.action.ActionSupport
protected String doExecute() throws Exception
doExecute
in class webwork.action.ActionSupport
Exception
public Collection getAllVisibleGroups()
public boolean getIsGroupSelected(com.atlassian.crowd.embedded.api.Group group)
public Collection getMembersList()
public int getAssignedChildrenCount()
public int getAssignedChildrenListSize()
public int getListSize(int size)
public String getOptionValue(ChildGroupOption childOption)
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 getSelectedGroups()
public void setChildrenToAssignStr(String[] childrenToAssignStr)
public String[] getChildrenToAssignStr()
public String getPrunedChildrenToAssign()
public void setChildrenToUnassign(String[] childrenToUnassign)
public String[] getChildrenToUnassign()
public boolean isTooManyChildrenListed()
public int getMaxChildrenDisplayedPerGroup()
public String getPrettyPrintOverloadedGroups()
Copyright © 2002-2022 Atlassian. All Rights Reserved.