org.apache.jetspeed.security
Class PolicyWrapper

java.lang.Object
  extended by org.apache.jetspeed.security.PolicyWrapper
All Implemented Interfaces:
Serializable

public class PolicyWrapper
extends Object
implements Serializable

Simple wrapper for security policy providing the ability to add attribute on Policy and how they should be used by the application.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  boolean defaultPolicy
          Whether to use as a default policy.
private  Policy policy
          The policy.
private static long serialVersionUID
          The serial version uid.
private  boolean useAsPolicy
          Whether to use as a policy.
 
Constructor Summary
PolicyWrapper(Policy policy, boolean useAsPolicy, boolean defaultPolicy)
           
 
Method Summary
 Policy getPolicy()
           
 boolean isDefaultPolicy()
           
 boolean isUseAsPolicy()
           
 void setDefaultPolicy(boolean defaultPolicy)
           
 void setPolicy(Policy policy)
           
 void setUseAsPolicy(boolean useAsPolicy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version uid.

See Also:
Constant Field Values

policy

private transient Policy policy
The policy.


useAsPolicy

private boolean useAsPolicy
Whether to use as a policy.


defaultPolicy

private boolean defaultPolicy
Whether to use as a default policy.

Constructor Detail

PolicyWrapper

public PolicyWrapper(Policy policy,
                     boolean useAsPolicy,
                     boolean defaultPolicy)
Parameters:
policy -
useAsPolicy -
defaultPolicy -
Method Detail

getPolicy

public Policy getPolicy()
Returns:
Returns the policy.

setPolicy

public void setPolicy(Policy policy)
Parameters:
policy - The policy to set.

isDefaultPolicy

public boolean isDefaultPolicy()
Returns:
Returns the defaultPolicy.

setDefaultPolicy

public void setDefaultPolicy(boolean defaultPolicy)
Parameters:
defaultPolicy - The defaultPolicy to set.

isUseAsPolicy

public boolean isUseAsPolicy()
Returns:
Returns the useAsPolicy.

setUseAsPolicy

public void setUseAsPolicy(boolean useAsPolicy)
Parameters:
useAsPolicy - The useAsPolicy to set.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.