org.fcrepo.server.security
Class PolicyFinderModule

java.lang.Object
  extended by com.sun.xacml.finder.PolicyFinderModule
      extended by org.fcrepo.server.security.PolicyFinderModule

public class PolicyFinderModule
extends com.sun.xacml.finder.PolicyFinderModule

XACML PolicyFinder for Fedora.

This provides repository-wide policies and object-specific policies, when available.


Constructor Summary
PolicyFinderModule(String combiningAlgorithm, String repositoryPolicyDirectoryPath, String repositoryBackendPolicyDirectoryPath, String repositoryPolicyGuiToolDirectoryPath, RepositoryReader repoReader, boolean validateRepositoryPolicies, boolean validateObjectPoliciesFromDatastream, PolicyParser policyParser)
           
 
Method Summary
 com.sun.xacml.finder.PolicyFinderResult findPolicy(com.sun.xacml.EvaluationCtx context)
          Gets a deny-biased policy set that includes all repository-wide and object-specific policies.
static String getPid(com.sun.xacml.EvaluationCtx context)
           
 void init(com.sun.xacml.finder.PolicyFinder finder)
          Does nothing at init time.
 boolean isRequestSupported()
          Always returns true, indicating that this impl supports finding policies based on a request.
 
Methods inherited from class com.sun.xacml.finder.PolicyFinderModule
findPolicy, getIdentifier, invalidateCache, isIdReferenceSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyFinderModule

public PolicyFinderModule(String combiningAlgorithm,
                          String repositoryPolicyDirectoryPath,
                          String repositoryBackendPolicyDirectoryPath,
                          String repositoryPolicyGuiToolDirectoryPath,
                          RepositoryReader repoReader,
                          boolean validateRepositoryPolicies,
                          boolean validateObjectPoliciesFromDatastream,
                          PolicyParser policyParser)
                   throws GeneralException
Throws:
GeneralException
Method Detail

init

public void init(com.sun.xacml.finder.PolicyFinder finder)
Does nothing at init time.

Specified by:
init in class com.sun.xacml.finder.PolicyFinderModule

isRequestSupported

public boolean isRequestSupported()
Always returns true, indicating that this impl supports finding policies based on a request.

Overrides:
isRequestSupported in class com.sun.xacml.finder.PolicyFinderModule

findPolicy

public com.sun.xacml.finder.PolicyFinderResult findPolicy(com.sun.xacml.EvaluationCtx context)
Gets a deny-biased policy set that includes all repository-wide and object-specific policies.

Overrides:
findPolicy in class com.sun.xacml.finder.PolicyFinderModule

getPid

public static String getPid(com.sun.xacml.EvaluationCtx context)


Copyright © 2011 DuraSpace. All Rights Reserved.