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
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPolicyDefinitionLink(String policyDefinitionId, String type, String linkValue) Adds a newPolicyDefinitionLinkfor the given policy definition id.convertPolicyDefinitionModelToJson(String policyDefinitionId) Returns thePolicyModelas a JSON string.Starts creating a new deploymentQuery deploymentsQuery case definitionsvoiddeleteDeployment(String deploymentId) Deletes the given deployment.voiddeletePolicyDefinitionLink(String policyDefinitionLinkId) Deletes anPolicyDefinitionLinkfor 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 thePolicyDefinitionincluding all policy information like additional Properties (e.g.getPolicyDefinitionByKey(String policyDefinitionKey) Returns thePolicyDefinitionincluding all policy information like additional Properties (e.g.getPolicyDefinitionByKeyAndTenantId(String policyDefinitionKey, String tenantId) Returns thePolicyDefinitionincluding all policy information like additional Properties (e.g.getPolicyDefinitionLinks(String policyDefinitionId) ReturnsPolicyDefinitionLinks for the given policy definition id.getPolicyModel(String policyDefinitionId) Returns thePolicyModelincluding all policy model info.getPolicyModelByKey(String policyDefinitionKey) Returns thePolicyModelincluding all policy model info, using the policy definition key and resolving the key to the latest version.getPolicyModelByKeyAndTenantId(String policyDefinitionKey, String tenantId) Returns thePolicyModelincluding 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, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
PolicyRepositoryServiceImpl
-
-
Method Details
-
createDeployment
Description copied from interface:PolicyRepositoryServiceStarts creating a new deployment- Specified by:
createDeploymentin interfacePolicyRepositoryService
-
getDeploymentResourceNames
Description copied from interface:PolicyRepositoryServiceRetrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNamesin interfacePolicyRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
getResourceAsStream
Description copied from interface:PolicyRepositoryServiceGives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStreamin interfacePolicyRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.resourceName- name of the resource, cannot be null.
-
deploy
-
getPolicyDefinition
Description copied from interface:PolicyRepositoryServiceReturns thePolicyDefinitionincluding all policy information like additional Properties (e.g. documentation).- Specified by:
getPolicyDefinitionin interfacePolicyRepositoryService
-
getPolicyDefinitionByKey
Description copied from interface:PolicyRepositoryServiceReturns thePolicyDefinitionincluding all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getPolicyDefinitionByKeyin interfacePolicyRepositoryService
-
getPolicyDefinitionByKeyAndTenantId
public PolicyDefinition getPolicyDefinitionByKeyAndTenantId(String policyDefinitionKey, String tenantId) Description copied from interface:PolicyRepositoryServiceReturns thePolicyDefinitionincluding all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getPolicyDefinitionByKeyAndTenantIdin interfacePolicyRepositoryService
-
getPolicyDefinitionLinks
Description copied from interface:PolicyRepositoryServiceReturnsPolicyDefinitionLinks for the given policy definition id.- Specified by:
getPolicyDefinitionLinksin interfacePolicyRepositoryService
-
addPolicyDefinitionLink
public PolicyDefinitionLink addPolicyDefinitionLink(String policyDefinitionId, String type, String linkValue) Description copied from interface:PolicyRepositoryServiceAdds a newPolicyDefinitionLinkfor the given policy definition id.- Specified by:
addPolicyDefinitionLinkin interfacePolicyRepositoryService
-
deletePolicyDefinitionLink
Description copied from interface:PolicyRepositoryServiceDeletes anPolicyDefinitionLinkfor the given policy definition link id.- Specified by:
deletePolicyDefinitionLinkin interfacePolicyRepositoryService
-
getPolicyModel
Description copied from interface:PolicyRepositoryServiceReturns thePolicyModelincluding all policy model info.- Specified by:
getPolicyModelin interfacePolicyRepositoryService
-
getPolicyModelByKey
Description copied from interface:PolicyRepositoryServiceReturns thePolicyModelincluding all policy model info, using the policy definition key and resolving the key to the latest version.- Specified by:
getPolicyModelByKeyin interfacePolicyRepositoryService
-
getPolicyModelByKeyAndTenantId
Description copied from interface:PolicyRepositoryServiceReturns thePolicyModelincluding all policy model info, using the policy definition key and resolving the key to the latest version.- Specified by:
getPolicyModelByKeyAndTenantIdin interfacePolicyRepositoryService
-
convertPolicyDefinitionModelToJson
Description copied from interface:PolicyRepositoryServiceReturns thePolicyModelas a JSON string.- Specified by:
convertPolicyDefinitionModelToJsonin interfacePolicyRepositoryService
-
deleteDeployment
Description copied from interface:PolicyRepositoryServiceDeletes the given deployment.- Specified by:
deleteDeploymentin interfacePolicyRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
createDeploymentQuery
Description copied from interface:PolicyRepositoryServiceQuery deployments- Specified by:
createDeploymentQueryin interfacePolicyRepositoryService
-
createPolicyDefinitionQuery
Description copied from interface:PolicyRepositoryServiceQuery case definitions- Specified by:
createPolicyDefinitionQueryin interfacePolicyRepositoryService
-