public class

EditNestedGroups

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.EditNestedGroups

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
EditNestedGroups(MultiUserConverter multiUserConverter, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, CrowdService crowdService, GroupManager groupManager)
Public Methods
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.
int getAssignedChildrenListSize()
determine what size the assigned children select list should be (capped at MAX_LIST_SIZE)
String[] getChildrenToAssignStr()
String[] getChildrenToUnassign()
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 getMaxChildrenDisplayedPerGroup()
Collection getMembersList()
Used to populate the assigned children of the selected groups.
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)
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 EditNestedGroups (MultiUserConverter multiUserConverter, ApplicationProperties applicationProperties, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, CrowdService crowdService, GroupManager groupManager)

Public Methods

public void doValidation ()

public Collection getAllVisibleGroups ()

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

public String getAssign ()

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

public int getAssignedChildrenListSize ()

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

public String[] getChildrenToAssignStr ()

public String[] getChildrenToUnassign ()

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 getMaxChildrenDisplayedPerGroup ()

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.

public String getOptionValue (ChildGroupOption childOption)

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

public String getPrettyPrintOverloadedGroups ()

public String getPrunedChildrenToAssign ()

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

public List getSelectedGroups ()

Of the groups the user has selected

Returns
  • List of Groups

public String[] getSelectedGroupsStr ()

public String getUnassign ()

public boolean isTooManyChildrenListed ()

public void setAssign (String assign)

public void setChildrenToAssignStr (String[] childrenToAssignStr)

public void setChildrenToUnassign (String[] childrenToUnassign)

public void setSelectedGroupsStr (String[] selectedGroupsStr)

public void setUnassign (String unassign)

Protected Methods

protected String doExecute ()

Throws
Exception