|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.acl.basic.AbstractBasicAclEntry org.springframework.security.acl.basic.SimpleAclEntry
public class SimpleAclEntry
Stores some privileges typical of a domain object.
Field Summary | |
---|---|
static int |
ADMINISTRATION
Deprecated. |
static int |
CREATE
Deprecated. |
static int |
DELETE
Deprecated. |
static int |
NOTHING
Deprecated. |
static int |
READ
Deprecated. |
static int |
READ_WRITE
Deprecated. |
static int |
READ_WRITE_CREATE
Deprecated. |
static int |
READ_WRITE_CREATE_DELETE
Deprecated. |
static int |
READ_WRITE_DELETE
Deprecated. |
static int |
WRITE
Deprecated. |
Constructor Summary | |
---|---|
SimpleAclEntry()
Deprecated. Allows BasicAclDao implementations to construct this object
using newInstance() . |
|
SimpleAclEntry(Object recipient,
AclObjectIdentity aclObjectIdentity,
AclObjectIdentity aclObjectParentIdentity,
int mask)
Deprecated. |
Method Summary | |
---|---|
int[] |
getValidPermissions()
Deprecated. Subclasses must indicate the permissions they support. |
static int |
parsePermission(String permission)
Deprecated. Parse a permission String literal and return associated value. |
static int[] |
parsePermissions(String[] permissions)
Deprecated. Parse a list of permission String literals and return associated values. |
String |
printPermissionsBlock(int i)
Deprecated. Outputs the permissions in a human-friendly format. |
Methods inherited from class org.springframework.security.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()
AbstractBasicAclEntry
public static final int
. It
is further recommended that valid combinations of permissions are also exposed as public static final
int
s.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 AbstractBasicAclEntry
public String printPermissionsBlock(int i)
AbstractBasicAclEntry
printPermissionsBlock
in class AbstractBasicAclEntry
i
- the integer containing the mask which should be printed
public static int parsePermission(String permission)
String
literal and return associated value.
permission
- one of the field names that represent a permission: ADMINISTRATION
,
READ
, WRITE
,...
IllegalArgumentException
- if argument is not a valid permissionpublic static int[] parsePermissions(String[] permissions)
String
literals and return associated values.
permissions
- array with permissions as String
for valid values
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |