Class BambooPermission
java.lang.Object
com.atlassian.bamboo.security.acegi.acls.BambooPermission
- All Implemented Interfaces:
Serializable
,org.acegisecurity.acls.Permission
public class BambooPermission
extends Object
implements org.acegisecurity.acls.Permission, Serializable
Notes:
- permissions name strings should not contain '_' character to avoid interfering with UI field id creation
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BambooPermission
static final Set<BambooPermission>
static final BambooPermission
static final BambooPermission
static final BambooPermission
static final BambooPermission
static final BambooPermission
static final BambooPermission
static final com.google.common.collect.ImmutableList<BambooPermission>
Deprecated.static final BambooPermission
static final BambooPermission
static final BambooPermission
static final BambooPermission
static final BambooPermission
static final BambooPermission
Fields inherited from interface org.acegisecurity.acls.Permission
RESERVED_OFF, RESERVED_ON, THIRTY_TWO_RESERVED_OFF
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.acegisecurity.acls.Permission
buildFromMask
(int mask) Dynamically creates aCumulativePermission
orBambooPermission
representing the active bits in the passed mask.static org.acegisecurity.acls.Permission[]
buildFromMask
(int[] inputMasks) static @NotNull org.acegisecurity.acls.Permission
buildFromName
(String name) static org.acegisecurity.acls.Permission[]
buildFromName
(String[] names) static BambooPermission
convertToBambooPermission
(org.acegisecurity.acls.Permission permission) static @Nullable String
determineNameFromPermission
(org.acegisecurity.acls.Permission permission) Determine the name of the permission based on the bit mask.boolean
int
getMask()
getName()
static @NotNull com.google.common.collect.ImmutableList<BambooPermission>
Deprecated.since 6.2 usePlanPermissionsService.supportedPermissions()
int
hashCode()
static boolean
isGlobalPermissionGrantedForRestrictedAdmin
(org.acegisecurity.acls.Permission permission) Check if global permission is granted for restricted admintoString()
-
Field Details
-
READ
-
WRITE
-
CREATE
-
DELETE
-
ADMINISTRATION
-
SIGN_UP
-
BUILD
-
CLONE
-
RESTRICTEDADMINISTRATION
-
SOX_COMPLIANCE
-
CREATE_REPOSITORY
-
VIEW_CONFIGURATION
-
APPROVE_RELEASE
-
PLAN_RELATED_PERMISSIONS
@Deprecated public static final com.google.common.collect.ImmutableList<BambooPermission> PLAN_RELATED_PERMISSIONSDeprecated. -
ALL_PERMISSIONS
-
-
Method Details
-
determineNameFromPermission
@Nullable public static @Nullable String determineNameFromPermission(org.acegisecurity.acls.Permission permission) Determine the name of the permission based on the bit mask. TODO: Do we still need it? We should be operating on BambooPermission objects instead of Strings -
getPlanPermissionsList
@NotNull @Deprecated public static @NotNull com.google.common.collect.ImmutableList<BambooPermission> getPlanPermissionsList()Deprecated.since 6.2 usePlanPermissionsService.supportedPermissions()
Returns collection of all possible collections for plan. Has to be updated, when new permission is added- Returns:
- collection of all possible permissions for plan
-
buildFromMask
public static org.acegisecurity.acls.Permission buildFromMask(int mask) Dynamically creates aCumulativePermission
orBambooPermission
representing the active bits in the passed mask.- Parameters:
mask
- to build- Returns:
- a Permission representing the requested object
-
buildFromMask
public static org.acegisecurity.acls.Permission[] buildFromMask(int[] inputMasks) -
buildFromName
-
buildFromName
-
isGlobalPermissionGrantedForRestrictedAdmin
public static boolean isGlobalPermissionGrantedForRestrictedAdmin(org.acegisecurity.acls.Permission permission) Check if global permission is granted for restricted admin -
convertToBambooPermission
public static BambooPermission convertToBambooPermission(org.acegisecurity.acls.Permission permission) -
equals
-
hashCode
public int hashCode() -
getMask
public int getMask()- Specified by:
getMask
in interfaceorg.acegisecurity.acls.Permission
-
getName
-
getPattern
- Specified by:
getPattern
in interfaceorg.acegisecurity.acls.Permission
-
toString
-
PlanPermissionsService.supportedPermissions()