Class PolicyRepositoryServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PolicyEngineConfiguration>
com.flowable.policy.engine.impl.repository.PolicyRepositoryServiceImpl
- All Implemented Interfaces:
PolicyRepositoryService
public class PolicyRepositoryServiceImpl
extends CommonEngineServiceImpl<PolicyEngineConfiguration>
implements PolicyRepositoryService
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
-
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.deploy
(PolicyDeploymentBuilderImpl deploymentBuilder) 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.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
PolicyRepositoryServiceImpl
-
-
Method Details
-
createDeployment
Description copied from interface:PolicyRepositoryService
Starts creating a new deployment- Specified by:
createDeployment
in interfacePolicyRepositoryService
-
getDeploymentResourceNames
Description copied from interface:PolicyRepositoryService
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNames
in interfacePolicyRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Description copied from interface:PolicyRepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStream
in interfacePolicyRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.
-
deploy
-
getPolicyDefinition
Description copied from interface:PolicyRepositoryService
Returns thePolicyDefinition
including all policy information like additional Properties (e.g. documentation).- Specified by:
getPolicyDefinition
in interfacePolicyRepositoryService
-
getPolicyDefinitionByKey
Description copied from interface:PolicyRepositoryService
Returns thePolicyDefinition
including all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getPolicyDefinitionByKey
in interfacePolicyRepositoryService
-
getPolicyDefinitionByKeyAndTenantId
public PolicyDefinition getPolicyDefinitionByKeyAndTenantId(String policyDefinitionKey, String tenantId) Description copied from interface:PolicyRepositoryService
Returns thePolicyDefinition
including all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getPolicyDefinitionByKeyAndTenantId
in interfacePolicyRepositoryService
-
getPolicyDefinitionLinks
Description copied from interface:PolicyRepositoryService
ReturnsPolicyDefinitionLink
s for the given policy definition id.- Specified by:
getPolicyDefinitionLinks
in interfacePolicyRepositoryService
-
addPolicyDefinitionLink
public PolicyDefinitionLink addPolicyDefinitionLink(String policyDefinitionId, String type, String linkValue) Description copied from interface:PolicyRepositoryService
Adds a newPolicyDefinitionLink
for the given policy definition id.- Specified by:
addPolicyDefinitionLink
in interfacePolicyRepositoryService
-
deletePolicyDefinitionLink
Description copied from interface:PolicyRepositoryService
Deletes anPolicyDefinitionLink
for the given policy definition link id.- Specified by:
deletePolicyDefinitionLink
in interfacePolicyRepositoryService
-
getPolicyModel
Description copied from interface:PolicyRepositoryService
Returns thePolicyModel
including all policy model info.- Specified by:
getPolicyModel
in interfacePolicyRepositoryService
-
getPolicyModelByKey
Description copied from interface:PolicyRepositoryService
Returns thePolicyModel
including all policy model info, using the policy definition key and resolving the key to the latest version.- Specified by:
getPolicyModelByKey
in interfacePolicyRepositoryService
-
getPolicyModelByKeyAndTenantId
Description copied from interface:PolicyRepositoryService
Returns thePolicyModel
including all policy model info, using the policy definition key and resolving the key to the latest version.- Specified by:
getPolicyModelByKeyAndTenantId
in interfacePolicyRepositoryService
-
convertPolicyDefinitionModelToJson
Description copied from interface:PolicyRepositoryService
Returns thePolicyModel
as a JSON string.- Specified by:
convertPolicyDefinitionModelToJson
in interfacePolicyRepositoryService
-
deleteDeployment
Description copied from interface:PolicyRepositoryService
Deletes the given deployment.- Specified by:
deleteDeployment
in interfacePolicyRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
Description copied from interface:PolicyRepositoryService
Query deployments- Specified by:
createDeploymentQuery
in interfacePolicyRepositoryService
-
createPolicyDefinitionQuery
Description copied from interface:PolicyRepositoryService
Query case definitions- Specified by:
createPolicyDefinitionQuery
in interfacePolicyRepositoryService
-