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 org.acegisecurity.acls.Permission ADMINISTRATION
           
static java.lang.String ADMINISTRATION_STR
           
static org.acegisecurity.acls.Permission BUILD
           
static org.acegisecurity.acls.Permission CLONE
           
static org.acegisecurity.acls.Permission CREATE
           
static org.acegisecurity.acls.Permission DELETE
           
static org.acegisecurity.acls.Permission READ
           
static org.acegisecurity.acls.Permission SIGN_UP
           
static org.acegisecurity.acls.Permission WRITE
           
 
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[] masks)
           
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 getPattern()
           
static org.acegisecurity.acls.Permission[] getPlanPermissions()
          Returns collection of all possible collections for plan.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

READ

public static final org.acegisecurity.acls.Permission READ

WRITE

public static final org.acegisecurity.acls.Permission WRITE

CREATE

public static final org.acegisecurity.acls.Permission CREATE

DELETE

public static final org.acegisecurity.acls.Permission DELETE

ADMINISTRATION

public static final org.acegisecurity.acls.Permission ADMINISTRATION

SIGN_UP

public static final org.acegisecurity.acls.Permission SIGN_UP

BUILD

public static final org.acegisecurity.acls.Permission BUILD

CLONE

public static final org.acegisecurity.acls.Permission CLONE

ADMINISTRATION_STR

public static final java.lang.String ADMINISTRATION_STR
See Also:
Constant Field Values
Method Detail

determineNameFromPermission

public static java.lang.String determineNameFromPermission(org.acegisecurity.acls.Permission permission)

getPlanPermissions

public static org.acegisecurity.acls.Permission[] getPlanPermissions()
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[] masks)

buildFromName

public static org.acegisecurity.acls.Permission buildFromName(java.lang.String name)

buildFromName

public static org.acegisecurity.acls.Permission[] buildFromName(java.lang.String[] names)

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

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 © 2009 Atlassian Pty Ltd. All Rights Reserved.