Class EventSubscriptionManager

  • All Implemented Interfaces:
    Session

    public class EventSubscriptionManager
    extends AbstractManager
    Author:
    Daniel Meyer
    • Constructor Detail

      • EventSubscriptionManager

        public EventSubscriptionManager()
    • Method Detail

      • deleteAndFlushEventSubscription

        public void deleteAndFlushEventSubscription​(EventSubscriptionEntity persistentObject)
      • findEventSubscriptionCountByQueryCriteria

        public long findEventSubscriptionCountByQueryCriteria​(EventSubscriptionQueryImpl eventSubscriptionQueryImpl)
      • findSignalEventSubscriptionsByEventNameAndTenantId

        public java.util.List<EventSubscriptionEntity> findSignalEventSubscriptionsByEventNameAndTenantId​(java.lang.String eventName,
                                                                                                          java.lang.String tenantId)
        Find all signal event subscriptions with the given event name and tenant.
      • findSignalEventSubscriptionsByEventNameAndTenantIdIncludeWithoutTenantId

        public java.util.List<EventSubscriptionEntity> findSignalEventSubscriptionsByEventNameAndTenantIdIncludeWithoutTenantId​(java.lang.String eventName,
                                                                                                                                java.lang.String tenantId)
        Find all signal event subscriptions with the given event name which belongs to the given tenant or no tenant.
      • findSignalEventSubscriptionsByExecution

        public java.util.List<EventSubscriptionEntity> findSignalEventSubscriptionsByExecution​(java.lang.String executionId)
      • findSignalEventSubscriptionsByNameAndExecution

        public java.util.List<EventSubscriptionEntity> findSignalEventSubscriptionsByNameAndExecution​(java.lang.String name,
                                                                                                      java.lang.String executionId)
      • findEventSubscriptionsByExecutionAndType

        public java.util.List<EventSubscriptionEntity> findEventSubscriptionsByExecutionAndType​(java.lang.String executionId,
                                                                                                java.lang.String type,
                                                                                                boolean lockResult)
      • findEventSubscriptionsByExecution

        public java.util.List<EventSubscriptionEntity> findEventSubscriptionsByExecution​(java.lang.String executionId)
      • findEventSubscriptions

        public java.util.List<EventSubscriptionEntity> findEventSubscriptions​(java.lang.String executionId,
                                                                              java.lang.String type,
                                                                              java.lang.String activityId)
      • findEventSubscriptionsByConfiguration

        public java.util.List<EventSubscriptionEntity> findEventSubscriptionsByConfiguration​(java.lang.String type,
                                                                                             java.lang.String configuration)
      • findEventSubscriptionsByNameAndTenantId

        public java.util.List<EventSubscriptionEntity> findEventSubscriptionsByNameAndTenantId​(java.lang.String type,
                                                                                               java.lang.String eventName,
                                                                                               java.lang.String tenantId)
      • findEventSubscriptionsByNameAndExecution

        public java.util.List<EventSubscriptionEntity> findEventSubscriptionsByNameAndExecution​(java.lang.String type,
                                                                                                java.lang.String eventName,
                                                                                                java.lang.String executionId,
                                                                                                boolean lockResult)
      • findEventSubscriptionsByProcessInstanceId

        public java.util.List<EventSubscriptionEntity> findEventSubscriptionsByProcessInstanceId​(java.lang.String processInstanceId)
      • findConditionalStartEventSubscriptionByTenantId

        public java.util.List<EventSubscriptionEntity> findConditionalStartEventSubscriptionByTenantId​(java.lang.String tenantId)
        Parameters:
        tenantId -
        Returns:
        the conditional start event subscriptions with the given tenant id
      • findConditionalStartEventSubscription

        public java.util.List<EventSubscriptionEntity> findConditionalStartEventSubscription()
        Returns:
        the conditional start event subscriptions (from any tenant)
      • configureParameterizedQuery

        protected ListQueryParameterObject configureParameterizedQuery​(java.lang.Object parameter)
      • matchesSubscription

        protected boolean matchesSubscription​(EventSubscriptionEntity subscription,
                                              java.lang.String type,
                                              java.lang.String eventName)