Package de.xima.fc.timing
Class TriggerKeyFactory
- java.lang.Object
-
- de.xima.fc.timing.TriggerKeyFactory
-
public class TriggerKeyFactory extends Object
Factory for creating a trigger key for formcycle specific triggers.- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TriggerKeyFactory.ETriggerGroups
Enumeration of the predefined for trigger groups
-
Constructor Summary
Constructors Constructor Description TriggerKeyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static long
extractWorkflowTriggerId(String triggerName)
static long
extractWorkflowTriggerId(org.quartz.Trigger trigger)
static long
extractWorkflowTriggerId(org.quartz.TriggerKey triggerKey)
static String
extractWorkflowTriggerProcessDbId(String triggerGroup)
static String
extractWorkflowTriggerProcessDbId(org.quartz.Trigger trigger)
static String
extractWorkflowTriggerProcessDbId(org.quartz.TriggerKey triggerKey)
static String
extractWorkflowTriggerProcessId(String triggerGroup)
Deprecated.static String
extractWorkflowTriggerProcessId(org.quartz.Trigger trigger)
Deprecated.static String
extractWorkflowTriggerProcessId(org.quartz.TriggerKey triggerKey)
Deprecated.static String
extractWorkflowTriggerType(String triggerGroup)
static String
extractWorkflowTriggerType(org.quartz.Trigger trigger)
static String
extractWorkflowTriggerType(org.quartz.TriggerKey triggerKey)
static org.quartz.TriggerKey
getClientCounterTrigger(ClientCounter counter)
static org.quartz.TriggerKey
getPluginUpdateCheckTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
static org.quartz.TriggerKey
getProtocolCleanupTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
static org.quartz.TriggerKey
getRefreshTokenCleanupTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
static org.quartz.TriggerKey
getSystemCleanupTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
static org.quartz.TriggerKey
getVorgangTrigger(Vorgang process)
static org.quartz.TriggerKey
getVorgangTrigger(String prozessId)
static String
getWorkflowTriggerGroup(WorkflowTrigger trigger, Vorgang formRecord)
Deprecated.static String
getWorkflowTriggerGroup(WorkflowTrigger trigger, String processId)
Deprecated.static String
getWorkflowTriggerGroup(String triggerType, Vorgang formRecord)
Deprecated.static String
getWorkflowTriggerGroup(String triggerType, String processId)
Deprecated.static String
getWorkflowTriggerGroupByDbId(WorkflowTrigger trigger, long processId, long projectId, long clientId)
The group of the quartz trigger for a timed state workflow trigger.static String
getWorkflowTriggerGroupByDbId(WorkflowTrigger trigger, Vorgang formRecord)
The group of the quartz trigger for a timed state workflow trigger.static String
getWorkflowTriggerGroupByDbId(String triggerType, long processId, long projectId, long clientId)
The group of the quartz trigger for a timed state workflow trigger.static String
getWorkflowTriggerGroupByDbId(String triggerType, Vorgang formRecord)
The group of the quartz trigger for a timed state workflow trigger.static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForForRecord(Vorgang formRecord)
Deprecated.static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForForRecord(String processId)
Deprecated.static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForRecordByClientId(long clientId)
static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForRecordByDbId(long processId)
static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForRecordByDbId(Vorgang formRecord)
static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForRecordByProjectId(long projectId)
static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForTrigger(WorkflowTrigger trigger)
static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey>
getWorkflowTriggerGroupMatcherForTrigger(String triggerType)
static org.quartz.TriggerKey
getWorkflowTriggerKey(WorkflowTrigger trigger, Vorgang formRecord)
Deprecated.static org.quartz.TriggerKey
getWorkflowTriggerKeyByDbId(WorkflowTrigger trigger, Vorgang formRecord)
Creates the job key for a timed state trigger, seegetWorkflowTriggerName(WorkflowTrigger)
andgetWorkflowTriggerGroup(String, Vorgang)
.static String
getWorkflowTriggerName(WorkflowTrigger trigger)
The name of the quartz trigger for a timed state workflow trigger.
-
-
-
Method Detail
-
extractWorkflowTriggerId
public static long extractWorkflowTriggerId(String triggerName)
- Parameters:
triggerName
- Trigger group to process.- Returns:
- The process ID in the trigger name, as created by
getWorkflowTriggerName(WorkflowTrigger)
.
-
extractWorkflowTriggerId
public static long extractWorkflowTriggerId(org.quartz.Trigger trigger)
- Parameters:
trigger
- Trigger to process.- Returns:
- The trigger ID in the trigger key, as created by
getWorkflowTriggerKey(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerId
public static long extractWorkflowTriggerId(org.quartz.TriggerKey triggerKey)
- Parameters:
triggerKey
- Trigger key to process.- Returns:
- The trigger ID in the trigger key, as created by
getWorkflowTriggerKey(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerProcessDbId
public static String extractWorkflowTriggerProcessDbId(String triggerGroup)
- Parameters:
triggerGroup
- Trigger group to process.- Returns:
- The process ID in the trigger group, as created by
getWorkflowTriggerGroupByDbId(String, long, long, long)
.
-
extractWorkflowTriggerProcessDbId
public static String extractWorkflowTriggerProcessDbId(org.quartz.Trigger trigger)
- Parameters:
trigger
- Trigger to process.- Returns:
- The process ID in the trigger key, as created by
getWorkflowTriggerKeyByDbId(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerProcessDbId
public static String extractWorkflowTriggerProcessDbId(org.quartz.TriggerKey triggerKey)
- Parameters:
triggerKey
- Trigger key to process.- Returns:
- The process ID in the trigger key, as created by
getWorkflowTriggerKeyByDbId(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerProcessId
@Deprecated public static String extractWorkflowTriggerProcessId(String triggerGroup)
Deprecated.- Parameters:
triggerGroup
- Trigger group to process.- Returns:
- The process ID in the trigger group, as created by
getWorkflowTriggerGroup(String, String)
.
-
extractWorkflowTriggerProcessId
@Deprecated public static String extractWorkflowTriggerProcessId(org.quartz.Trigger trigger)
Deprecated.- Parameters:
trigger
- Trigger to process.- Returns:
- The process ID in the trigger key, as created by
getWorkflowTriggerKey(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerProcessId
@Deprecated public static String extractWorkflowTriggerProcessId(org.quartz.TriggerKey triggerKey)
Deprecated.- Parameters:
triggerKey
- Trigger key to process.- Returns:
- The process ID in the trigger key, as created by
getWorkflowTriggerKey(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerType
public static String extractWorkflowTriggerType(String triggerGroup)
- Parameters:
triggerGroup
- Trigger group to process.- Returns:
- The trigger type in the trigger group, as created by
getWorkflowTriggerGroup(String, String)
.
-
extractWorkflowTriggerType
public static String extractWorkflowTriggerType(org.quartz.Trigger trigger)
- Parameters:
trigger
- Trigger to process.- Returns:
- The trigger type in the trigger key, as created by
getWorkflowTriggerKey(WorkflowTrigger, Vorgang)
-
extractWorkflowTriggerType
public static String extractWorkflowTriggerType(org.quartz.TriggerKey triggerKey)
- Parameters:
triggerKey
- Trigger key to process.- Returns:
- The trigger type in the trigger key, as created by
getWorkflowTriggerKey(WorkflowTrigger, Vorgang)
-
getClientCounterTrigger
public static org.quartz.TriggerKey getClientCounterTrigger(ClientCounter counter)
-
getPluginUpdateCheckTrigger
public static org.quartz.TriggerKey getPluginUpdateCheckTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
- Parameters:
triggerGroup
- Group to set for the trigger.- Returns:
- The trigger key for the plugin update check job.
-
getProtocolCleanupTrigger
public static org.quartz.TriggerKey getProtocolCleanupTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
- Parameters:
triggerGroup
- Group to set for the trigger.- Returns:
- The trigger key for the protocol cleanup job.
-
getSystemCleanupTrigger
public static org.quartz.TriggerKey getSystemCleanupTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
- Parameters:
triggerGroup
- Group to set for the trigger.- Returns:
- The trigger key for the system cleanup job.
-
getRefreshTokenCleanupTrigger
public static org.quartz.TriggerKey getRefreshTokenCleanupTrigger(TriggerKeyFactory.ETriggerGroups triggerGroup)
- Parameters:
triggerGroup
- Group to set for the trigger.- Returns:
- The trigger key for the refresh token cleanup job.
-
getVorgangTrigger
public static org.quartz.TriggerKey getVorgangTrigger(String prozessId)
- Parameters:
prozessId
-String
the process ID to get a trigger key for- Returns:
TriggerKey
for the process
-
getVorgangTrigger
public static org.quartz.TriggerKey getVorgangTrigger(Vorgang process)
- Parameters:
process
-Vorgang
the process to get an trigger key for- Returns:
TriggerKey
for the process
-
getWorkflowTriggerGroup
@Deprecated public static String getWorkflowTriggerGroup(String triggerType, String processId)
Deprecated.The group of the quartz trigger for a timed state workflow trigger. It is of the following form:_WORKFLOW_TRIGGER_ WORKFLOW_TRIGGER
is used as a separator so we can search for triggers both by type and by form record UUID.Example:
WORKFLOW_TRIGGER_FC_STATE_TIMER_WORKFLOW_TRIGGER_9866b1fd-d288-4595-a37e-7e39efa059e3
- Parameters:
processId
- Process ID of the form record for which to create the group.triggerType
- The type of the trigger for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroup
@Deprecated public static String getWorkflowTriggerGroup(String triggerType, Vorgang formRecord)
Deprecated.The group of the quartz trigger for a timed state workflow trigger. SeegetWorkflowTriggerGroup(String, String)
for more details.- Parameters:
formRecord
- Form record for which to create the group.triggerType
- Type of the trigger for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroup
@Deprecated public static String getWorkflowTriggerGroup(WorkflowTrigger trigger, String processId)
Deprecated.The group of the quartz trigger for a timed state workflow trigger. SeegetWorkflowTriggerGroup(String, String)
for more details.- Parameters:
processId
- Process ID of the form record for which to create the group.trigger
- Trigger for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroup
@Deprecated public static String getWorkflowTriggerGroup(WorkflowTrigger trigger, Vorgang formRecord)
Deprecated.The group of the quartz trigger for a timed state workflow trigger. SeegetWorkflowTriggerGroup(String, String)
for more details.- Parameters:
formRecord
- Form record for which to create the group.trigger
- Trigger for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroupByDbId
public static String getWorkflowTriggerGroupByDbId(String triggerType, long processId, long projectId, long clientId)
The group of the quartz trigger for a timed state workflow trigger. It is of the following form:_WORKFLOW_TRIGGER_ _pid# _cid# WORKFLOW_TRIGGER
is used as a separator so we can search for triggers both by type and by form record UUID.Example:
FC_STATE_TIMER_WORKFLOW_TRIGGER_444_pid#333_cid#222
- Parameters:
processId
- Process ID of the form record for which to create the group.triggerType
- The type of the trigger for which to create the group.projectId
- Project ID of the project from the form record for which to create the group.clientId
- Client ID of the client from the form record for which to create the group.- Returns:
- The quartz job group for the given form record ID, project ID, client ID and trigger type.
-
getWorkflowTriggerGroupByDbId
public static String getWorkflowTriggerGroupByDbId(String triggerType, Vorgang formRecord)
The group of the quartz trigger for a timed state workflow trigger. SeegetWorkflowTriggerGroup(String, String)
for more details.- Parameters:
formRecord
- Form record for which to create the group.triggerType
- Type of the trigger for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroupByDbId
public static String getWorkflowTriggerGroupByDbId(WorkflowTrigger trigger, long processId, long projectId, long clientId)
The group of the quartz trigger for a timed state workflow trigger. SeegetWorkflowTriggerGroup(String, String)
for more details.- Parameters:
trigger
- Trigger for which to create the group.processId
- Process ID of the form record for which to create the group.projectId
- Project ID of the project from the form record for which to create the group.clientId
- Client ID of the client from the form record for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroupByDbId
public static String getWorkflowTriggerGroupByDbId(WorkflowTrigger trigger, Vorgang formRecord)
The group of the quartz trigger for a timed state workflow trigger. SeegetWorkflowTriggerGroup(String, String)
for more details.- Parameters:
formRecord
- Form record for which to create the group.trigger
- Trigger for which to create the group.- Returns:
- The quartz trigger group for the given form record and trigger type.
-
getWorkflowTriggerGroupMatcherForForRecord
@Deprecated public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForForRecord(String processId)
Deprecated.- Parameters:
processId
- The process ID of a form record for which to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s of workflow triggers that are scheduled for the given form record, irrespective of their type.
-
getWorkflowTriggerGroupMatcherForForRecord
@Deprecated public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForForRecord(Vorgang formRecord)
Deprecated.- Parameters:
formRecord
- A form record for which to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s of workflow triggers that are scheduled for the given form record, irrespective of their type.
-
getWorkflowTriggerGroupMatcherForRecordByDbId
public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForRecordByDbId(long processId)
- Parameters:
processId
- The process ID of a form record for which to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s of workflow triggers that are scheduled for the given form record, irrespective of their type.
-
getWorkflowTriggerGroupMatcherForRecordByProjectId
public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForRecordByProjectId(long projectId)
- Parameters:
projectId
- The project ID to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s of workflow triggers that are scheduled for the given project ID, irrespective of their type.
-
getWorkflowTriggerGroupMatcherForRecordByClientId
public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForRecordByClientId(long clientId)
- Parameters:
clientId
- The client ID to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s of workflow triggers that are scheduled for the given client ID, irrespective of their type.
-
getWorkflowTriggerGroupMatcherForRecordByDbId
public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForRecordByDbId(Vorgang formRecord)
- Parameters:
formRecord
- A form record for which to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s of workflow triggers that are scheduled for the given form record, irrespective of their type.
-
getWorkflowTriggerGroupMatcherForTrigger
public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForTrigger(String triggerType)
- Parameters:
triggerType
- Type of the workflow trigger for which to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s that belong to thegetWorkflowTriggerGroup(String, Vorgang)
for a given trigger type, irrespective of theVorgang
.
-
getWorkflowTriggerGroupMatcherForTrigger
public static org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> getWorkflowTriggerGroupMatcherForTrigger(WorkflowTrigger trigger)
- Parameters:
trigger
- Workflow trigger for which to find quartz triggers.- Returns:
- A group matcher for all
Trigger
s that belong to thegetWorkflowTriggerGroup(String, Vorgang)
for a given trigger type, irrespective of theVorgang
.
-
getWorkflowTriggerKey
@Deprecated public static org.quartz.TriggerKey getWorkflowTriggerKey(WorkflowTrigger trigger, Vorgang formRecord)
Deprecated.Creates the job key for a timed state trigger, seegetWorkflowTriggerName(WorkflowTrigger)
andgetWorkflowTriggerGroup(String, Vorgang)
.- Parameters:
trigger
- The workflow trigger for which to create a key.formRecord
- The form record for which to create a key.- Returns:
- A
TriggerKey
for the trigger within the given form record.
-
getWorkflowTriggerKeyByDbId
public static org.quartz.TriggerKey getWorkflowTriggerKeyByDbId(WorkflowTrigger trigger, Vorgang formRecord)
Creates the job key for a timed state trigger, seegetWorkflowTriggerName(WorkflowTrigger)
andgetWorkflowTriggerGroup(String, Vorgang)
.- Parameters:
trigger
- The workflow trigger for which to create a key.formRecord
- The form record for which to create a key.- Returns:
- A
TriggerKey
for the trigger within the given form record.
-
getWorkflowTriggerName
public static String getWorkflowTriggerName(WorkflowTrigger trigger)
The name of the quartz trigger for a timed state workflow trigger. It is of the following form:552
- Parameters:
trigger
- Workflow trigger for which to the quartz trigger name.- Returns:
- The quartz trigger name for the given workflow trigger.
-
-