|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.acl.basic.AbstractBasicAclEntry
org.acegisecurity.acl.basic.SimpleAclEntry
public class SimpleAclEntry
Stores some privileges typical of a domain object.
| Field Summary | |
|---|---|
static int |
ADMINISTRATION
|
static int |
CREATE
|
static int |
DELETE
|
static int |
NOTHING
|
static int |
READ
|
static int |
READ_WRITE
|
static int |
READ_WRITE_CREATE
|
static int |
READ_WRITE_CREATE_DELETE
|
static int |
READ_WRITE_DELETE
|
static int |
WRITE
|
| Constructor Summary | |
|---|---|
SimpleAclEntry()
Allows BasicAclDao implementations to construct this object
using newInstance(). |
|
SimpleAclEntry(Object recipient,
AclObjectIdentity aclObjectIdentity,
AclObjectIdentity aclObjectParentIdentity,
int mask)
|
|
| Method Summary | |
|---|---|
int[] |
getValidPermissions()
Subclasses must indicate the permissions they support. |
String |
printPermissionsBlock(int i)
Outputs the permissions in a human-friendly format. |
| Methods inherited from class org.acegisecurity.acl.basic.AbstractBasicAclEntry |
|---|
addPermission, addPermissions, deletePermission, deletePermissions, getAclObjectIdentity, getAclObjectParentIdentity, getMask, getRecipient, isPermitted, isPermitted, printPermissionsBlock, setAclObjectIdentity, setAclObjectParentIdentity, setMask, setRecipient, togglePermission, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NOTHING
public static final int ADMINISTRATION
public static final int READ
public static final int WRITE
public static final int CREATE
public static final int DELETE
public static final int READ_WRITE_CREATE_DELETE
public static final int READ_WRITE_CREATE
public static final int READ_WRITE
public static final int READ_WRITE_DELETE
| Constructor Detail |
|---|
public SimpleAclEntry()
BasicAclDao implementations to construct this object
using newInstance().
Normal classes should not use this default constructor.
public SimpleAclEntry(Object recipient,
AclObjectIdentity aclObjectIdentity,
AclObjectIdentity aclObjectParentIdentity,
int mask)
| Method Detail |
|---|
public int[] getValidPermissions()
AbstractBasicAclEntrypublic static final int. It
is further recommended that valid combinations of permissions are also exposed as public static final
ints.This method returns all permission integers that are allowed to be used together. This must include any combinations of valid permissions. So if the permissions indicated by 2^^2 (4) and 2^^1 (2) can be used together, one of the integers returned by this method must be 6 (4 + 2). Otherwise attempts to set the permission will be rejected, as the final resulting mask will be rejected.
Whilst it may seem unduly time onerous to return every valid permission combination, doing so delivers maximum flexibility in ensuring ACLs only reflect logical combinations. For example, it would be inappropriate to grant a "read" and "write" permission along with an "unrestricted" permission, as the latter implies the former permissions.
getValidPermissions in class AbstractBasicAclEntrypublic String printPermissionsBlock(int i)
AbstractBasicAclEntry
printPermissionsBlock in class AbstractBasicAclEntryi - the integer containing the mask which should be printed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||