Class EventSubscriptionManager
java.lang.Object
org.camunda.bpm.engine.impl.persistence.AbstractManager
org.camunda.bpm.engine.impl.persistence.entity.EventSubscriptionManager
- All Implemented Interfaces:
Session
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<EventSubscriptionEntity>
keep track of subscriptions created in the current commandprotected static final EnginePersistenceLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ListQueryParameterObject
configureParameterizedQuery
(Object parameter) protected void
protected void
configurParameterObject
(ListQueryParameterObject parameter) void
deleteAndFlushEventSubscription
(EventSubscriptionEntity persistentObject) void
deleteEventSubscription
(EventSubscriptionEntity persistentObject) long
findEventSubscriptionCountByQueryCriteria
(EventSubscriptionQueryImpl eventSubscriptionQueryImpl) findEventSubscriptions
(String executionId, String type, String activityId) findEventSubscriptionsByConfiguration
(String type, String configuration) findEventSubscriptionsByExecution
(String executionId) findEventSubscriptionsByExecutionAndType
(String executionId, String type, boolean lockResult) findEventSubscriptionsByNameAndExecution
(String type, String eventName, String executionId, boolean lockResult) findEventSubscriptionsByNameAndTenantId
(String type, String eventName, String tenantId) findEventSubscriptionsByProcessInstanceId
(String processInstanceId) findEventSubscriptionsByQueryCriteria
(EventSubscriptionQueryImpl eventSubscriptionQueryImpl, Page page) findMessageStartEventSubscriptionByName
(String messageName) findMessageStartEventSubscriptionByNameAndTenantId
(String messageName, String tenantId) findSignalEventSubscriptionsByEventName
(String eventName) Find all signal event subscriptions with the given event name for any tenant.findSignalEventSubscriptionsByEventNameAndTenantId
(String eventName, String tenantId) Find all signal event subscriptions with the given event name and tenant.findSignalEventSubscriptionsByEventNameAndTenantIdIncludeWithoutTenantId
(String eventName, String tenantId) Find all signal event subscriptions with the given event name which belongs to the given tenant or no tenant.findSignalEventSubscriptionsByExecution
(String executionId) findSignalEventSubscriptionsByNameAndExecution
(String name, String executionId) protected boolean
hasTenantId
(EventSubscriptionEntity entity, String tenantId) void
insert
(EventSubscriptionEntity persistentObject) protected boolean
matchesSubscription
(EventSubscriptionEntity subscription, String type, String eventName) 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
-
createdSignalSubscriptions
keep track of subscriptions created in the current command
-
-
Constructor Details
-
EventSubscriptionManager
public EventSubscriptionManager()
-
-
Method Details
-
insert
-
deleteEventSubscription
-
deleteAndFlushEventSubscription
-
findEventSubscriptionById
-
findEventSubscriptionCountByQueryCriteria
public long findEventSubscriptionCountByQueryCriteria(EventSubscriptionQueryImpl eventSubscriptionQueryImpl) -
findEventSubscriptionsByQueryCriteria
public List<EventSubscription> findEventSubscriptionsByQueryCriteria(EventSubscriptionQueryImpl eventSubscriptionQueryImpl, Page page) -
findSignalEventSubscriptionsByEventName
Find all signal event subscriptions with the given event name for any tenant. -
findSignalEventSubscriptionsByEventNameAndTenantId
public List<EventSubscriptionEntity> findSignalEventSubscriptionsByEventNameAndTenantId(String eventName, String tenantId) Find all signal event subscriptions with the given event name and tenant. -
findSignalEventSubscriptionsByEventNameAndTenantIdIncludeWithoutTenantId
public List<EventSubscriptionEntity> findSignalEventSubscriptionsByEventNameAndTenantIdIncludeWithoutTenantId(String eventName, String tenantId) Find all signal event subscriptions with the given event name which belongs to the given tenant or no tenant. -
hasTenantId
-
findSignalEventSubscriptionsByExecution
-
findSignalEventSubscriptionsByNameAndExecution
public List<EventSubscriptionEntity> findSignalEventSubscriptionsByNameAndExecution(String name, String executionId) -
findEventSubscriptionsByExecutionAndType
public List<EventSubscriptionEntity> findEventSubscriptionsByExecutionAndType(String executionId, String type, boolean lockResult) -
findEventSubscriptionsByExecution
-
findEventSubscriptions
public List<EventSubscriptionEntity> findEventSubscriptions(String executionId, String type, String activityId) -
findEventSubscriptionsByConfiguration
public List<EventSubscriptionEntity> findEventSubscriptionsByConfiguration(String type, String configuration) -
findEventSubscriptionsByNameAndTenantId
public List<EventSubscriptionEntity> findEventSubscriptionsByNameAndTenantId(String type, String eventName, String tenantId) -
findEventSubscriptionsByNameAndExecution
public List<EventSubscriptionEntity> findEventSubscriptionsByNameAndExecution(String type, String eventName, String executionId, boolean lockResult) -
findEventSubscriptionsByProcessInstanceId
public List<EventSubscriptionEntity> findEventSubscriptionsByProcessInstanceId(String processInstanceId) -
findMessageStartEventSubscriptionByName
- Returns:
- the message start event subscriptions with the given message name (from any tenant)
- See Also:
-
findMessageStartEventSubscriptionByNameAndTenantId
public EventSubscriptionEntity findMessageStartEventSubscriptionByNameAndTenantId(String messageName, String tenantId) - Returns:
- the message start event subscription with the given message name and tenant id
- See Also:
-
findConditionalStartEventSubscriptionByTenantId
public List<EventSubscriptionEntity> findConditionalStartEventSubscriptionByTenantId(String tenantId) - Parameters:
tenantId
-- Returns:
- the conditional start event subscriptions with the given tenant id
-
findConditionalStartEventSubscription
- Returns:
- the conditional start event subscriptions (from any tenant)
-
configurParameterObject
-
configureQuery
-
configureParameterizedQuery
-
matchesSubscription
protected boolean matchesSubscription(EventSubscriptionEntity subscription, String type, String eventName)
-