org.apache.lenya.ac
Interface PolicyManager

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Subinterfaces:
InheritingPolicyManager
All Known Implementing Classes:
DocumentPolicyManagerWrapper, FilePolicyManager, SitemapPolicyManager

public interface PolicyManager
extends org.apache.avalon.framework.component.Component

A policy manager.

Version:
$Id: PolicyManager.java 473841 2006-11-12 00:46:38Z gregor $

Field Summary
static java.lang.String ROLE
          The Avalon role.
 
Method Summary
 void accreditableAdded(AccreditableManager manager, Accreditable accreditable)
          Called when an accreditable was added.
 void accreditableRemoved(AccreditableManager manager, Accreditable accreditable)
          Called when an accreditable was removed.
 Policy getPolicy(AccreditableManager controller, java.lang.String url)
          Returns the policy for a given page.
 

Field Detail

ROLE

static final java.lang.String ROLE
The Avalon role.

Method Detail

getPolicy

Policy getPolicy(AccreditableManager controller,
                 java.lang.String url)
                 throws AccessControlException
Returns the policy for a given page.

Parameters:
controller - The access controller.
url - The url inside the web application.
Returns:
The policy.
Throws:
AccessControlException - when something went wrong.

accreditableAdded

void accreditableAdded(AccreditableManager manager,
                       Accreditable accreditable)
                       throws AccessControlException
Called when an accreditable was added. Used to create the admin interface policy.

Parameters:
manager - The accreditable manager the accreditable belonged to.
accreditable - The accreditable that was removed.
Throws:
AccessControlException - when something went wrong.

accreditableRemoved

void accreditableRemoved(AccreditableManager manager,
                         Accreditable accreditable)
                         throws AccessControlException
Called when an accreditable was removed. Used to clean up the policies and to remove the admin interface policy.

Parameters:
manager - The accreditable manager the accreditable belonged to.
accreditable - The accreditable that was removed.
Throws:
AccessControlException - when something went wrong.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.