|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
org.norther.tammi.core.security.DefaultPermission
public abstract class DefaultPermission
An abstract class for representing access to a resource. All permissions have a name (whose interpretation depends on the subclass), as well as abstract functions for defining the semantics of the particular permission subclass.
| Field Summary | |
|---|---|
static int |
ALL
Matched actions mask. |
static String |
ALL_ACTION
Full action. |
static String |
ANY_ROLE
Generic role. |
static int |
DELETE
Delete action mask. |
static String |
DELETE_ACTION
Delete action. |
static int |
EXECUTE
Execute action mask. |
static String |
EXECUTE_ACTION
Execute action. |
static int |
GROUP
Group action mask. |
static String |
GROUP_ACTION
Group action. |
static String |
NO_ACTION
No action. |
static int |
NONE
No actions mask. |
static int |
OVERRIDE
Override action mask. |
static String |
OVERRIDE_ACTION
Override action. |
static int |
READ
Read action mask. |
static String |
READ_ACTION
Read action. |
static int |
READ_WRITE
Read/write action mask. |
static String |
READ_WRITE_ACTION
Read/write action. |
static int |
WRITE
Write action mask. |
static String |
WRITE_ACTION
Write action. |
| Constructor Summary | |
|---|---|
DefaultPermission(String name)
Constructs a new permission. |
|
| Method Summary | |
|---|---|
static int |
toActionMask(String actions)
Converts actions to an action mask. |
static String |
toActionString(int mask)
Converts an action mask to actions. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, equals, getActions, getName, hashCode, implies, newPermissionCollection, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ANY_ROLE
public static final String NO_ACTION
public static final String READ_ACTION
public static final String WRITE_ACTION
public static final String EXECUTE_ACTION
public static final String DELETE_ACTION
public static final String OVERRIDE_ACTION
public static final String GROUP_ACTION
public static final String READ_WRITE_ACTION
public static final String ALL_ACTION
public static final int NONE
public static final int READ
public static final int WRITE
public static final int EXECUTE
public static final int DELETE
public static final int OVERRIDE
public static final int GROUP
public static final int READ_WRITE
public static final int ALL
| Constructor Detail |
|---|
public DefaultPermission(String name)
name - the name of the permission.| Method Detail |
|---|
public static int toActionMask(String actions)
actions - the action string.
public static String toActionString(int mask)
mask - the action mask.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||