com.atlassian.bamboo.security.acegi.acls
Class BambooPermission

java.lang.Object
  extended by 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


Field Summary
static BambooPermission ADMINISTRATION
           
static java.lang.String ADMINISTRATION_STR
           
static BambooPermission BUILD
           
static BambooPermission CLONE
           
static BambooPermission CREATE
           
static BambooPermission DELETE
           
static com.google.common.collect.ImmutableList<BambooPermission> PLAN_RELATED_PERMISSIONS
           
static BambooPermission READ
           
static java.lang.String READ_STR
           
static com.google.common.collect.ImmutableSet<java.lang.String> RESTRICTED_ADMIN_PERMISSION_NAMES
          Deprecated. since 4.1 use $RESTRICTED_ADMIN_PERMISSIONS
static com.google.common.collect.ImmutableSet<org.acegisecurity.acls.Permission> RESTRICTED_ADMIN_PERMISSIONS
           
static java.lang.String RESTRICTED_ADMINISTRATION_STR
           
static BambooPermission RESTRICTEDADMINISTRATION
           
static BambooPermission SIGN_UP
           
static BambooPermission WRITE
           
static java.lang.String WRITE_STR
           
 
Fields inherited from interface org.acegisecurity.acls.Permission
RESERVED_OFF, RESERVED_ON, THIRTY_TWO_RESERVED_OFF
 
Method Summary
static org.acegisecurity.acls.Permission buildFromMask(int mask)
          Dynamically creates a CumulativePermission or BambooPermission representing the active bits in the passed mask.
static org.acegisecurity.acls.Permission[] buildFromMask(int[] inputMasks)
           
static org.acegisecurity.acls.Permission buildFromName(java.lang.String name)
           
static org.acegisecurity.acls.Permission[] buildFromName(java.lang.String[] names)
           
static java.lang.String determineNameFromPermission(org.acegisecurity.acls.Permission permission)
           
 boolean equals(java.lang.Object arg0)
           
 int getMask()
           
 java.lang.String getName()
           
 java.lang.String getPattern()
           
static org.acegisecurity.acls.Permission[] getPlanPermissions()
          Deprecated. 
static com.google.common.collect.ImmutableList<BambooPermission> getPlanPermissionsList()
          Returns collection of all possible collections for plan.
static boolean isGrantedForRestrictedAdmin(org.acegisecurity.acls.Permission permission)
           
static boolean isGrantedForRestrictedAdmin(java.lang.String permission)
          Deprecated. since 4.1 use $isGrantedForRestrictedAdmin(org.acegisecurity.acls.Permission)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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_PERMISSIONS

public static final com.google.common.collect.ImmutableSet<org.acegisecurity.acls.Permission> RESTRICTED_ADMIN_PERMISSIONS

RESTRICTED_ADMIN_PERMISSION_NAMES

@Deprecated
public static final com.google.common.collect.ImmutableSet<java.lang.String> RESTRICTED_ADMIN_PERMISSION_NAMES
Deprecated. since 4.1 use $RESTRICTED_ADMIN_PERMISSIONS
Method Detail

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

@Deprecated
public static boolean isGrantedForRestrictedAdmin(java.lang.String permission)
Deprecated. since 4.1 use $isGrantedForRestrictedAdmin(org.acegisecurity.acls.Permission)


isGrantedForRestrictedAdmin

public static boolean isGrantedForRestrictedAdmin(org.acegisecurity.acls.Permission 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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.