public class UpdateJobDefinitionSuspensionStateBuilderImpl extends Object implements UpdateJobDefinitionSuspensionStateBuilder, UpdateJobDefinitionSuspensionStateSelectBuilder, UpdateJobDefinitionSuspensionStateTenantBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected Date |
executionDate |
protected boolean |
includeJobs |
protected boolean |
isProcessDefinitionTenantIdSet |
protected String |
jobDefinitionId |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processDefinitionTenantId |
Constructor and Description |
---|
UpdateJobDefinitionSuspensionStateBuilderImpl()
Creates a builder without CommandExecutor which can not be used to update
the suspension state via
activate() or suspend() . |
UpdateJobDefinitionSuspensionStateBuilderImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the provided job definitions.
|
UpdateJobDefinitionSuspensionStateBuilderImpl |
byJobDefinitionId(String jobDefinitionId)
Selects the job definition with the given id.
|
UpdateJobDefinitionSuspensionStateBuilderImpl |
byProcessDefinitionId(String processDefinitionId)
Selects the job definitions of the process definition with the given id.
|
UpdateJobDefinitionSuspensionStateBuilderImpl |
byProcessDefinitionKey(String processDefinitionKey)
Selects the job definitions of the process definitions with the given key.
|
UpdateJobDefinitionSuspensionStateBuilderImpl |
executionDate(Date executionDate)
Specify when the suspension state should be updated.
|
Date |
getExecutionDate() |
String |
getJobDefinitionId() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessDefinitionTenantId() |
UpdateJobDefinitionSuspensionStateBuilderImpl |
includeJobs(boolean includeJobs)
Specify if the suspension states of the jobs of the provided job
definitions should also be updated.
|
boolean |
isIncludeJobs() |
boolean |
isProcessDefinitionTenantIdSet() |
UpdateJobDefinitionSuspensionStateBuilderImpl |
processDefinitionTenantId(String tenantId)
Specify the id of the tenant the process definition belongs to.
|
UpdateJobDefinitionSuspensionStateBuilderImpl |
processDefinitionWithoutTenantId()
Specify that the process definition belongs to no tenant.
|
void |
suspend()
Suspends the provided job definitions.
|
protected void |
validateParameters() |
protected final CommandExecutor commandExecutor
protected String jobDefinitionId
protected String processDefinitionKey
protected String processDefinitionId
protected String processDefinitionTenantId
protected boolean isProcessDefinitionTenantIdSet
protected boolean includeJobs
protected Date executionDate
public UpdateJobDefinitionSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
public UpdateJobDefinitionSuspensionStateBuilderImpl()
activate()
or suspend()
. Can only be
used in combination with your own command.public UpdateJobDefinitionSuspensionStateBuilderImpl byJobDefinitionId(String jobDefinitionId)
UpdateJobDefinitionSuspensionStateSelectBuilder
byJobDefinitionId
in interface UpdateJobDefinitionSuspensionStateSelectBuilder
jobDefinitionId
- id of the job definitionpublic UpdateJobDefinitionSuspensionStateBuilderImpl byProcessDefinitionId(String processDefinitionId)
UpdateJobDefinitionSuspensionStateSelectBuilder
byProcessDefinitionId
in interface UpdateJobDefinitionSuspensionStateSelectBuilder
processDefinitionId
- id of the process definitionpublic UpdateJobDefinitionSuspensionStateBuilderImpl byProcessDefinitionKey(String processDefinitionKey)
UpdateJobDefinitionSuspensionStateSelectBuilder
byProcessDefinitionKey
in interface UpdateJobDefinitionSuspensionStateSelectBuilder
processDefinitionKey
- key of the process definitionpublic UpdateJobDefinitionSuspensionStateBuilderImpl processDefinitionWithoutTenantId()
UpdateJobDefinitionSuspensionStateTenantBuilder
processDefinitionWithoutTenantId
in interface UpdateJobDefinitionSuspensionStateTenantBuilder
public UpdateJobDefinitionSuspensionStateBuilderImpl processDefinitionTenantId(String tenantId)
UpdateJobDefinitionSuspensionStateTenantBuilder
processDefinitionTenantId
in interface UpdateJobDefinitionSuspensionStateTenantBuilder
tenantId
- the id of the tenantpublic UpdateJobDefinitionSuspensionStateBuilderImpl includeJobs(boolean includeJobs)
UpdateJobDefinitionSuspensionStateBuilder
false
.includeJobs
in interface UpdateJobDefinitionSuspensionStateBuilder
includeJobs
- if true
, all related jobs will be activated /
suspended too.public UpdateJobDefinitionSuspensionStateBuilderImpl executionDate(Date executionDate)
UpdateJobDefinitionSuspensionStateBuilder
executionDate
in interface UpdateJobDefinitionSuspensionStateBuilder
executionDate
- the date on which the job definition will be activated /
suspended. If null
, the job definition is activated /
suspended immediately.public void activate()
UpdateJobDefinitionSuspensionStateBuilder
activate
in interface UpdateJobDefinitionSuspensionStateBuilder
public void suspend()
UpdateJobDefinitionSuspensionStateBuilder
suspend
in interface UpdateJobDefinitionSuspensionStateBuilder
protected void validateParameters()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getProcessDefinitionTenantId()
public boolean isProcessDefinitionTenantIdSet()
public String getJobDefinitionId()
public boolean isIncludeJobs()
public Date getExecutionDate()
Copyright © 2021. All rights reserved.