public interface IPolicyRule extends IPolicy
NOTE: The Policy Framework has been replaced by the Profile Framework.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_ENABLE
Deprecated.
|
static java.lang.String |
PROP_IMPLNAME
Deprecated.
|
static java.lang.String |
PROP_PREDICATE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PolicyResult |
apply(IRequest req)
Deprecated.
Applies the policy on the given Request.
|
java.util.Vector |
getDefaultParams()
Deprecated.
Return default parameters for a policy implementation.
|
java.lang.String |
getDescription()
Deprecated.
Gets the description for this policy rule.
|
java.lang.String |
getInstanceName()
Deprecated.
Returns the name of the policy rule instance.
|
java.util.Vector |
getInstanceParams()
Deprecated.
Return configured parameters for a policy rule instance.
|
java.lang.String |
getName()
Deprecated.
Returns the name of the policy rule class.
|
IExpression |
getPredicate()
Deprecated.
Returns the predicate expression for the rule.
|
void |
init(ISubsystem owner,
IConfigStore config)
Deprecated.
Initializes the policy rule.
|
void |
setError(IRequest req,
java.lang.String format,
java.lang.Object[] params)
Deprecated.
|
void |
setInstanceName(java.lang.String instanceName)
Deprecated.
|
void |
setPolicyException(IRequest req,
EBaseException ex)
Deprecated.
|
void |
setPredicate(IExpression exp)
Deprecated.
Sets a predicate expression for rule matching.
|
static final java.lang.String PROP_ENABLE
static final java.lang.String PROP_PREDICATE
static final java.lang.String PROP_IMPLNAME
void init(ISubsystem owner, IConfigStore config) throws EBaseException
config
- The config store referenceEBaseException
java.lang.String getDescription()
java.lang.String getName()
java.lang.String getInstanceName()
void setPredicate(IExpression exp)
exp
- The predicate expression for the rule.IExpression getPredicate()
PolicyResult apply(IRequest req)
java.util.Vector getInstanceParams()
java.util.Vector getDefaultParams()
void setError(IRequest req, java.lang.String format, java.lang.Object[] params)
void setInstanceName(java.lang.String instanceName)
void setPolicyException(IRequest req, EBaseException ex)