public interface IPolicyConstraint extends IConfigTemplate
Modifier and Type | Method and Description |
---|---|
IConfigStore |
getConfigStore()
Returns the corresponding configuration store
of this constraint policy.
|
java.lang.String |
getName(java.util.Locale locale)
Returns localized name of this constraint.
|
java.lang.String |
getText(java.util.Locale locale)
Returns localized description of this constraint.
|
void |
init(IProfile profile,
IConfigStore config)
Initializes this constraint policy.
|
boolean |
isApplicable(IPolicyDefault def)
Checks if this constraint is applicable to the
given default policy.
|
void |
validate(IRequest request)
Validates the request.
|
getConfig, getConfigDescriptor, getConfigNames, setConfig
void init(IProfile profile, IConfigStore config) throws EProfileException
profile
- owner of this policyconfig
- configuration store for this constraintEProfileException
- failed to initializeIConfigStore getConfigStore()
void validate(IRequest request) throws ERejectException
request
- request to be validatedERejectException
- reject the given requestjava.lang.String getText(java.util.Locale locale)
locale
- locale of the end-userjava.lang.String getName(java.util.Locale locale)
locale
- locale of the end-userboolean isApplicable(IPolicyDefault def)
def
- default policy to be checked