org.apache.lenya.cms.ac
Class SitemapPolicyManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.ac.SitemapPolicyManager
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.lenya.ac.PolicyManager

public class SitemapPolicyManager
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.ac.PolicyManager, org.apache.avalon.framework.service.Serviceable

Policy manager based on Cocoon sitemaps.

Version:
$Id: SitemapPolicyManager.java 473861 2006-11-12 03:51:14Z gregor $

Field Summary
 
Fields inherited from interface org.apache.lenya.ac.PolicyManager
ROLE
 
Constructor Summary
SitemapPolicyManager()
           
 
Method Summary
 void accreditableAdded(org.apache.lenya.ac.AccreditableManager _manager, org.apache.lenya.ac.Accreditable accreditable)
           
 void accreditableRemoved(org.apache.lenya.ac.AccreditableManager _manager, org.apache.lenya.ac.Accreditable accreditable)
           
 org.apache.lenya.ac.Credential[] getCredentials(org.apache.lenya.ac.AccreditableManager controller, java.lang.String url)
           
 org.apache.lenya.ac.Role[] getGrantedRoles(org.apache.lenya.ac.AccreditableManager accreditableManager, org.apache.lenya.ac.Identity identity, java.lang.String url)
           
 org.apache.avalon.framework.service.ServiceManager getManager()
          Returns the service manager.
 org.apache.lenya.ac.Policy getPolicy(org.apache.lenya.ac.AccreditableManager accreditableManager, java.lang.String url)
           
 void service(org.apache.avalon.framework.service.ServiceManager _manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitemapPolicyManager

public SitemapPolicyManager()
Method Detail

getPolicy

public org.apache.lenya.ac.Policy getPolicy(org.apache.lenya.ac.AccreditableManager accreditableManager,
                                            java.lang.String url)
                                     throws org.apache.lenya.ac.AccessControlException
Specified by:
getPolicy in interface org.apache.lenya.ac.PolicyManager
Throws:
org.apache.lenya.ac.AccessControlException
See Also:
PolicyManager.getPolicy(org.apache.lenya.ac.AccreditableManager, java.lang.String)

service

public void service(org.apache.avalon.framework.service.ServiceManager _manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getManager

public org.apache.avalon.framework.service.ServiceManager getManager()
Returns the service manager.

Returns:
A service manager.

accreditableRemoved

public void accreditableRemoved(org.apache.lenya.ac.AccreditableManager _manager,
                                org.apache.lenya.ac.Accreditable accreditable)
                         throws org.apache.lenya.ac.AccessControlException
Specified by:
accreditableRemoved in interface org.apache.lenya.ac.PolicyManager
Throws:
org.apache.lenya.ac.AccessControlException
See Also:
PolicyManager.accreditableRemoved(org.apache.lenya.ac.AccreditableManager, org.apache.lenya.ac.Accreditable)

accreditableAdded

public void accreditableAdded(org.apache.lenya.ac.AccreditableManager _manager,
                              org.apache.lenya.ac.Accreditable accreditable)
                       throws org.apache.lenya.ac.AccessControlException
Specified by:
accreditableAdded in interface org.apache.lenya.ac.PolicyManager
Throws:
org.apache.lenya.ac.AccessControlException
See Also:
PolicyManager.accreditableAdded(org.apache.lenya.ac.AccreditableManager, org.apache.lenya.ac.Accreditable)

getCredentials

public org.apache.lenya.ac.Credential[] getCredentials(org.apache.lenya.ac.AccreditableManager controller,
                                                       java.lang.String url)
                                                throws org.apache.lenya.ac.AccessControlException
Specified by:
getCredentials in interface org.apache.lenya.ac.PolicyManager
Throws:
org.apache.lenya.ac.AccessControlException

getGrantedRoles

public org.apache.lenya.ac.Role[] getGrantedRoles(org.apache.lenya.ac.AccreditableManager accreditableManager,
                                                  org.apache.lenya.ac.Identity identity,
                                                  java.lang.String url)
                                           throws org.apache.lenya.ac.AccessControlException
Specified by:
getGrantedRoles in interface org.apache.lenya.ac.PolicyManager
Throws:
org.apache.lenya.ac.AccessControlException


Copyright $ Apache Software Foundation. All Rights Reserved.