|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.taggercat.security.Permission
public class Permission
The Permission class provides static methods and
constants to decode security permissions. The sets of
permissions are represented as integers with distinct bit positions
representing the different permission values.

| Field Summary | |
|---|---|
static int |
ALL_PERMISSIONS
The int value representing the DELETE
permission. |
static int |
DELETE_PERMISSION
The int value representing the DELETE
permission. |
static int |
INSERT_PERMISSION
The int value representing the INSERT
permission. |
static int |
UPDATE_PERMISSION
The int value representing the UPDATE
permission. |
static int |
VIEW_PERMISSION
The int value representing the VIEW
permission. |
| Method Summary | |
|---|---|
static boolean |
isDelete(int permissions)
Return true if the integer argument includes the DELETE_PERMISSION permission, false otherwise. |
static boolean |
isInsert(int permissions)
Return true if the integer argument includes the INSERT_PERMISSION permission, false otherwise. |
static boolean |
isUpdate(int permissions)
Return true if the integer argument includes the UPDATE_PERMISSION permission, false otherwise. |
static boolean |
isView(int permissions)
Return true if the integer argument includes the VIEW_PERMISSION permission, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VIEW_PERMISSION
int value representing the VIEW
permission.
public static final int UPDATE_PERMISSION
int value representing the UPDATE
permission.
public static final int INSERT_PERMISSION
int value representing the INSERT
permission.
public static final int DELETE_PERMISSION
int value representing the DELETE
permission.
public static final int ALL_PERMISSIONS
int value representing the DELETE
permission.
| Method Detail |
|---|
public static boolean isUpdate(int permissions)
permissions - a set of permissions
permissions includes the
UPDATE_PERMISSION permission; false otherwise.public static boolean isInsert(int permissions)
permissions - a set of permissions
permissions includes the
INSERT_PERMISSION permission; false otherwise.public static boolean isView(int permissions)
permissions - a set of permissions
permissions includes the
VIEW_PERMISSION permission; false otherwise.public static boolean isDelete(int permissions)
permissions - a set of permissions
permissions includes the
DELETE_PERMISSION permission; false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||