|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyLifeCycleManager
Defines Policy specific CRUD operations.
Method Summary | |
---|---|
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,
javax.xml.registry.infomodel.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)
Create 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)
Delete 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 |
Method Detail |
---|
PolicyActionCategory createActionCategory(java.lang.String categoryName, PolicyType policyType) throws javax.xml.registry.JAXRException, PolicyException
categoryName
- name of the action categorypolicyType
- whether Design/Change Time or Runtime
javax.xml.registry.JAXRException
PolicyException
void saveActionCategory(PolicyActionCategory actionCategory) throws javax.xml.registry.JAXRException
actionCategory
- Policy Action Category to be saved
javax.xml.registry.JAXRException
void deleteActionCategory(PolicyActionCategory actionCategory) throws javax.xml.registry.JAXRException, PolicyException
actionCategory
- Policy Action Category to be deleted
javax.xml.registry.JAXRException
PolicyException
PolicyActionTemplate createActionTemplate(PolicyActionCategory actionCategory, java.lang.String name, java.lang.String description, javax.xml.registry.infomodel.Concept policyActionExecutionType) throws PolicyException, javax.xml.registry.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, Groovy ,etc
PolicyException
javax.xml.registry.JAXRException
PolicyActionTemplate createVersion(PolicyActionTemplate oldPolicyAction) throws javax.xml.registry.JAXRException, PolicyException
oldPolicyAction
- policy action which needs to be versioned
javax.xml.registry.JAXRException
PolicyException
void saveActionTemplate(PolicyActionTemplate actionTemplate) throws javax.xml.registry.JAXRException, PolicyException
actionTemplate
- Policy Action Template to be saved
javax.xml.registry.JAXRException
PolicyException
void deleteActionTemplate(PolicyActionTemplate actionTemplate) throws javax.xml.registry.JAXRException, PolicyException
actionTemplate
- Policy Action Template to be deleted
javax.xml.registry.JAXRException
PolicyException
PolicyActionParameter createActionParameter(java.lang.String type, java.lang.String name) throws javax.xml.registry.JAXRException, PolicyException
type
- type of the action parametername
- name of the action parameter
javax.xml.registry.JAXRException
PolicyException
Policy createPolicy(PolicyType policyType, java.lang.String name, java.lang.String description, boolean isGlobal) throws javax.xml.registry.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 to be applicable for all organizations or only the organization to which
it belongs.
javax.xml.registry.JAXRException
PolicyException
Policy createVersion(Policy oldVersion) throws javax.xml.registry.JAXRException, PolicyException
oldVersion
-
javax.xml.registry.JAXRException
PolicyException
Policy createCopy(Policy policy) throws javax.xml.registry.JAXRException, PolicyException
policy
-
javax.xml.registry.JAXRException
PolicyException
void savePolicy(Policy policy) throws javax.xml.registry.JAXRException, PolicyException
policy
- policy to be saved
javax.xml.registry.JAXRException
PolicyException
void deletePolicy(Policy policy) throws javax.xml.registry.JAXRException, PolicyException
policy
- policy to be deleted
javax.xml.registry.JAXRException
PolicyException
void deletePolicyRegistryObjects(java.util.Collection<PolicyRegistryObject> policyRegistryObjects) throws javax.xml.registry.JAXRException, PolicyException
policyRegistryObjects
-
javax.xml.registry.JAXRException
PolicyException
PolicyActionInstance createActionInstance(PolicyActionTemplate policyAction) throws javax.xml.registry.JAXRException, PolicyException
policyAction
- Policy Action for which the action instance is to be created
javax.xml.registry.JAXRException
PolicyException
PolicyParameter createPolicyParameter(PolicyActionParameter actionParameter) throws javax.xml.registry.JAXRException, PolicyException
actionParameter
- action parameter based on which the policy parameter is to be created
javax.xml.registry.JAXRException
PolicyException
PolicyCondition createPolicyCondition(java.util.List<Condition> conditions) throws javax.xml.registry.JAXRException, PolicyException
conditions
- with which policy condition is to be constructed.
javax.xml.registry.JAXRException
PolicyException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |