Package org.flowable.cmmn.engine.impl
Class CmmnRepositoryServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CmmnEngineConfiguration>
org.flowable.cmmn.engine.impl.CmmnRepositoryServiceImpl
- All Implemented Interfaces:
CmmnRepositoryService
public class CmmnRepositoryServiceImpl
extends CommonEngineServiceImpl<CmmnEngineConfiguration>
implements CmmnRepositoryService
- Author:
- Joram Barrez, Tijs Rademakers
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCandidateStarterGroup
(String caseDefinitionId, String groupId) Authorizes a candidate group for a case definition.void
addCandidateStarterUser
(String caseDefinitionId, String userId) Authorizes a candidate user for a case definition.void
changeDeploymentParentDeploymentId
(String deploymentId, String newParentDeploymentId) Changes the parent deployment id of a deployment.Query case definitionsStarts creating a new deploymentQuery deploymentsvoid
deleteCandidateStarterGroup
(String caseDefinitionId, String groupId) Removes the authorization of a candidate group for a case definition.void
deleteCandidateStarterUser
(String caseDefinitionId, String userId) Removes the authorization of a candidate user for a case definition.void
deleteDeployment
(String deploymentId, boolean cascade) Deletes the given deployment and cascade deletion to case instances, history case instances and jobs.deploy
(CmmnDeploymentBuilderImpl deploymentBuilder) getCaseDefinition
(String caseDefinitionId) Returns theCaseDefinition
including all CMMN information like additional Properties (e.g.getCaseDiagram
(String caseDefinitionId) Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.getCmmnModel
(String caseDefinitionId) Gives access to a deployed case model, e.g., a CMMN 1.1 XML file, through a stream of bytes.getDecisionsForCaseDefinition
(String caseDefinitionId) Retrieves theDmnDecision
s associated with the given case definition.getDeploymentResourceNames
(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically.getFormDefinitionsForCaseDefinition
(String caseDefinitionId) Retrieves theFormDefinition
s associated with the given case definition.getIdentityLinksForCaseDefinition
(String caseDefinitionId) Retrieves theIdentityLink
s associated with the given case definition.getResourceAsStream
(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.void
setCaseDefinitionCategory
(String caseDefinitionId, String category) Sets the category of the case definition.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
-
CmmnRepositoryServiceImpl
-
-
Method Details
-
createDeployment
Description copied from interface:CmmnRepositoryService
Starts creating a new deployment- Specified by:
createDeployment
in interfaceCmmnRepositoryService
-
getDeploymentResourceNames
Description copied from interface:CmmnRepositoryService
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNames
in interfaceCmmnRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Description copied from interface:CmmnRepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStream
in interfaceCmmnRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.
-
deploy
-
getCaseDefinition
Description copied from interface:CmmnRepositoryService
Returns theCaseDefinition
including all CMMN information like additional Properties (e.g. documentation).- Specified by:
getCaseDefinition
in interfaceCmmnRepositoryService
-
getCmmnModel
Description copied from interface:CmmnRepositoryService
Gives access to a deployed case model, e.g., a CMMN 1.1 XML file, through a stream of bytes.- Specified by:
getCmmnModel
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of aCaseDefinition
, cannot be null.
-
getCaseDiagram
Description copied from interface:CmmnRepositoryService
Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getCaseDiagram
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of aCaseDefinition
, cannot be null.- Returns:
- null when the diagram resource name of a
CaseDefinition
is null.
-
deleteDeployment
Description copied from interface:CmmnRepositoryService
Deletes the given deployment and cascade deletion to case instances, history case instances and jobs.- Specified by:
deleteDeployment
in interfaceCmmnRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
Description copied from interface:CmmnRepositoryService
Query deployments- Specified by:
createDeploymentQuery
in interfaceCmmnRepositoryService
-
createCaseDefinitionQuery
Description copied from interface:CmmnRepositoryService
Query case definitions- Specified by:
createCaseDefinitionQuery
in interfaceCmmnRepositoryService
-
addCandidateStarterUser
Description copied from interface:CmmnRepositoryService
Authorizes a candidate user for a case definition.- Specified by:
addCandidateStarterUser
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.userId
- id of the user involve, cannot be null.
-
addCandidateStarterGroup
Description copied from interface:CmmnRepositoryService
Authorizes a candidate group for a case definition.- Specified by:
addCandidateStarterGroup
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.groupId
- id of the group involve, cannot be null.
-
deleteCandidateStarterGroup
Description copied from interface:CmmnRepositoryService
Removes the authorization of a candidate group for a case definition.- Specified by:
deleteCandidateStarterGroup
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.groupId
- id of the group involve, cannot be null.
-
deleteCandidateStarterUser
Description copied from interface:CmmnRepositoryService
Removes the authorization of a candidate user for a case definition.- Specified by:
deleteCandidateStarterUser
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.userId
- id of the user involve, cannot be null.
-
getIdentityLinksForCaseDefinition
Description copied from interface:CmmnRepositoryService
Retrieves theIdentityLink
s associated with the given case definition. Such anIdentityLink
informs how a certain identity (eg. group or user) is authorized for a certain case definition- Specified by:
getIdentityLinksForCaseDefinition
in interfaceCmmnRepositoryService
-
setCaseDefinitionCategory
Description copied from interface:CmmnRepositoryService
Sets the category of the case definition. Case definitions can be queried by category: seeCaseDefinitionQuery.caseDefinitionCategory(String)
.- Specified by:
setCaseDefinitionCategory
in interfaceCmmnRepositoryService
-
changeDeploymentParentDeploymentId
Description copied from interface:CmmnRepositoryService
Changes the parent deployment id of a deployment. This is used to move deployments to a different app deployment parent.- Specified by:
changeDeploymentParentDeploymentId
in interfaceCmmnRepositoryService
- Parameters:
deploymentId
- The id of the deployment of which the parent deployment identifier will be changed.newParentDeploymentId
- The new parent deployment identifier.
-
getDecisionsForCaseDefinition
Description copied from interface:CmmnRepositoryService
Retrieves theDmnDecision
s associated with the given case definition.- Specified by:
getDecisionsForCaseDefinition
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.
-
getFormDefinitionsForCaseDefinition
Description copied from interface:CmmnRepositoryService
Retrieves theFormDefinition
s associated with the given case definition.- Specified by:
getFormDefinitionsForCaseDefinition
in interfaceCmmnRepositoryService
- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.
-