com.atlassian.jira.web.action.admin.user
Class EditNestedGroups
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.admin.user.EditNestedGroups
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
public class EditNestedGroups
- extends JiraWebActionSupport
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAssignableUsers, getAssignableUsers, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getReasons, getRedirect, getRedirectChecker, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doDefault, getCommandName, 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 webwork.action.CommandDriven |
getCommandName, setCommand |
EditNestedGroups
public EditNestedGroups(MultiUserConverter multiUserConverter,
ApplicationProperties applicationProperties,
GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil,
GroupService groupService,
com.atlassian.crowd.embedded.api.CrowdService crowdService)
doValidation
public void doValidation()
- Overrides:
doValidation
in class webwork.action.ActionSupport
doExecute
public String doExecute()
throws Exception
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Throws:
Exception
getAllVisibleGroups
public Collection getAllVisibleGroups()
- gets all the groups, used to populate the groups select list
getIsGroupSelected
public boolean getIsGroupSelected(com.atlassian.crowd.embedded.api.Group group)
- Checks if the group is selected
getMembersList
public 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.
getAssignedChildrenCount
public 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
getAssignedChildrenListSize
public int getAssignedChildrenListSize()
- determine what size the assigned children select list should be (capped at MAX_LIST_SIZE)
getListSize
public int getListSize(int size)
- use this to limit the listSizes to MAX_LIST_SIZE
getOptionValue
public String getOptionValue(ChildGroupOption childOption)
- used to determine what the option value (format) for a ChildOption should be
getUnassign
public String getUnassign()
setUnassign
public void setUnassign(String unassign)
getAssign
public String getAssign()
setAssign
public void setAssign(String assign)
getSelectedGroupsStr
public String[] getSelectedGroupsStr()
setSelectedGroupsStr
public void setSelectedGroupsStr(String[] selectedGroupsStr)
getSelectedGroups
public List getSelectedGroups()
- Of the groups the user has selected
- Returns:
- List of Groups
setChildrenToAssignStr
public void setChildrenToAssignStr(String[] childrenToAssignStr)
getChildrenToAssignStr
public String[] getChildrenToAssignStr()
getPrunedChildrenToAssign
public String getPrunedChildrenToAssign()
- Returns:
- collection of valid child names to assign to the currently selected groups
setChildrenToUnassign
public void setChildrenToUnassign(String[] childrenToUnassign)
getChildrenToUnassign
public String[] getChildrenToUnassign()
isTooManyChildrenListed
public boolean isTooManyChildrenListed()
getMaxChildrenDisplayedPerGroup
public int getMaxChildrenDisplayedPerGroup()
getPrettyPrintOverloadedGroups
public String getPrettyPrintOverloadedGroups()
Copyright © 2002-2011 Atlassian. All Rights Reserved.