public interface PolicyLifeCycleManager
Modifier and Type | Method and Description |
---|---|
PolicyActionCategory |
createActionCategory(java.lang.String categoryName,
PolicyType policyType)
Creates an action category with the given category name.
|
PolicyActionInstance |
createActionInstance(PolicyActionTemplate policyAction)
Creates a Policy Action Instance for the given Policy Action.
|
PolicyActionParameter |
createActionParameter(java.lang.String type,
java.lang.String name)
Creates a Policy Action Parameter with the given name and type.
|
PolicyActionTemplate |
createActionTemplate(PolicyActionCategory actionCategory,
java.lang.String name,
java.lang.String description,
Concept policyActionExecutionType)
Creates a populated Policy Action Template instance.
|
Policy |
createCopy(Policy policy)
Creates a copy of the policy.
|
Policy |
createPolicy(PolicyType policyType,
java.lang.String name,
java.lang.String description,
boolean isGlobal)
Creates a Policy object with the given parameters.
|
PolicyCondition |
createPolicyCondition(java.util.List<Condition> conditions)
Creates a policy condition object with the given list of conditions.
|
PolicyParameter |
createPolicyParameter(PolicyActionParameter actionParameter)
Creates a Policy Parameter for the given Action Parameter.
|
Policy |
createVersion(Policy oldVersion)
Creates a new version of the policy.
|
PolicyActionTemplate |
createVersion(PolicyActionTemplate oldPolicyAction)
Creates a new version of the policy action.
|
void |
deleteActionCategory(PolicyActionCategory actionCategory)
Deletes the given Policy Action Category along with the Policy Action Templates under it.
|
void |
deleteActionTemplate(PolicyActionTemplate actionTemplate)
Deletes the given Policy Action Template along with the corresponding Policy Action Parameters.
|
void |
deletePolicy(Policy policy)
Deletes the given Policy along with the corresponding Policy Parameters.
|
void |
deletePolicyRegistryObjects(java.util.Collection<PolicyRegistryObject> policyRegistryObjects)
Deletes the given collection of policy registry objects.
|
void |
saveActionCategory(PolicyActionCategory actionCategory)
Saves the given Policy Action Category.
|
void |
saveActionTemplate(PolicyActionTemplate actionTemplate)
Saves the given Policy Action Template along with the corresponding Policy Action Parameters.
|
void |
savePolicy(Policy policy)
Saves the given Policy along with the corresponding Policy Parameters.
|
PolicyActionCategory createActionCategory(java.lang.String categoryName, PolicyType policyType) throws JAXRException, PolicyException
categoryName
- name of the action categorypolicyType
- whether Design/Change Time or RuntimeJAXRException
- if an internal error occurs on creating the action categoryPolicyException
- if an internal error occursvoid saveActionCategory(PolicyActionCategory actionCategory) throws JAXRException
actionCategory
- the Policy Action Category to be savedJAXRException
- if an internal error occurs on saving the action categoryvoid deleteActionCategory(PolicyActionCategory actionCategory) throws JAXRException, PolicyException
actionCategory
- Policy Action Category to be deletedJAXRException
- if an internal error occurs on deleting the action categoryPolicyException
- if an internal error occursPolicyActionTemplate createActionTemplate(PolicyActionCategory actionCategory, java.lang.String name, java.lang.String description, Concept policyActionExecutionType) throws PolicyException, JAXRException
actionCategory
- Policy Action Category under which this Action Template is to be addedname
- name of the Action Templatedescription
- description of the Action TemplatepolicyActionExecutionType
- Type of the Policy Action Execution for example, Java, GroovyPolicyException
- if an internal error occursJAXRException
- if an internal error occurs on creating the action templatePolicyActionTemplate createVersion(PolicyActionTemplate oldPolicyAction) throws JAXRException, PolicyException
oldPolicyAction
- policy action which needs to be versionedJAXRException
- if an internal error occurs on creating the versionPolicyException
- if an internal error occursvoid saveActionTemplate(PolicyActionTemplate actionTemplate) throws JAXRException, PolicyException
actionTemplate
- Policy Action Template to be savedJAXRException
- if an internal error occurs on saving the action templatePolicyException
- if an internal error occursvoid deleteActionTemplate(PolicyActionTemplate actionTemplate) throws JAXRException, PolicyException
actionTemplate
- Policy Action Template to be deletedJAXRException
- if an internal error occurs on deleting the action templatePolicyException
- if an internal error occursPolicyActionParameter createActionParameter(java.lang.String type, java.lang.String name) throws JAXRException, PolicyException
type
- type of the action parametername
- name of the action parameterPolicyActionParameter
objectJAXRException
- if an internal error occurs on creating the action parameterPolicyException
- if an internal error occursPolicy createPolicy(PolicyType policyType, java.lang.String name, java.lang.String description, boolean isGlobal) throws JAXRException, PolicyException
policyType
- Type of the policy whether Design/Change Time or Runtimename
- name of the policydescription
- description of the policyisGlobal
- whether this policy is applicable for all organizations or only the organization to which
it belongs.JAXRException
- if an internal error occurs on creating the policyPolicyException
- if an internal error occursPolicy createVersion(Policy oldVersion) throws JAXRException, PolicyException
oldVersion
- of type Policy
Policy
object for the given versionJAXRException
- if an internal error occurs on creating the versionPolicyException
- if an internal error occursPolicy createCopy(Policy policy) throws JAXRException, PolicyException
policy
- of type Policy
JAXRException
- if an internal error occurs on creating the policy copyPolicyException
- if an internal error occursvoid savePolicy(Policy policy) throws JAXRException, PolicyException
policy
- policy to be savedJAXRException
- if an internal error occurs on saving the policyPolicyException
- if an internal error occursvoid deletePolicy(Policy policy) throws JAXRException, PolicyException
policy
- policy to be deletedJAXRException
- if an internal error occurs on deleting the policyPolicyException
- if an internal error occursvoid deletePolicyRegistryObjects(java.util.Collection<PolicyRegistryObject> policyRegistryObjects) throws JAXRException, PolicyException
policyRegistryObjects
- collection of PolicyRegistryObject
objectsJAXRException
- if an internal error occurs on deleting policy registry objectsPolicyException
- if an internal error occursPolicyActionInstance createActionInstance(PolicyActionTemplate policyAction) throws JAXRException, PolicyException
policyAction
- Policy Action for which the action instance is to be createdJAXRException
- if an internal error occurs on creating the action instancePolicyException
- if an internal error occursPolicyParameter createPolicyParameter(PolicyActionParameter actionParameter) throws JAXRException, PolicyException
actionParameter
- action parameter based on which the policy parameter is to be createdJAXRException
- if an internal error occurs on creating the policy parameterPolicyException
- if an internal error occursPolicyCondition createPolicyCondition(java.util.List<Condition> conditions) throws JAXRException, PolicyException
conditions
- the conditions with which policy condition is to be constructed.JAXRException
- if an internal error occurs on creating the policy conditionPolicyException
- if an internal error occurs