|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.security.SecurityPolicies
This class is used to hold the security that will be used when applying security policies. It uses a singleton pattern to maintain state of the policies configured in the consuming engine.
Field Summary | |
private static SecurityPolicies |
instance
The singleton instance. |
private List |
policies
The list of policies. |
private List |
usedPolicies
The list of used policies. |
private List |
wrappedPolicies
The list of wrapped policies. |
Constructor Summary | |
private |
SecurityPolicies()
Default contructor. |
Method Summary | |
void |
addPolicy(PolicyWrapper wrappedPolicy)
Adds a policy to the list of policies to enforces. |
static SecurityPolicies |
getInstance()
Returns the singleton instance for SecurityPolicies. |
List |
getPolicies()
Returns the security policies to enforce as list of Policy . |
List |
getUsedPolicies()
Returns the security policies to be enforced as list of Policy . |
List |
getWrappedPolicies()
Returns the security policies to enforce as list of PolicyWrapper . |
void |
removePolicy(PolicyWrapper policy)
Removes a policy from the list of policies to enforces. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static SecurityPolicies instance
private List wrappedPolicies
private List policies
private List usedPolicies
Constructor Detail |
private SecurityPolicies()
Method Detail |
public static SecurityPolicies getInstance()
Returns the singleton instance for SecurityPolicies.
public void addPolicy(PolicyWrapper wrappedPolicy)
Adds a policy to the list of policies to enforces.
wrappedPolicy
- The PolicyWrapper
to add.public List getPolicies()
Returns the security policies to enforce as list of Policy
.
public List getUsedPolicies()
Returns the security policies to be enforced as list of Policy
.
public List getWrappedPolicies()
Returns the security policies to enforce as list of PolicyWrapper
.
public void removePolicy(PolicyWrapper policy)
Removes a policy from the list of policies to enforces.
policy
- The Policy
to add.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |