|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPolicySet
Represents a set of policy rules. Policy rules are ordered from lowest priority to highest priority. The priority assignment for rules is not enforced by this interface. Various implementation may use different mechanisms such as a linear ordering of rules in a configuration file or explicit assignment of priority levels ..etc. The policy system initialization needs to deal with reading the rules, sorting them in increasing order of priority and presenting an ordered vector of rules via the IPolicySet interface.
NOTE: The Policy Framework has been replaced by the Profile Framework.
Method Summary | |
---|---|
void |
addRule(java.lang.String ruleName,
IPolicyRule rule)
Deprecated. Add a policy rule. |
PolicyResult |
apply(IRequest req)
Deprecated. Apply policy rules on a request. |
int |
count()
Deprecated. Returns the no of rules in a set. |
java.lang.String |
getName()
Deprecated. Returns the name of the rule set. |
IPolicyRule |
getRule(java.lang.String ruleName)
Deprecated. Returns the rule identified by a given name. |
java.util.Enumeration |
getRules()
Deprecated. Returns an enumeration of rules. |
void |
removeRule(java.lang.String ruleName)
Deprecated. Removes a policy rule identified by the given name. |
Method Detail |
---|
java.lang.String getName()
int count()
void addRule(java.lang.String ruleName, IPolicyRule rule)
ruleName
- The name of the rule to be added.rule
- The rule to be added.void removeRule(java.lang.String ruleName)
ruleName
- The name of the rule to be removed.IPolicyRule getRule(java.lang.String ruleName)
ruleName
- The name of the rule to be return.
java.util.Enumeration getRules()
PolicyResult apply(IRequest req)
req
- The request to apply policies on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |