Class CaseDefinitionManager
java.lang.Object
org.camunda.bpm.engine.impl.persistence.AbstractManager
org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionManager
- All Implemented Interfaces:
Session
,AbstractResourceDefinitionManager<CaseDefinitionEntity>
public class CaseDefinitionManager
extends AbstractManager
implements AbstractResourceDefinitionManager<CaseDefinitionEntity>
- Author:
- Roman Smirnov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected ListQueryParameterObject
configureParameterizedQuery
(Object parameter) void
deleteCaseDefinitionsByDeploymentId
(String deploymentId) findCaseDefinitionByDeploymentAndKey
(String deploymentId, String caseDefinitionKey) findCaseDefinitionByDeploymentId
(String deploymentId) findCaseDefinitionById
(String caseDefinitionId) findCaseDefinitionByKeyVersionAndTenantId
(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId) long
findCaseDefinitionCountByQueryCriteria
(CaseDefinitionQueryImpl caseDefinitionQuery) findCaseDefinitionsByQueryCriteria
(CaseDefinitionQueryImpl caseDefinitionQuery, Page page) findDefinitionByDeploymentAndKey
(String deploymentId, String definitionKey) findDefinitionByKeyVersionAndTenantId
(String definitionKey, Integer definitionVersion, String tenantId) findDefinitionByKeyVersionTagAndTenantId
(String definitionKey, String definitionVersionTag, String tenantId) findLatestCaseDefinitionByKey
(String caseDefinitionKey) findLatestCaseDefinitionByKeyAndTenantId
(String caseDefinitionKey, String tenantId) findLatestDefinitionByKeyAndTenantId
(String definitionKey, String tenantId) findPreviousCaseDefinitionId
(String caseDefinitionKey, Integer version, String tenantId) getCachedResourceDefinitionEntity
(String definitionId) void
insertCaseDefinition
(CaseDefinitionEntity caseDefinition) Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager
checkAuthorization, close, configureQuery, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCamundaFormDefinitionManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDecisionRequirementsDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricBatchManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricExternalTaskLogManager, getHistoricIdentityLinkManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricReportManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getTaskReportManager, getTenantManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizations
-
Field Details
-
LOG
-
-
Constructor Details
-
CaseDefinitionManager
public CaseDefinitionManager()
-
-
Method Details
-
insertCaseDefinition
-
deleteCaseDefinitionsByDeploymentId
-
findCaseDefinitionById
-
findLatestCaseDefinitionByKey
- Returns:
- the latest version of the case definition with the given key (from any tenant)
- Throws:
ProcessEngineException
- if more than one tenant has a case definition with the given key- See Also:
-
findLatestCaseDefinitionByKeyAndTenantId
public CaseDefinitionEntity findLatestCaseDefinitionByKeyAndTenantId(String caseDefinitionKey, String tenantId) - Returns:
- the latest version of the case definition with the given key and tenant id
- See Also:
-
findCaseDefinitionByKeyVersionAndTenantId
public CaseDefinitionEntity findCaseDefinitionByKeyVersionAndTenantId(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId) -
findCaseDefinitionByDeploymentAndKey
public CaseDefinitionEntity findCaseDefinitionByDeploymentAndKey(String deploymentId, String caseDefinitionKey) -
findPreviousCaseDefinitionId
-
findCaseDefinitionsByQueryCriteria
public List<CaseDefinition> findCaseDefinitionsByQueryCriteria(CaseDefinitionQueryImpl caseDefinitionQuery, Page page) -
findCaseDefinitionCountByQueryCriteria
-
findCaseDefinitionByDeploymentId
-
configureCaseDefinitionQuery
-
configureParameterizedQuery
-
findLatestDefinitionByKey
- Specified by:
findLatestDefinitionByKey
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-
findLatestDefinitionById
- Specified by:
findLatestDefinitionById
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-
getCachedResourceDefinitionEntity
- Specified by:
getCachedResourceDefinitionEntity
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-
findLatestDefinitionByKeyAndTenantId
public CaseDefinitionEntity findLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId) - Specified by:
findLatestDefinitionByKeyAndTenantId
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-
findDefinitionByKeyVersionTagAndTenantId
public CaseDefinitionEntity findDefinitionByKeyVersionTagAndTenantId(String definitionKey, String definitionVersionTag, String tenantId) - Specified by:
findDefinitionByKeyVersionTagAndTenantId
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-
findDefinitionByKeyVersionAndTenantId
public CaseDefinitionEntity findDefinitionByKeyVersionAndTenantId(String definitionKey, Integer definitionVersion, String tenantId) - Specified by:
findDefinitionByKeyVersionAndTenantId
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-
findDefinitionByDeploymentAndKey
public CaseDefinitionEntity findDefinitionByDeploymentAndKey(String deploymentId, String definitionKey) - Specified by:
findDefinitionByDeploymentAndKey
in interfaceAbstractResourceDefinitionManager<CaseDefinitionEntity>
-