org.apache.lenya.ac
Interface InheritingPolicyManager

All Superinterfaces:
org.apache.avalon.framework.component.Component, PolicyManager

public interface InheritingPolicyManager
extends PolicyManager

Policy manager which inherits credentials in a policy tree.

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

Field Summary
 
Fields inherited from interface org.apache.lenya.ac.PolicyManager
ROLE
 
Method Summary
 Policy buildSubtreePolicy(AccreditableManager controller, java.lang.String url)
          Builds a subtree policy from a file.
 Policy[] getPolicies(AccreditableManager controller, java.lang.String url)
          Returns the existing policies for all URL steps in bottom-up order, ending with the root policy.
 void saveSubtreePolicy(java.lang.String url, Policy policy)
          Saves a Subtree policy.
 
Methods inherited from interface org.apache.lenya.ac.PolicyManager
accreditableAdded, accreditableRemoved, getCredentials, getGrantedRoles, getPolicy
 

Method Detail

buildSubtreePolicy

Policy buildSubtreePolicy(AccreditableManager controller,
                          java.lang.String url)
                          throws AccessControlException
Builds a subtree policy from a file. When the file is not present, an empty policy is returned.

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

getPolicies

Policy[] getPolicies(AccreditableManager controller,
                     java.lang.String url)
                     throws AccessControlException
Returns the existing policies for all URL steps in bottom-up order, ending with the root policy.

Parameters:
controller - The accreditable manager to use.
url - The URL inside the web application.
Returns:
An array of policies.
Throws:
AccessControlException - when something went wrong.

saveSubtreePolicy

void saveSubtreePolicy(java.lang.String url,
                       Policy policy)
                       throws AccessControlException
Saves a Subtree policy.

Parameters:
url - The url to save the policy for.
policy - The policy to save.
Throws:
AccessControlException - when something went wrong.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.