public abstract class PolicyConstraint extends java.lang.Object implements IConfigTemplate
| Constructor and Description |
|---|
PolicyConstraint() |
| Modifier and Type | Method and Description |
|---|---|
abstract IConfigStore |
getConfigStore()
Returns the corresponding configuration store
of this constraint policy.
|
abstract java.lang.String |
getName(java.util.Locale locale)
Returns localized name of this constraint.
|
abstract java.lang.String |
getText(java.util.Locale locale)
Returns localized description of this constraint.
|
abstract void |
init(IConfigStore config)
Initializes this constraint policy.
|
abstract boolean |
isApplicable(PolicyDefault def)
Checks if this constraint is applicable to the
given default policy.
|
abstract void |
validate(IRequest request)
Validates the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfig, getConfigDescriptor, getConfigNames, setConfigpublic abstract void init(IConfigStore config) throws EProfileException
config - configuration store for this constraintEProfileException - failed to initializepublic abstract IConfigStore getConfigStore()
public abstract void validate(IRequest request) throws ERejectException
request - request to be validatedERejectException - reject the given requestpublic abstract java.lang.String getText(java.util.Locale locale)
locale - locale of the end-userpublic abstract java.lang.String getName(java.util.Locale locale)
locale - locale of the end-userpublic abstract boolean isApplicable(PolicyDefault def)
def - default policy to be checked