| java.lang.Object org.acegisecurity.acls.jdbc.JdbcAclService org.acegisecurity.acls.jdbc.JdbcMutableAclService
JdbcMutableAclService | public class JdbcMutableAclService extends JdbcAclService implements MutableAclService(Code) | | Provides a base implementation of
MutableAclService .
author: Ben Alex author: Johannes Zlattinger version: $Id: JdbcMutableAclService.java 1784 2007-02-24 21:00:24Z luke_t $ |
createEntries | protected void createEntries(MutableAcl acl)(Code) | | Creates a new row in acl_entry for every ACE defined in the passed MutableAcl object.
Parameters: acl - containing the ACEs to insert |
createObjectIdentity | protected void createObjectIdentity(ObjectIdentity object, Sid owner)(Code) | | Creates an entry in the acl_object_identity table for the passed ObjectIdentity. The Sid is also
necessary, as acl_object_identity has defined the sid column as non-null.
Parameters: object - to represent an acl_object_identity for Parameters: owner - for the SID column (will be created if there is no acl_sid entry for this particular Sid already) |
createOrRetrieveClassPrimaryKey | protected Long createOrRetrieveClassPrimaryKey(Class clazz, boolean allowCreate)(Code) | | Retrieves the primary key from acl_class, creating a new row if needed and the allowCreate property is
true.
Parameters: clazz - to find or create an entry for (this implementation uses the fully-qualified class name String) Parameters: allowCreate - true if creation is permitted if not found the primary key or null if not found |
createOrRetrieveSidPrimaryKey | protected Long createOrRetrieveSidPrimaryKey(Sid sid, boolean allowCreate)(Code) | | Retrieves the primary key from acl_sid, creating a new row if needed and the allowCreate property is
true.
Parameters: sid - to find or create Parameters: allowCreate - true if creation is permitted if not found the primary key or null if not found throws: IllegalArgumentException - DOCUMENT ME! |
deleteEntries | protected void deleteEntries(ObjectIdentity oid)(Code) | | Deletes all ACEs defined in the acl_entry table belonging to the presented ObjectIdentity
Parameters: oid - the rows in acl_entry to delete |
deleteObjectIdentityAndOptionallyClass | protected void deleteObjectIdentityAndOptionallyClass(ObjectIdentity oid)(Code) | | Deletes a single row from acl_object_identity that is associated with the presented ObjectIdentity. In
addition, deletes the corresponding row from acl_class if there are no more entries in acl_object_identity that
use that particular acl_class. This keeps the acl_class table reasonably small.
Parameters: oid - to delete the acl_object_identity (and clean up acl_class for that class name if appropriate) |
updateAcl | public MutableAcl updateAcl(MutableAcl acl) throws NotFoundException(Code) | | This implementation will simply delete all ACEs in the database and recreate them on each invocation of
this method. A more comprehensive implementation might use dirty state checking, or more likely use ORM
capabilities for create, update and delete operations of
MutableAcl .
Parameters: acl - DOCUMENT ME! DOCUMENT ME! throws: NotFoundException - DOCUMENT ME! |
updateObjectIdentity | protected void updateObjectIdentity(MutableAcl acl)(Code) | | Updates an existing acl_object_identity row, with new information presented in the passed MutableAcl
object. Also will create an acl_sid entry if needed for the Sid that owns the MutableAcl.
Parameters: acl - to modify (a row must already exist in acl_object_identity) throws: NotFoundException - DOCUMENT ME! |
Fields inherited from org.acegisecurity.acls.jdbc.JdbcAclService | protected JdbcTemplate jdbcTemplate(Code)(Java Doc) final protected static Log log(Code)(Java Doc)
|
|
|