Class PolicyConstraint
java.lang.Object
com.netscape.cms.profile.constraint.PolicyConstraint
- All Implemented Interfaces:
IConfigTemplate
This represents a constraint policy. A constraint policy
validates if the given request conforms to the set
rules.
- Version:
- $Revision$, $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IConfigStore
Returns the corresponding configuration store of this constraint policy.abstract String
Returns localized name of this constraint.abstract String
Returns localized description of this constraint.abstract void
init
(IConfigStore config) Initializes this constraint policy.abstract boolean
Checks if this constraint is applicable to the given default policy.abstract void
Validates the request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netscape.certsrv.property.IConfigTemplate
getConfig, getConfigDescriptor, getConfigNames, setConfig
-
Constructor Details
-
PolicyConstraint
public PolicyConstraint()
-
-
Method Details
-
init
Initializes this constraint policy.- Parameters:
config
- configuration store for this constraint- Throws:
EProfileException
- failed to initialize
-
getConfigStore
Returns the corresponding configuration store of this constraint policy.- Returns:
- config store of this constraint
-
validate
Validates the request. The request is not modified during the validation.- Parameters:
request
- request to be validated- Throws:
ERejectException
- reject the given request
-
getText
-
getName
-
isApplicable
Checks if this constraint is applicable to the given default policy.- Parameters:
def
- default policy to be checked- Returns:
- true if this constraint can be applied to the given default policy
-