Java Doc for AccessControl.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » ac » usecases » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.cms.ac.usecases 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lenya.cms.ac.usecases.AccessControlUsecase
   org.apache.lenya.cms.ac.usecases.AccessControl

AccessControl
public class AccessControl extends AccessControlUsecase (Code)
Usecase to display the AccessControl tab in the site area for a document. This is a mix-in class that ideally would inherit both from AccessControlUsecase and DocumentUsecase. FIXME i just took the appropriate code from DocumentUsecase, maybe its possible to have a saner inheritance?
version:
   $Id: AccessControl.java 408702 2006-05-22 16:03:49Z andreas $


Field Summary
final protected static  StringAC_AREA
    
final protected static  StringADD
    
final protected static  StringANCESTOR_SSL
    
final protected static  StringDELETE
    
final protected static  StringDOCUMENT
    
final protected static  StringDOWN
    
final protected static  StringGROUP
    
final protected static  StringIPRANGE
    
final protected static  StringPARENT_CREDENTIALS
    
final protected static  StringROLE
    
final protected static  StringSSL
    
final protected static  StringSUB_CREDENTIALS
    
final protected static  StringSUB_GROUP
    
final protected static  StringSUB_IPRANGE
    
final protected static  StringSUB_USER
    
final protected static  StringUP
    
final protected static  StringUSER
    
final protected static  StringWORLD
    


Method Summary
protected  booleancontainsCredential(ModifiablePolicy policy, Accreditable accreditable, Role role)
    
protected  voiddoCheckExecutionConditions()
    
protected  voiddoCheckPreconditions()
    
public  voiddoExecute()
    
protected  AccreditablegetAccreditable(String type, String id)
    
protected  AccreditableManagergetAccreditableManager()
    
public  CredentialWrapper[]getCredentials(boolean inherit)
     Returns the credentials of the policy of the selected URL.
public  CredentialWrapper[]getParentCredentials()
     Returns the credential wrappers for the parent URI of the URL belonging to the request of this object model.
protected  ModifiablePolicy[]getPolicies(boolean inherit)
     Returns the policies for a certain URL.
Parameters:
  inherit - If true, all ancestor policies are returned.
protected  ModifiablePolicygetPolicy()
    
protected  InheritingPolicyManagergetPolicyManager()
    
protected  StringgetPolicyURL()
    
public  CredentialWrapper[]getSubtreeCredentials()
     Returns the credential wrappers for the request of this object model.
protected  voidinitParameters()
    
protected  booleanisAncestorSSLProtected()
     Returns if one of the ancestors of this URL is SSL protected.
protected  booleanisSSLProtected()
     Returns if one of the ancestors of this URL is SSL protected.
protected  voidmanipulateCredential(Accreditable accreditable, Role role, String operation, String method)
     Changes a credential by adding or deleting an item for a role.
protected  voidsetSSLProtected(boolean ssl)
     Sets if this URL is SSL protected.

Field Detail
AC_AREA
final protected static String AC_AREA(Code)



ADD
final protected static String ADD(Code)



ANCESTOR_SSL
final protected static String ANCESTOR_SSL(Code)



DELETE
final protected static String DELETE(Code)



DOCUMENT
final protected static String DOCUMENT(Code)



DOWN
final protected static String DOWN(Code)



GROUP
final protected static String GROUP(Code)



IPRANGE
final protected static String IPRANGE(Code)



PARENT_CREDENTIALS
final protected static String PARENT_CREDENTIALS(Code)



ROLE
final protected static String ROLE(Code)



SSL
final protected static String SSL(Code)



SUB_CREDENTIALS
final protected static String SUB_CREDENTIALS(Code)



SUB_GROUP
final protected static String SUB_GROUP(Code)



SUB_IPRANGE
final protected static String SUB_IPRANGE(Code)



SUB_USER
final protected static String SUB_USER(Code)



UP
final protected static String UP(Code)



USER
final protected static String USER(Code)



WORLD
final protected static String WORLD(Code)





Method Detail
containsCredential
protected boolean containsCredential(ModifiablePolicy policy, Accreditable accreditable, Role role) throws AccessControlException(Code)



doCheckExecutionConditions
protected void doCheckExecutionConditions() throws Exception(Code)



doCheckPreconditions
protected void doCheckPreconditions() throws Exception(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.doCheckPreconditions



doExecute
public void doExecute() throws Exception(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.doExecute



getAccreditable
protected Accreditable getAccreditable(String type, String id)(Code)



getAccreditableManager
protected AccreditableManager getAccreditableManager()(Code)



getCredentials
public CredentialWrapper[] getCredentials(boolean inherit) throws ProcessingException(Code)
Returns the credentials of the policy of the selected URL. An array of CredentialWrappers.
throws:
  ProcessingException - when something went wrong.



getParentCredentials
public CredentialWrapper[] getParentCredentials() throws ProcessingException(Code)
Returns the credential wrappers for the parent URI of the URL belonging to the request of this object model. An array of CredentialWrappers.
throws:
  ProcessingException - when something went wrong.



getPolicies
protected ModifiablePolicy[] getPolicies(boolean inherit) throws ProcessingException(Code)
Returns the policies for a certain URL.
Parameters:
  inherit - If true, all ancestor policies are returned. Otherwise,only the URL policies are returned. An array of DefaultPolicy objects.
throws:
  ProcessingException - when something went wrong.



getPolicy
protected ModifiablePolicy getPolicy() throws AccessControlException(Code)



getPolicyManager
protected InheritingPolicyManager getPolicyManager()(Code)



getPolicyURL
protected String getPolicyURL()(Code)



getSubtreeCredentials
public CredentialWrapper[] getSubtreeCredentials() throws ProcessingException(Code)
Returns the credential wrappers for the request of this object model. An array of CredentialWrappers.
throws:
  ProcessingException - when something went wrong.



initParameters
protected void initParameters()(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.initParameters



isAncestorSSLProtected
protected boolean isAncestorSSLProtected() throws ProcessingException(Code)
Returns if one of the ancestors of this URL is SSL protected. A boolean value.
throws:
  ProcessingException - when something went wrong.



isSSLProtected
protected boolean isSSLProtected() throws ProcessingException(Code)
Returns if one of the ancestors of this URL is SSL protected. A boolean value.
throws:
  ProcessingException - when something went wrong.



manipulateCredential
protected void manipulateCredential(Accreditable accreditable, Role role, String operation, String method) throws ProcessingException(Code)
Changes a credential by adding or deleting an item for a role.
Parameters:
  accreditable - The accreditable to add or delete.
Parameters:
  role - The role.
Parameters:
  operation - The operation, either AccessControl.ADDor AccessControl.DELETE.
Parameters:
  method -
throws:
  ProcessingException - when something went wrong.



setSSLProtected
protected void setSSLProtected(boolean ssl) throws ProcessingException(Code)
Sets if this URL is SSL protected.
Parameters:
  ssl - A boolean value.
throws:
  ProcessingException - when something went wrong.



Methods inherited from org.apache.lenya.cms.ac.usecases.AccessControlUsecase
protected AccessController getAccessController()(Code)(Java Doc)
protected GroupManager getGroupManager()(Code)(Java Doc)
protected IPRangeManager getIpRangeManager()(Code)(Java Doc)
protected RoleManager getRoleManager()(Code)(Java Doc)
protected UserManager getUserManager()(Code)(Java Doc)
protected void initializeAccessController()(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.