| org.apache.lenya.ac.file.FilePolicyManager
FilePolicyManager | public class FilePolicyManager extends AbstractLogEnabled implements InheritingPolicyManager,Parameterizable,Disposable,Serviceable(Code) | | A PolicyBuilder is used to build policies.
|
Method Summary | |
public void | accreditableAdded(AccreditableManager manager, Accreditable accreditable) | public void | accreditableRemoved(AccreditableManager manager, Accreditable accreditable) | protected DefaultPolicy | buildPolicy(AccreditableManager controller, String url, String policyFilename) Builds a policy from a file. | public Policy | buildSubtreePolicy(AccreditableManager controller, String url) Builds a subtree policy from a file. | public void | dispose() | protected SourceCache | getCache() Returns the source cache. | public Credential[] | getCredentials(AccreditableManager controller, String url) | public Role[] | getGrantedRoles(AccreditableManager accreditableManager, Identity identity, String url) | public Policy[] | getPolicies(AccreditableManager controller, String url) | public File | getPoliciesDirectory() Get the path to the policies directory. | public Policy | getPolicy(AccreditableManager controller, String url) | protected File | getPolicyFile(String url, String policyFilename) Returns the policy file for a certain URL.
Parameters: url - The URL to get the policy for. Parameters: policyFilename - The policy filename. | protected String | getPolicySourceURI(String url, String policyFilename) Returns the policy file URI for a URL and a policy filename.
Parameters: url - The url to get the file for. Parameters: policyFilename - The name of the policy file. | protected ServiceManager | getServiceManager() Returns the service manager. | public void | parameterize(Parameters parameters) | protected void | removeAccreditable(AccreditableManager manager, Accreditable accreditable, File policyDirectory) Removes an accreditable from all policies within a certain directory
tree. | protected void | savePolicy(String url, Policy policy, String filename) Saves a policy to a file. | protected void | savePolicy(Policy policy, File file) Saves a policy to a file. | public void | saveSubtreePolicy(String url, Policy policy) Saves a Subtree policy. | public void | service(ServiceManager manager) | public void | setPoliciesDirectory(File directory) Sets the policies directory. |
DIRECTORY_PARAMETER | final protected static String DIRECTORY_PARAMETER(Code) | | |
SUBTREE_FILENAME | final protected static String SUBTREE_FILENAME(Code) | | |
FilePolicyManager | public FilePolicyManager()(Code) | | Creates a new FilePolicyManager.
|
dispose | public void dispose()(Code) | | See Also: org.apache.avalon.framework.activity.Disposable.dispose |
getCache | protected SourceCache getCache()(Code) | | Returns the source cache.
A source cache. |
getPolicySourceURI | protected String getPolicySourceURI(String url, String policyFilename) throws AccessControlException(Code) | | Returns the policy file URI for a URL and a policy filename.
Parameters: url - The url to get the file for. Parameters: policyFilename - The name of the policy file. A String. throws: AccessControlException - if an error occurs |
getServiceManager | protected ServiceManager getServiceManager()(Code) | | Returns the service manager.
A service manager. |
parameterize | public void parameterize(Parameters parameters) throws ParameterException(Code) | | See Also: org.apache.avalon.framework.parameters.Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters) |
removeAccreditable | protected void removeAccreditable(AccreditableManager manager, Accreditable accreditable, File policyDirectory) throws AccessControlException(Code) | | Removes an accreditable from all policies within a certain directory
tree.
Parameters: manager - The accreditable manager which owns the accreditable. Parameters: accreditable - The accreditable to remove. Parameters: policyDirectory - The directory where the policies are located. throws: AccessControlException - when an error occurs. |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | See Also: org.apache.avalon.framework.service.Serviceable.service(org.apache.avalon.framework.service.ServiceManager) |
|
|