Interface PolicyRepositoryService
- All Known Implementing Classes:
PolicyRepositoryServiceImpl
public interface PolicyRepositoryService
-
Method Summary
Modifier and TypeMethodDescriptionaddPolicyDefinitionLink
(String policyDefinitionId, String type, String linkValue) Adds a newPolicyDefinitionLink
for the given policy definition id.convertPolicyDefinitionModelToJson
(String policyDefinitionId) Returns thePolicyModel
as a JSON string.Starts creating a new deploymentQuery deploymentsQuery case definitionsvoid
deleteDeployment
(String deploymentId) Deletes the given deployment.void
deletePolicyDefinitionLink
(String policyDefinitionLinkId) Deletes anPolicyDefinitionLink
for the given policy definition link id.getDeploymentResourceNames
(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically.getPolicyDefinition
(String policyDefinitionId) Returns thePolicyDefinition
including all policy information like additional Properties (e.g.getPolicyDefinitionByKey
(String policyDefinitionKey) Returns thePolicyDefinition
including all policy information like additional Properties (e.g.getPolicyDefinitionByKeyAndTenantId
(String policyDefinitionKey, String tenantId) Returns thePolicyDefinition
including all policy information like additional Properties (e.g.getPolicyDefinitionLinks
(String policyDefinitionId) ReturnsPolicyDefinitionLink
s for the given policy definition id.getPolicyModel
(String policyDefinitionId) Returns thePolicyModel
including all policy model info.getPolicyModelByKey
(String policyDefinitionKey) Returns thePolicyModel
including all policy model info, using the policy definition key and resolving the key to the latest version.getPolicyModelByKeyAndTenantId
(String policyDefinitionKey, String tenantId) Returns thePolicyModel
including all policy model info, using the policy definition key and resolving the key to the latest version.getResourceAsStream
(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.
-
Method Details
-
createDeployment
PolicyDeploymentBuilder createDeployment()Starts creating a new deployment -
getDeploymentResourceNames
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Gives access to a deployment resource through a stream of bytes.- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.- Throws:
FlowableObjectNotFoundException
- when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
-
getPolicyModel
Returns thePolicyModel
including all policy model info. -
getPolicyModelByKey
Returns thePolicyModel
including all policy model info, using the policy definition key and resolving the key to the latest version. -
getPolicyModelByKeyAndTenantId
Returns thePolicyModel
including all policy model info, using the policy definition key and resolving the key to the latest version. -
convertPolicyDefinitionModelToJson
Returns thePolicyModel
as a JSON string. -
getPolicyDefinition
Returns thePolicyDefinition
including all policy information like additional Properties (e.g. documentation). -
getPolicyDefinitionByKey
Returns thePolicyDefinition
including all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned. -
getPolicyDefinitionByKeyAndTenantId
Returns thePolicyDefinition
including all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned. -
getPolicyDefinitionLinks
ReturnsPolicyDefinitionLink
s for the given policy definition id. -
addPolicyDefinitionLink
PolicyDefinitionLink addPolicyDefinitionLink(String policyDefinitionId, String type, String linkValue) Adds a newPolicyDefinitionLink
for the given policy definition id. -
deletePolicyDefinitionLink
Deletes anPolicyDefinitionLink
for the given policy definition link id. -
deleteDeployment
Deletes the given deployment.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
PolicyDeploymentQuery createDeploymentQuery()Query deployments -
createPolicyDefinitionQuery
PolicyDefinitionQuery createPolicyDefinitionQuery()Query case definitions
-