com.atlassian.bamboo.security.acegi.acls
Class BambooPermission
java.lang.Object
com.atlassian.bamboo.security.acegi.acls.BambooPermission
- All Implemented Interfaces:
- org.acegisecurity.acls.Permission
public class BambooPermission
- extends java.lang.Object
- implements org.acegisecurity.acls.Permission
Fields inherited from interface org.acegisecurity.acls.Permission |
RESERVED_OFF, RESERVED_ON, THIRTY_TWO_RESERVED_OFF |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
READ_STR
public static final java.lang.String READ_STR
- See Also:
- Constant Field Values
WRITE_STR
public static final java.lang.String WRITE_STR
- See Also:
- Constant Field Values
ADMINISTRATION_STR
public static final java.lang.String ADMINISTRATION_STR
- See Also:
- Constant Field Values
RESTRICTED_ADMINISTRATION_STR
public static final java.lang.String RESTRICTED_ADMINISTRATION_STR
- See Also:
- Constant Field Values
READ
public static final BambooPermission READ
WRITE
public static final BambooPermission WRITE
CREATE
public static final BambooPermission CREATE
DELETE
public static final BambooPermission DELETE
ADMINISTRATION
public static final BambooPermission ADMINISTRATION
SIGN_UP
public static final BambooPermission SIGN_UP
BUILD
public static final BambooPermission BUILD
CLONE
public static final BambooPermission CLONE
RESTRICTEDADMINISTRATION
public static final BambooPermission RESTRICTEDADMINISTRATION
PLAN_RELATED_PERMISSIONS
public static final com.google.common.collect.ImmutableList<BambooPermission> PLAN_RELATED_PERMISSIONS
RESTRICTED_ADMIN_PERMISSION_NAMES
public static final com.google.common.collect.ImmutableSet<java.lang.String> RESTRICTED_ADMIN_PERMISSION_NAMES
determineNameFromPermission
@Nullable
public static java.lang.String determineNameFromPermission(org.acegisecurity.acls.Permission permission)
getPlanPermissions
@NotNull
@Deprecated
public static org.acegisecurity.acls.Permission[] getPlanPermissions()
- Deprecated.
- 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
- Since:
- 3.2 please use
getPlanPermissionsList()
getPlanPermissionsList
@NotNull
public static com.google.common.collect.ImmutableList<BambooPermission> getPlanPermissionsList()
- 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 a
CumulativePermission
or BambooPermission
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
@NotNull
public static org.acegisecurity.acls.Permission buildFromName(java.lang.String name)
buildFromName
public static org.acegisecurity.acls.Permission[] buildFromName(java.lang.String[] names)
isGrantedForRestrictedAdmin
public static boolean isGrantedForRestrictedAdmin(java.lang.String permission)
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in class java.lang.Object
getMask
public int getMask()
- Specified by:
getMask
in interface org.acegisecurity.acls.Permission
getName
public java.lang.String getName()
getPattern
public java.lang.String getPattern()
- Specified by:
getPattern
in interface org.acegisecurity.acls.Permission
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012 Atlassian. All Rights Reserved.