public class

CanCreateGroupsCondition

extends AbstractUserManagementPermissionCondition
java.lang.Object
   ↳ com.atlassian.bitbucket.web.conditions.AbstractUserManagementPermissionCondition
     ↳ com.atlassian.bitbucket.web.conditions.CanCreateGroupsCondition

Class Overview

Verifies that is is possible to create groups.

Summary

Public Constructors
CanCreateGroupsCondition(UserAdminService adminService, PermissionService permissionService)
Public Methods
boolean shouldDisplay(UserAdminService adminService)
Performs a check to determine whether the creation of new groups is allowed.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.web.conditions.AbstractUserManagementPermissionCondition
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public CanCreateGroupsCondition (UserAdminService adminService, PermissionService permissionService)

Public Methods

public boolean shouldDisplay (UserAdminService adminService)

Performs a check to determine whether the creation of new groups is allowed.

Parameters
adminService the service to use when performing the check