org.apache.lenya.ac.impl
Interface InheritingPolicyManager

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

public interface InheritingPolicyManager
extends PolicyManager

Policy manager which inherits credentials in a policy tree.

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

Field Summary
 
Fields inherited from interface org.apache.lenya.ac.PolicyManager
ROLE
 
Method Summary
 DefaultPolicy buildSubtreePolicy(AccreditableManager controller, java.lang.String url)
          Builds a subtree policy from a file.
 DefaultPolicy buildURLPolicy(AccreditableManager controller, java.lang.String url)
          Builds the URL policy for a URL from a file.
 DefaultPolicy[] getPolicies(AccreditableManager controller, java.lang.String url)
          Returns the existing policies for all URL steps, beginning with the root policy.
 void saveSubtreePolicy(java.lang.String url, DefaultPolicy policy)
          Saves a Subtree policy.
 void saveURLPolicy(java.lang.String url, DefaultPolicy policy)
          Saves a URL policy.
 
Methods inherited from interface org.apache.lenya.ac.PolicyManager
accreditableAdded, accreditableRemoved, getPolicy
 

Method Detail

buildURLPolicy

DefaultPolicy buildURLPolicy(AccreditableManager controller,
                             java.lang.String url)
                             throws AccessControlException
Builds the URL policy for a URL 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.

buildSubtreePolicy

DefaultPolicy 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

DefaultPolicy[] getPolicies(AccreditableManager controller,
                            java.lang.String url)
                            throws AccessControlException
Returns the existing policies for all URL steps, beginning 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.

saveURLPolicy

void saveURLPolicy(java.lang.String url,
                   DefaultPolicy policy)
                   throws AccessControlException
Saves a URL policy.

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

saveSubtreePolicy

void saveSubtreePolicy(java.lang.String url,
                       DefaultPolicy 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-2005 Apache Software Foundation. All Rights Reserved.