public class

EditUserGroups

extends ViewUser
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.ProjectActionSupport
           ↳ com.atlassian.jira.web.action.IssueActionSupport
             ↳ com.atlassian.jira.web.action.admin.user.ViewUser
               ↳ com.atlassian.jira.web.action.admin.user.EditUserGroups

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.admin.user.ViewUser
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
EditUserGroups(CrowdService crowdService, CrowdDirectoryService crowdDirectoryService, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, UserPropertyManager userPropertyManager, UserManager userManager)
Public Methods
String getJoin()
String getLeave()
Collection getMemberGroups()
Collection getNonMemberGroups()
This method returns all the groups the current user is not currently a member of.
void setGroupsToJoin(String[] groupsToJoin)
void setGroupsToLeave(String[] groupsToLeave)
void setJoin(String join)
void setLeave(String leave)
Protected Methods
String doExecute()
void doValidation()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.admin.user.ViewUser
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
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 EditUserGroups (CrowdService crowdService, CrowdDirectoryService crowdDirectoryService, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, UserPropertyManager userPropertyManager, UserManager userManager)

Public Methods

public String getJoin ()

public String getLeave ()

public Collection getMemberGroups ()

public Collection getNonMemberGroups ()

This method returns all the groups the current user is not currently a member of. If the current user is not a SYSTEM_ADMIN then this method will also filter out all groups that are assigned to the SYSTEM_ADMIN global permission.

Returns
  • a collection of groups that the user is not currently a member of.

public void setGroupsToJoin (String[] groupsToJoin)

public void setGroupsToLeave (String[] groupsToLeave)

public void setJoin (String join)

public void setLeave (String leave)

Protected Methods

protected String doExecute ()

Throws
Exception

protected void doValidation ()