java.lang.Object | |
↳ | com.atlassian.bitbucket.web.conditions.AbstractUserManagementPermissionCondition |
![]() |
An abstract base class for constructing a condition check which validates that the user has
admin
privileges and that some other Crowd-based condition is met.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
AbstractUserManagementPermissionCondition which will use the provided
PermissionService to perform the admin check and the provided
UserAdminService to perform the user management check. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
No initialisation is necessary, because the permission is fixed as
admin . | |||||||||||
Ensures the user has
admin privileges and then delegates to
shouldDisplay(UserAdminService) to perform the Crowd check. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Implemented in derived classes to perform a user management check to verify the required condition.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new AbstractUserManagementPermissionCondition
which will use the provided
PermissionService
to perform the admin
check and the provided
UserAdminService
to perform the user management check.
adminService | the user admin service to use when performing checks |
---|---|
permissionService | the permission service to use when performing checks |
No initialisation is necessary, because the permission is fixed as admin
.
map | ignored |
---|
Ensures the user has admin
privileges and then delegates to
shouldDisplay(UserAdminService)
to perform the Crowd check.
map | ignored |
---|
true
if the user has admin privileges and the required Crowd condition is met; otherwise,
false)
Implemented in derived classes to perform a user management check to verify the required condition.
crowdService | the service to use when performing the check |
---|
true
if the check passes; otherwise, false