public class PolicyVerifier
extends java.lang.Object
Constructor and Description |
---|
PolicyVerifier() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isPolicyApplicableForRO(Policy policy,
RegistryObject regObj)
checks the given policy is applicable for this given registry object.
|
static void |
verifyActionRule(ExtrinsicObject rule,
Concept ruleType)
Verifies the action rule based on whether the rule type is java or groovy.
|
public static boolean isPolicyApplicableForRO(Policy policy, RegistryObject regObj) throws JAXRException, PolicyException
policy
- object of type Policy
regObj
- object of type RegistryObject
true
if the given registry object is applicable.PolicyException
- if an internal error occursJAXRException
- if an internal error occurs while verifying the action rulepublic static final void verifyActionRule(ExtrinsicObject rule, Concept ruleType) throws PolicyException, JAXRException
rule
- of type ExtrinsicObject
ruleType
- of type Concept
carries java or groovy rule infoPolicyException
- if any I/O exception occurs while verifying the action ruleJAXRException
- if an internal error occurs while verifying the action rule