public class

GroupBrowser

extends AbstractBrowser
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.AbstractBrowser
               ↳ com.atlassian.jira.web.action.admin.user.GroupBrowser

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.AbstractBrowser
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
GroupBrowser(GroupToPermissionSchemeMapper groupToPermissionSchemeMapper, UserManager userManager, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, CrowdService crowdService, CrowdDirectoryService crowdDirectoryService, GroupManager groupManager, GroupService groupService, GroupLabelsService groupLabels)
GroupBrowser(GroupManager groupManager, UserManager userManager, CrowdService crowdService, CrowdDirectoryService crowdDirectoryService, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, GroupLabelsService groupLabels)
Public Methods
String doAdd()
String escapeAmpersand(String str)
String getAddName()
List getBrowsableItems()
List getCurrentPage()
Return the current 'page' of issues (given max and start) for the current filter
GroupBrowserFilter getFilter()
List<GroupLabelView> getGroupLabels(Group group)
PagerFilter getPager()
Collection<Scheme> getPermissionSchemes(String groupName)
int getUsersInGroupCount(Group group)
boolean hasGroupWritableDirectory()
@Nonnull String isGroupDeletable(String groupName)
Returns the empty string if the given group (name) is potentially deletable, otherwise returns the reason why it's not.
boolean isNestedGroupsEnabledForAnyDirectory()
Return true if any directory supports nested groups.
boolean isUserAbleToDeleteGroup(String groupName)
Test if the current user has the necessary permissions to permit deletion of given group.
void resetPager()
void setAddName(String addName)
Protected Methods
String doExecute()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.AbstractBrowser
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
From interface webwork.action.ParameterAware

Public Constructors

public GroupBrowser (GroupToPermissionSchemeMapper groupToPermissionSchemeMapper, UserManager userManager, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, CrowdService crowdService, CrowdDirectoryService crowdDirectoryService, GroupManager groupManager, GroupService groupService, GroupLabelsService groupLabels)

public GroupBrowser (GroupManager groupManager, UserManager userManager, CrowdService crowdService, CrowdDirectoryService crowdDirectoryService, GlobalPermissionGroupAssociationUtil globalPermissionGroupAssociationUtil, GroupService groupService, GroupLabelsService groupLabels)

Throws
GenericEntityException

Public Methods

public String doAdd ()

Throws
Exception

public String escapeAmpersand (String str)

public String getAddName ()

public List getBrowsableItems ()

public List getCurrentPage ()

Return the current 'page' of issues (given max and start) for the current filter

public GroupBrowserFilter getFilter ()

public List<GroupLabelView> getGroupLabels (Group group)

public PagerFilter getPager ()

public Collection<Scheme> getPermissionSchemes (String groupName)

public int getUsersInGroupCount (Group group)

public boolean hasGroupWritableDirectory ()

@Nonnull public String isGroupDeletable (String groupName)

Returns the empty string if the given group (name) is potentially deletable, otherwise returns the reason why it's not. Note that this is a different test than isUserAbleToDeleteGroup(String).

Returns
  • reason why group would not be deletable, otherwise the empty string.

public boolean isNestedGroupsEnabledForAnyDirectory ()

Return true if any directory supports nested groups.

Returns
  • true if any directory supports nested groups.

public boolean isUserAbleToDeleteGroup (String groupName)

Test if the current user has the necessary permissions to permit deletion of given group.

public void resetPager ()

public void setAddName (String addName)

Protected Methods

protected String doExecute ()

Throws
Exception