org.apache.jetspeed.security.impl
Class AuthorizationProviderImpl
java.lang.Object
org.apache.jetspeed.security.impl.AuthorizationProviderImpl
- All Implemented Interfaces:
- AuthorizationProvider
- public class AuthorizationProviderImpl
- extends Object
- implements AuthorizationProvider
- Author:
- David Le Strat
- See Also:
AuthorizationProvider
Field Summary |
private static org.apache.commons.logging.Log |
log
|
Method Summary |
List |
getPolicies()
The list of configured policies. |
void |
useDefaultPolicy(boolean whetherToUseDefaultPolicy)
Whether to use the default policy or not in addition to the Policies configured for the AuthorizationProvider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
AuthorizationProviderImpl
public AuthorizationProviderImpl(Policy policy,
boolean useDefaultPolicy)
Constructor for adding another policy to be enforced. This constructor makes the assumption
that the input policy should be used as the primary policy.
- Parameters:
policy
- The policy to configure.useDefaultPolicy
- Whether to also use the default policy.
getPolicies
public List getPolicies()
- Description copied from interface:
AuthorizationProvider
The list of configured policies.
- Specified by:
getPolicies
in interface AuthorizationProvider
- Returns:
- The list of policies.
- See Also:
AuthorizationProvider.getPolicies()
useDefaultPolicy
public void useDefaultPolicy(boolean whetherToUseDefaultPolicy)
- Description copied from interface:
AuthorizationProvider
Whether to use the default policy or not in addition to the Policies configured for the AuthorizationProvider.
- Specified by:
useDefaultPolicy
in interface AuthorizationProvider
- Parameters:
whetherToUseDefaultPolicy
- Boolean false: does not use the default policy, true: does.- See Also:
AuthorizationProvider.useDefaultPolicy(boolean)
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.