Java Doc for JdbcMutableAclService.java in  » Security » acegi-security » org » acegisecurity » acls » jdbc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Security » acegi security » org.acegisecurity.acls.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Constructor Summary
public  JdbcMutableAclService(DataSource dataSource, LookupStrategy lookupStrategy, AclCache aclCache)
    

Method Summary
public  MutableAclcreateAcl(ObjectIdentity objectIdentity)
    
protected  voidcreateEntries(MutableAcl acl)
     Creates a new row in acl_entry for every ACE defined in the passed MutableAcl object.
protected  voidcreateObjectIdentity(ObjectIdentity object, Sid owner)
     Creates an entry in the acl_object_identity table for the passed ObjectIdentity.
protected  LongcreateOrRetrieveClassPrimaryKey(Class clazz, boolean allowCreate)
     Retrieves the primary key from acl_class, creating a new row if needed and the allowCreate property is true.
protected  LongcreateOrRetrieveSidPrimaryKey(Sid sid, boolean allowCreate)
     Retrieves the primary key from acl_sid, creating a new row if needed and the allowCreate property is true.
public  voiddeleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren)
    
protected  voiddeleteEntries(ObjectIdentity oid)
    
protected  voiddeleteObjectIdentityAndOptionallyClass(ObjectIdentity oid)
     Deletes a single row from acl_object_identity that is associated with the presented ObjectIdentity.
protected  LongretrieveObjectIdentityPrimaryKey(ObjectIdentity oid)
     Retrieves the primary key from the acl_object_identity table for the passed ObjectIdentity.
public  MutableAclupdateAcl(MutableAcl acl)
     This implementation will simply delete all ACEs in the database and recreate them on each invocation of this method.
protected  voidupdateObjectIdentity(MutableAcl acl)
     Updates an existing acl_object_identity row, with new information presented in the passed MutableAcl object.


Constructor Detail
JdbcMutableAclService
public JdbcMutableAclService(DataSource dataSource, LookupStrategy lookupStrategy, AclCache aclCache)(Code)




Method Detail
createAcl
public MutableAcl createAcl(ObjectIdentity objectIdentity) throws AlreadyExistsException(Code)



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!



deleteAcl
public void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren) throws ChildrenExistException(Code)



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)



retrieveObjectIdentityPrimaryKey
protected Long retrieveObjectIdentityPrimaryKey(ObjectIdentity oid)(Code)
Retrieves the primary key from the acl_object_identity table for the passed ObjectIdentity. Unlike some other methods in this implementation, this method will NOT create a row (use JdbcMutableAclService.createObjectIdentity(ObjectIdentity,Sid) instead).
Parameters:
  oid - to find the object identity or null if not found



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)

Methods inherited from org.acegisecurity.acls.jdbc.JdbcAclService
public ObjectIdentity[] findChildren(ObjectIdentity parentIdentity)(Code)(Java Doc)
public Acl readAclById(ObjectIdentity object, Sid[] sids) throws NotFoundException(Code)(Java Doc)
public Acl readAclById(ObjectIdentity object) throws NotFoundException(Code)(Java Doc)
public Map readAclsById(ObjectIdentity[] objects)(Code)(Java Doc)
public Map readAclsById(ObjectIdentity[] objects, Sid[] sids) throws NotFoundException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.