|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.security.util.ActionSet
public class ActionSet
This action set implementation uses a bitwise representation of the individual actions. The action 'bits' are stored within a integer, thus limits the set to 32 different actions.
| Field Summary | |
|---|---|
static int |
ACTION_ACL_MODIFY
|
static int |
ACTION_ACL_READ
|
static int |
ACTION_ADD_NODE
|
static String[] |
ACTION_NAMES
|
static int |
ACTION_READ
|
static int |
ACTION_REMOVE
|
static int |
ACTION_SET_PROPERTY
|
static int |
ACTION_SUDO
|
static int |
ACTION_WORKSPACE_ACCESS
|
static ActionSet |
ALL
all action set |
protected static String[] |
BIT_INDEX
Build an index bits to name for conversion |
protected static ActionSet[] |
CACHED_SETS
cached action sets commonly used in crx |
protected static Map<String,Integer> |
NAME_INDEX
Build an index name to bit for conversion |
static ActionSet |
NONE
the empty action set |
static ActionSet |
READ
the 'read' action set |
static ActionSet |
SUDO
the 'sudo' action set |
static ActionSet |
WORKSPACE_ACCESS
the 'workspace_access' action set |
static ActionSet |
WRITE
the 'read' action set |
| Fields inherited from interface com.day.crx.security.ActionSet |
|---|
ACTION_NAME_ACL_MODIFY, ACTION_NAME_ACL_READ, ACTION_NAME_ADD_NODE, ACTION_NAME_READ, ACTION_NAME_REMOVE, ACTION_NAME_SET_PROPERTY, ACTION_NAME_SUDO, ACTION_NAME_WORKSPACE_ACCESS, CVS_ID |
| Method Summary | |
|---|---|
boolean |
contains(String action)
|
static ActionSet |
create(String[] actionNames)
Creates a new ActionSet |
com.day.crx.security.ActionSet |
diff(com.day.crx.security.ActionSet other)
|
boolean |
equals(Object obj)
A set is considered equal if the set Actions are the same if (this.getActions() == other.getActions())
this.equals(other)
|
String[] |
getActions()
|
static int |
getBitsForNames(String[] actionNames)
|
int |
hashCode()
calculate the hash-code based on the actions contained |
boolean |
includes(com.day.crx.security.ActionSet other)
|
com.day.crx.security.ActionSet |
intersect(com.day.crx.security.ActionSet other)
|
boolean |
intersects(com.day.crx.security.ActionSet other)
|
boolean |
isEmpty()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ACTION_READ
public static final int ACTION_SET_PROPERTY
public static final int ACTION_ADD_NODE
public static final int ACTION_REMOVE
public static final int ACTION_ACL_READ
public static final int ACTION_ACL_MODIFY
public static final int ACTION_WORKSPACE_ACCESS
public static final int ACTION_SUDO
public static final String[] ACTION_NAMES
protected static String[] BIT_INDEX
protected static Map<String,Integer> NAME_INDEX
protected static ActionSet[] CACHED_SETS
public static final ActionSet NONE
public static final ActionSet READ
public static final ActionSet WRITE
public static final ActionSet ALL
public static final ActionSet WORKSPACE_ACCESS
public static final ActionSet SUDO
| Method Detail |
|---|
public static ActionSet create(String[] actionNames)
actionNames - to be contained in this Set
public boolean intersects(com.day.crx.security.ActionSet other)
intersects in interface com.day.crx.security.ActionSetpublic boolean includes(com.day.crx.security.ActionSet other)
includes in interface com.day.crx.security.ActionSetpublic com.day.crx.security.ActionSet intersect(com.day.crx.security.ActionSet other)
intersect in interface com.day.crx.security.ActionSetpublic com.day.crx.security.ActionSet diff(com.day.crx.security.ActionSet other)
diff in interface com.day.crx.security.ActionSetpublic String[] getActions()
getActions in interface com.day.crx.security.ActionSetpublic boolean contains(String action)
contains in interface com.day.crx.security.ActionSetpublic boolean isEmpty()
isEmpty in interface com.day.crx.security.ActionSetpublic static int getBitsForNames(String[] actionNames)
actionNames - to get the bit representation for
public int hashCode()
hashCode in class ObjectObject.equals(Object),
Hashtablepublic boolean equals(Object obj)
if (this.getActions() == other.getActions())
this.equals(other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||