org.apache.jackrabbit.core.security.authorization
Class Permission

java.lang.Object
  extended by org.apache.jackrabbit.core.security.authorization.Permission

public final class Permission
extends Object

Permission...


Field Summary
static int ADD_NODE
           
static int ALL
           
static int LIFECYCLE_MNGMT
           
static int LOCK_MNGMT
           
static int MODIFY_AC
           
static int NODE_TYPE_MNGMT
           
static int NONE
           
static int READ
           
static int READ_AC
           
static int REMOVE_NODE
           
static int REMOVE_PROPERTY
           
static int RETENTION_MNGMT
           
static int SET_PROPERTY
           
static int VERSION_MNGMT
           
 
Constructor Summary
Permission()
           
 
Method Summary
static int diff(int permissions, int otherPermissions)
          Returns those bits from permissions that are not present in the otherPermissions, i.e. subtracts the other permissions from permissions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

READ

public static final int READ
See Also:
Constant Field Values

SET_PROPERTY

public static final int SET_PROPERTY
See Also:
Constant Field Values

ADD_NODE

public static final int ADD_NODE
See Also:
Constant Field Values

REMOVE_NODE

public static final int REMOVE_NODE
See Also:
Constant Field Values

REMOVE_PROPERTY

public static final int REMOVE_PROPERTY
See Also:
Constant Field Values

READ_AC

public static final int READ_AC
See Also:
Constant Field Values

MODIFY_AC

public static final int MODIFY_AC
See Also:
Constant Field Values

NODE_TYPE_MNGMT

public static final int NODE_TYPE_MNGMT
See Also:
Constant Field Values

VERSION_MNGMT

public static final int VERSION_MNGMT
See Also:
Constant Field Values

LOCK_MNGMT

public static final int LOCK_MNGMT
See Also:
Constant Field Values

LIFECYCLE_MNGMT

public static final int LIFECYCLE_MNGMT
See Also:
Constant Field Values

RETENTION_MNGMT

public static final int RETENTION_MNGMT
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values
Constructor Detail

Permission

public Permission()
Method Detail

diff

public static int diff(int permissions,
                       int otherPermissions)
Returns those bits from permissions that are not present in the otherPermissions, i.e. subtracts the other permissions from permissions.
If the specified otherBits do not intersect with bits, bits are returned.
If bits is included otherBits, NONE is returned.

Parameters:
permissions -
otherPermissions -
Returns:
the differences of the 2 permissions or NONE.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.