|
IBM WebSphere Extended Deployment (XD)TM, Release 6.1 ObjectGrid API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.Permission
com.ibm.websphere.objectgrid.security.MapPermission
public final class MapPermission
This class represents permissions to the ObjectMap. It has five different actions:
ObjectMap class for the permissions
needed for each method.
Permission,
ObjectMap,
Serialized Form| Field Summary | |
|---|---|
static int |
ALL
All permission constant |
static java.lang.String |
ALL_PERMISSION
All permissions String |
static int |
INSERT
Insert permission constant |
static int |
INVALIDATE
Invalidate permission constant |
static int |
NUMBER_PERMISSION
The total number of possible Permissions |
static java.lang.String[] |
PERMISSIONS
An array with the string representation of each permission. |
static int |
READ
Read permission constant |
static int |
REMOVE
Remove permission constant |
static int |
WRITE
Write permission constant |
| Constructor Summary | |
|---|---|
MapPermission(java.lang.String name,
int actions)
Constructs a new MapPermission for the named map with the specified actions. |
|
MapPermission(java.lang.String name,
java.lang.String actions)
Constructs a new MapPermission for the named map with the specified actions. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Checks two MapPermission objects for equality. |
java.lang.String |
getActions()
Returns the actions as a String. |
static java.lang.String |
getActions(int m)
Returns the actions as a String for the specified mask. |
int |
getActionsInInt()
Returns an int mask value which represents the permission's actions. |
java.lang.String[] |
getParsedNames()
Returns an array which contains the object grid name and map name. |
int |
hashCode()
Returns the hash code value for this MapPermission object. |
boolean |
implies(java.security.Permission permission)
Checks if the specified permission is "implied" by this object. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, newPermissionCollection, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NUMBER_PERMISSION
public static final int READ
public static final int WRITE
public static final int INSERT
public static final int REMOVE
public static final int INVALIDATE
public static final java.lang.String[] PERMISSIONS
The indexes to the String representation are the int
constants for each permission (i.e. READ, WRITE, INSERT, REMOVE,
INVALIDATE)
public static final java.lang.String ALL_PERMISSION
public static final int ALL
| Constructor Detail |
|---|
public MapPermission(java.lang.String name,
java.lang.String actions)
The map name for this permission should be in the format of
public MapPermission(java.lang.String name,
int actions)
The map name for this permission should be in the format of
| Method Detail |
|---|
public boolean implies(java.security.Permission permission)
More specifically, this method returns true if:
implies in class java.security.Permissionpermission - the permission to check against.
public boolean equals(java.lang.Object o)
Do not use the equals method for making access control
decisions; use the implies method.
equals in class java.security.Permissiono - the object we are testing for equality with this object.
true if both MapPermission objects are equivalent.public int hashCode()
hashCode in class java.security.Permissionpublic java.lang.String getActions()
getActions in class java.security.Permissionpublic static java.lang.String getActions(int m)
m - the mask
public java.lang.String[] getParsedNames()
public int getActionsInInt()
For example, for a MapPermission which has read and insert permissions, the returned value will be 5 (MapPermission.READ|MapPermission.INSERT).
|
IBM WebSphere Extended Deployment (XD)TM, Release 6.1 ObjectGrid API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||