Class BulkEditUserGroups

java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.admin.user.BulkEditUserGroups
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class BulkEditUserGroups extends JiraWebActionSupport
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault() throws Exception
      Overrides:
      doDefault in class webwork.action.ActionSupport
      Throws:
      Exception
    • doValidation

      public void doValidation()
      Overrides:
      doValidation in class webwork.action.ActionSupport
    • doExecute

      protected String doExecute() throws Exception
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Throws:
      Exception
    • getAllVisibleGroups

      public Collection<com.atlassian.crowd.embedded.api.Group> 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<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.
    • getAssignedUsersCount

      public 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
    • getAssignedUsersListSize

      public int getAssignedUsersListSize()
      determine what size the assigned users 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(UserOption userOption)
      used to determine what the option value (format) for a UserOption 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)
    • getSelectedGroupsUserHasPermToSee

      public 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.
      Returns:
      those Groups.
    • setUsersToAssignStr

      @Deprecated public void setUsersToAssignStr(String usersToAssignStr)
      Deprecated.
    • getUsersToAssignStr

      @Deprecated public String getUsersToAssignStr()
      Deprecated.
    • getUsersToAssignMultiSelect

      public String[] getUsersToAssignMultiSelect()
    • setUsersToAssignMultiSelect

      public void setUsersToAssignMultiSelect(String[] usersToAssignMultiSelect)
    • setUsersToAssignMultiSelect

      public void setUsersToAssignMultiSelect(Collection<String> usersToAssignMultiSelect)
    • getUsersToAssignToTheMultiSelect

      public Collection<ApplicationUser> getUsersToAssignToTheMultiSelect()
    • getPrunedUsersToAssign

      public Collection<String> getPrunedUsersToAssign()
      Returns:
      collection of valid user names to assign to the currently selected groups
    • setUsersToUnassign

      public void setUsersToUnassign(String[] usersToUnassign)
    • getUsersToUnassign

      public String[] getUsersToUnassign()
    • isTooManyUsersListed

      public boolean isTooManyUsersListed()
    • getMaxUsersDisplayedPerGroup

      public int getMaxUsersDisplayedPerGroup()
    • getPrettyPrintOverloadedGroups

      public String getPrettyPrintOverloadedGroups()