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


org.apache.lenya.ac.impl.DefaultAccessController

All known Subclasses:   org.apache.lenya.ac.impl.BypassableAccessController,
DefaultAccessController
public class DefaultAccessController extends AbstractLogEnabled implements AccessController,Configurable,Serviceable,Disposable,ItemManagerListener(Code)
Default access controller implementation.
version:
   $Id: DefaultAccessController.java 563459 2007-08-07 12:00:20Z
version:
   nettings $


Field Summary
final protected static  StringACCREDITABLE_MANAGER_ELEMENT
    
final protected static  StringAUTHORIZER_ELEMENT
    
final protected static  StringPOLICY_MANAGER_ELEMENT
    
final protected static  StringTYPE_ATTRIBUTE
    


Method Summary
public  booleanauthenticate(Request request)
    
public  booleanauthorize(Request request)
    
public  voidconfigure(Configuration conf)
    
public static  voidconfigureOrParameterize(Component component, Configuration configuration)
     Configures or parameterizes a component, depending on the implementation as Configurable or Parameterizable.
public  voiddispose()
    
public  AccreditableManagergetAccreditableManager()
     Returns the accreditable manager.
public  AuthenticatorgetAuthenticator()
     Returns the authenticator.
public  Authorizer[]getAuthorizers()
     Returns the authorizers of this action.
protected  ServiceManagergetManager()
     Returns the service manager.
public  PolicyManagergetPolicyManager()
     Returns the policy manager.
protected  booleanhasAuthorizers()
     Returns if this action has authorizers.
protected  booleanhasValidIdentity(Session session)
     Checks if the session contains an identity that is not null and belongs to the used access controller.
Parameters:
  session - The current session.
public  voiditemAdded(Item item)
    
public  voiditemRemoved(Item item)
    
public  booleanownsIdenity(Identity identity)
     Checks if this identity was initialized by this access controller.
Parameters:
  identity - An identity.
protected  voidresolveRoles(Request request)
    
protected  voidsaveRoles(Request request, Role[] roles)
     Saves the roles of the current identity to the request.
public  voidservice(ServiceManager _manager)
     Set the global component manager.
protected  voidsetupAccreditableManager(Configuration configuration)
     Creates the accreditable manager.
protected  voidsetupAuthenticator()
     Sets up the authenticator.
protected  voidsetupAuthorizers(Configuration configuration)
     Creates the authorizers.
public  voidsetupIdentity(Request request)
    
protected  voidsetupPolicyManager(Configuration configuration)
     Creates the policy manager.

Field Detail
ACCREDITABLE_MANAGER_ELEMENT
final protected static String ACCREDITABLE_MANAGER_ELEMENT(Code)



AUTHORIZER_ELEMENT
final protected static String AUTHORIZER_ELEMENT(Code)



POLICY_MANAGER_ELEMENT
final protected static String POLICY_MANAGER_ELEMENT(Code)



TYPE_ATTRIBUTE
final protected static String TYPE_ATTRIBUTE(Code)





Method Detail
authenticate
public boolean authenticate(Request request) throws AccessControlException(Code)

See Also:   org.apache.lenya.ac.AccessController.authenticate(org.apache.cocoon.environment.Request)



authorize
public boolean authorize(Request request) throws AccessControlException(Code)

See Also:   org.apache.lenya.ac.AccessController.authorize(org.apache.cocoon.environment.Request)



configure
public void configure(Configuration conf) throws ConfigurationException(Code)

See Also:   org.apache.avalon.framework.configuration.Configurable.configure(org.apache.avalon.framework.configuration.Configuration)



configureOrParameterize
public static void configureOrParameterize(Component component, Configuration configuration) throws ConfigurationException, ParameterException(Code)
Configures or parameterizes a component, depending on the implementation as Configurable or Parameterizable.
Parameters:
  component - The component.
Parameters:
  configuration - The configuration to use.
throws:
  ConfigurationException - when an error occurs during configuration.
throws:
  ParameterException - when an error occurs during parameterization.



dispose
public void dispose()(Code)

See Also:   org.apache.avalon.framework.activity.Disposable.dispose



getAccreditableManager
public AccreditableManager getAccreditableManager()(Code)
Returns the accreditable manager. An accreditable manager.



getAuthenticator
public Authenticator getAuthenticator()(Code)
Returns the authenticator. The authenticator.



getAuthorizers
public Authorizer[] getAuthorizers()(Code)
Returns the authorizers of this action. An array of authorizers.



getManager
protected ServiceManager getManager()(Code)
Returns the service manager. A service manager.



getPolicyManager
public PolicyManager getPolicyManager()(Code)
Returns the policy manager. A policy manager.



hasAuthorizers
protected boolean hasAuthorizers()(Code)
Returns if this action has authorizers. A boolean value.



hasValidIdentity
protected boolean hasValidIdentity(Session session) throws AccessControlException(Code)
Checks if the session contains an identity that is not null and belongs to the used access controller.
Parameters:
  session - The current session. A boolean value.
throws:
  AccessControlException - when something went wrong.



itemAdded
public void itemAdded(Item item) throws AccessControlException(Code)

See Also:   org.apache.lenya.ac.ItemManagerListener.itemAdded(org.apache.lenya.ac.Item)



itemRemoved
public void itemRemoved(Item item) throws AccessControlException(Code)

See Also:   org.apache.lenya.ac.ItemManagerListener.itemRemoved(org.apache.lenya.ac.Item)



ownsIdenity
public boolean ownsIdenity(Identity identity) throws AccessControlException(Code)
Checks if this identity was initialized by this access controller.
Parameters:
  identity - An identity. A boolean value.
throws:
  AccessControlException - when something went wrong.



resolveRoles
protected void resolveRoles(Request request) throws AccessControlException(Code)



saveRoles
protected void saveRoles(Request request, Role[] roles)(Code)
Saves the roles of the current identity to the request.
Parameters:
  request - The request.
Parameters:
  roles - The roles.



service
public void service(ServiceManager _manager) throws ServiceException(Code)
Set the global component manager.
Parameters:
  _manager - The global component manager
throws:
  ServiceException - when something went wrong.



setupAccreditableManager
protected void setupAccreditableManager(Configuration configuration) throws ConfigurationException, ServiceException, ParameterException(Code)
Creates the accreditable manager.
Parameters:
  configuration - The access controller configuration.
throws:
  ConfigurationException - when the configuration failed.
throws:
  ServiceException - when something went wrong.
throws:
  ParameterException - when something went wrong.



setupAuthenticator
protected void setupAuthenticator() throws ServiceException(Code)
Sets up the authenticator.
throws:
  ServiceException - when something went wrong.



setupAuthorizers
protected void setupAuthorizers(Configuration configuration) throws ServiceException, ConfigurationException, ParameterException(Code)
Creates the authorizers.
Parameters:
  configuration - The access controller configuration.
throws:
  ConfigurationException - when the configuration failed.
throws:
  ServiceException - when something went wrong.
throws:
  ParameterException - when something went wrong.



setupIdentity
public void setupIdentity(Request request) throws AccessControlException(Code)

See Also:   org.apache.lenya.ac.AccessController.setupIdentity(org.apache.cocoon.environment.Request)



setupPolicyManager
protected void setupPolicyManager(Configuration configuration) throws ServiceException, ConfigurationException, ParameterException(Code)
Creates the policy manager.
Parameters:
  configuration - The access controller configuration.
throws:
  ConfigurationException - when the configuration failed.
throws:
  ServiceException - when something went wrong.
throws:
  ParameterException - when something went wrong.



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