public interface PolicyActionInstance extends PolicyRegistryObject
PolicyActionTemplate
for a particular Policy
It is modeled as an association of type Uses from the Policy(source object) to the PolicyAction(target object).Modifier and Type | Method and Description |
---|---|
void |
addParameter(PolicyParameter parameter)
Adds the given parameter to the action instance.
|
void |
addParameters(java.util.List<PolicyParameter> parameters)
Adds the given list of parameters to the action instance.
|
PolicyActionTemplate |
getActionTemplate()
The Policy Action for which this action instance was created.
|
AssertionType |
getActionType()
Returns the assertion type of the associated policy action.
|
com.centrasite.jaxr.infomodel.CentraSiteAssociation |
getJAXRObject()
Returns the JAXR association object for this action instance.
|
PolicyParameter |
getParameter(java.lang.String parameterName)
Gets the parameter (if any) which has the given name.
|
java.util.List<PolicyParameter> |
getParameters()
Gets the list of parameters for this action instance.
|
java.util.List<PolicyParameter> |
getParameters(java.lang.String parameterName)
Gets the list of parameters which have the given name.
|
Policy |
getPolicy()
Gets the Policy for which this action instance was created.
|
void |
removeParameter(PolicyParameter parameter)
Removes the given parameter from the list of parameters for the action instance.
|
void |
removeParameters(java.util.List<PolicyParameter> parameters)
Removes the given list of parameters from the list of parameters for the action instance.
|
boolean |
validate()
Validates whether all the mandatory parameter(s) have required values.
|
addAssociation, addAssociation, getAllClassifiedConcepts, getAllJAXRObjects, getAllObsoleteObjects, getAssociations, getAssociations, getClassifications, getClassifiedConcept, getDescription, getJAXRRegistryService, getKey, getLoggedInUserLocale, getName, removeAllAssociations, removeAllClassifications, setDescription, setName, toXMLForRepair
com.centrasite.jaxr.infomodel.CentraSiteAssociation getJAXRObject()
getJAXRObject
in interface PolicyRegistryObject
CentraSiteAssociation
instancevoid addParameter(PolicyParameter parameter) throws javax.xml.registry.JAXRException
parameter
- the parameter to be addedjavax.xml.registry.JAXRException
- if an internal error occurs on adding the parametervoid addParameters(java.util.List<PolicyParameter> parameters)
parameters
- the parameters to be addedjava.util.List<PolicyParameter> getParameters() throws javax.xml.registry.JAXRException, PolicyException
PolicyParameter
objectsjavax.xml.registry.JAXRException
- if an internal error occurs on retrieving the policy parametersPolicyException
- if an internal error occursjava.util.List<PolicyParameter> getParameters(java.lang.String parameterName) throws javax.xml.registry.JAXRException, PolicyException
parameterName
- the policy parameter namejavax.xml.registry.JAXRException
- if an internal error occurs on retrieving the policy parametersPolicyException
- if an internal error occursPolicyParameter getParameter(java.lang.String parameterName) throws javax.xml.registry.JAXRException, PolicyException
parameterName
- the policy parameter namejavax.xml.registry.JAXRException
- if an internal error occurs on retrieving the policy parameterPolicyException
- if an internal error occursvoid removeParameter(PolicyParameter parameter)
parameter
- the parameter to be removedvoid removeParameters(java.util.List<PolicyParameter> parameters)
parameters
- the list of PolicyParameter
objects to removePolicyActionTemplate getActionTemplate() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on retrieving the action templateAssertionType getActionType() throws javax.xml.registry.JAXRException, PolicyException
javax.xml.registry.JAXRException
- if an internal error occurs on retrieving the action typePolicyException
- if an internal error occursPolicy getPolicy() throws PolicyException, javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on retrieving the policyPolicyException
- if an internal error occursboolean validate() throws PolicyException, javax.xml.registry.JAXRException
true
if all the mandatory parameter(s) have required valuesPolicyException
- if any of the mandatory parameters do not have values setjavax.xml.registry.JAXRException
- if an internal error occurs