Java Doc for AclImpl.java in  » Security » acegi-security » org » acegisecurity » acls » domain » 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.domain 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.acegisecurity.acls.domain.AclImpl

AclImpl
public class AclImpl implements Acl,MutableAcl,AuditableAcl,OwnershipAcl(Code)
Base implementation of Acl.
author:
   Ben Alex
version:
   $Id



Constructor Summary
public  AclImpl(ObjectIdentity objectIdentity, Serializable id, AclAuthorizationStrategy aclAuthorizationStrategy, AuditLogger auditLogger)
     Minimal constructor, which should be used org.acegisecurity.acls.MutableAclService.createAcl(ObjectIdentity) .
public  AclImpl(ObjectIdentity objectIdentity, Serializable id, AclAuthorizationStrategy aclAuthorizationStrategy, AuditLogger auditLogger, Acl parentAcl, Sid[] loadedSids, boolean entriesInheriting, Sid owner)
     Full constructor, which should be used by persistence tools that do not provide field-level access features.

Method Summary
public  voiddeleteAce(Serializable aceId)
    
public  AccessControlEntry[]getEntries()
    
public  SerializablegetId()
    
public  ObjectIdentitygetObjectIdentity()
    
public  SidgetOwner()
    
public  AclgetParentAcl()
    
public  voidinsertAce(Serializable afterAceId, Permission permission, Sid sid, boolean granting)
    
public  booleanisEntriesInheriting()
    
public  booleanisGranted(Permission[] permission, Sid[] sids, boolean administrativeMode)
     Determines authorization.
public  booleanisSidLoaded(Sid[] sids)
    
public  voidsetEntriesInheriting(boolean entriesInheriting)
    
public  voidsetOwner(Sid newOwner)
    
public  voidsetParent(Acl newParent)
    
public  StringtoString()
    
public  voidupdateAce(Serializable aceId, Permission permission)
    
public  voidupdateAuditing(Serializable aceId, boolean auditSuccess, boolean auditFailure)
    


Constructor Detail
AclImpl
public AclImpl(ObjectIdentity objectIdentity, Serializable id, AclAuthorizationStrategy aclAuthorizationStrategy, AuditLogger auditLogger)(Code)
Minimal constructor, which should be used org.acegisecurity.acls.MutableAclService.createAcl(ObjectIdentity) .
Parameters:
  objectIdentity - the object identity this ACL relates to (required)
Parameters:
  id - the primary key assigned to this ACL (required)
Parameters:
  aclAuthorizationStrategy - authorization strategy (required)
Parameters:
  auditLogger - audit logger (required)



AclImpl
public AclImpl(ObjectIdentity objectIdentity, Serializable id, AclAuthorizationStrategy aclAuthorizationStrategy, AuditLogger auditLogger, Acl parentAcl, Sid[] loadedSids, boolean entriesInheriting, Sid owner)(Code)
Full constructor, which should be used by persistence tools that do not provide field-level access features.
Parameters:
  objectIdentity - the object identity this ACL relates to (required)
Parameters:
  id - the primary key assigned to this ACL (required)
Parameters:
  aclAuthorizationStrategy - authorization strategy (required)
Parameters:
  auditLogger - audit logger (required)
Parameters:
  parentAcl - the parent (may be null)
Parameters:
  loadedSids - the loaded SIDs if only a subset were loaded (may benull)
Parameters:
  entriesInheriting - if ACEs from the parent should inherit intothis ACL
Parameters:
  owner - the owner (required)




Method Detail
deleteAce
public void deleteAce(Serializable aceId) throws NotFoundException(Code)



getEntries
public AccessControlEntry[] getEntries()(Code)



getId
public Serializable getId()(Code)



getObjectIdentity
public ObjectIdentity getObjectIdentity()(Code)



getOwner
public Sid getOwner()(Code)



getParentAcl
public Acl getParentAcl()(Code)



insertAce
public void insertAce(Serializable afterAceId, Permission permission, Sid sid, boolean granting) throws NotFoundException(Code)



isEntriesInheriting
public boolean isEntriesInheriting()(Code)



isGranted
public boolean isGranted(Permission[] permission, Sid[] sids, boolean administrativeMode) throws NotFoundException, UnloadedSidException(Code)
Determines authorization. The order of the permission and sid arguments is extremely important! The method will iterate through each of the permissions in the order specified. For each iteration, all of the sids will be considered, again in the order they are presented. A search will then be performed for the first AccessControlEntry object that directly matches that permission:sid combination. When the first full match is found (ie an ACE that has the SID currently being searched for and the exact permission bit mask being search for), the grant or deny flag for that ACE will prevail. If the ACE specifies to grant access, the method will return true. If the ACE specifies to deny access, the loop will stop and the next permission iteration will be performed. If each permission indicates to deny access, the first deny ACE found will be considered the reason for the failure (as it was the first match found, and is therefore the one most logically requiring changes - although not always). If absolutely no matching ACE was found at all for any permission, the parent ACL will be tried (provided that there is a parent and AclImpl.isEntriesInheriting() is true. The parent ACL will also scan its parent and so on. If ultimately no matching ACE is found, a NotFoundException will be thrown and the caller will need to decide how to handle the permission check. Similarly, if any of the SID arguments presented to the method were not loaded by the ACL, UnloadedSidException will be thrown.
Parameters:
  permission - the exact permissions to scan for (order is important)
Parameters:
  sids - the exact SIDs to scan for (order is important)
Parameters:
  administrativeMode - if true denotes the query is for administrative purposes and no auditingwill be undertaken true if one of the permissions has been granted, false if one of thepermissions has been specifically revoked
throws:
  NotFoundException - if an exact ACE for one of the permission bit masks and SID combination could not befound
throws:
  UnloadedSidException - if the passed SIDs are unknown to this ACL because the ACL was only loaded for asubset of SIDs



isSidLoaded
public boolean isSidLoaded(Sid[] sids)(Code)



setEntriesInheriting
public void setEntriesInheriting(boolean entriesInheriting)(Code)



setOwner
public void setOwner(Sid newOwner)(Code)



setParent
public void setParent(Acl newParent)(Code)



toString
public String toString()(Code)



updateAce
public void updateAce(Serializable aceId, Permission permission) throws NotFoundException(Code)



updateAuditing
public void updateAuditing(Serializable aceId, boolean auditSuccess, boolean auditFailure)(Code)



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.