public class ProcessDefinitionQueryImpl extends AbstractQuery<ProcessDefinitionQuery,ProcessDefinition> implements ProcessDefinitionQuery
Modifier and Type | Field and Description |
---|---|
protected String |
authorizationUserId |
protected String |
category |
protected String |
categoryLike |
protected String |
deploymentId |
protected String |
eventSubscriptionName |
protected String |
eventSubscriptionType |
protected String |
id |
protected String |
key |
protected String |
keyLike |
protected boolean |
latest |
protected String |
name |
protected String |
nameLike |
protected String |
procDefId |
protected String |
resourceName |
protected String |
resourceNameLike |
protected SuspensionState |
suspensionState |
protected Integer |
version |
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
databaseType, firstResult, maxResults, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
Constructor and Description |
---|
ProcessDefinitionQueryImpl() |
ProcessDefinitionQueryImpl(CommandContext commandContext) |
ProcessDefinitionQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
ProcessDefinitionQuery |
active()
Only selects process definitions which are active
|
void |
checkQueryOk() |
ProcessDefinitionQueryImpl |
deploymentId(String deploymentId)
Only select process definitions that are deployed in a deployment with the
given deployment id
|
ProcessDefinitionQuery |
eventSubscription(String eventType,
String eventName) |
long |
executeCount(CommandContext commandContext) |
List<ProcessDefinition> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String |
getCategory() |
String |
getCategoryLike() |
String |
getDeploymentId() |
String |
getId() |
String |
getKey() |
String |
getKeyLike() |
String |
getName() |
String |
getNameLike() |
String |
getResourceName() |
String |
getResourceNameLike() |
SuspensionState |
getSuspensionState() |
Integer |
getVersion() |
boolean |
isLatest() |
ProcessDefinitionQueryImpl |
latestVersion()
Only select the process definitions which are the latest deployed
(ie.
|
ProcessDefinitionQuery |
messageEventSubscription(String messageName) |
ProcessDefinitionQuery |
messageEventSubscriptionName(String messageName)
Selects the single process definition which has a start message event
with the messageName.
|
ProcessDefinitionQuery |
orderByDeploymentId()
Order by deployment id (needs to be followed by
Query.asc() or Query.desc() ). |
ProcessDefinitionQuery |
orderByProcessDefinitionCategory()
Order by the category of the process definitions (needs to be followed by
Query.asc() or Query.desc() ). |
ProcessDefinitionQuery |
orderByProcessDefinitionId()
Order by the id of the process definitions (needs to be followed by
Query.asc() or Query.desc() ). |
ProcessDefinitionQuery |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by
Query.asc() or Query.desc() ). |
ProcessDefinitionQuery |
orderByProcessDefinitionName()
Order by the name of the process definitions (needs to be followed by
Query.asc() or Query.desc() ). |
ProcessDefinitionQuery |
orderByProcessDefinitionVersion()
Order by the version of the process definitions (needs to be followed by
Query.asc() or Query.desc() ). |
ProcessDefinitionQueryImpl |
processDefinitionCategory(String category)
Only select process definitions with the given category.
|
ProcessDefinitionQueryImpl |
processDefinitionCategoryLike(String categoryLike)
Only select process definitions where the category matches the given parameter.
|
ProcessDefinitionQueryImpl |
processDefinitionId(String processDefinitionId)
Only select process definiton with the given id.
|
ProcessDefinitionQueryImpl |
processDefinitionKey(String key)
Only select process definition with the given key.
|
ProcessDefinitionQueryImpl |
processDefinitionKeyLike(String keyLike)
Only select process definitions where the key matches the given parameter.
|
ProcessDefinitionQueryImpl |
processDefinitionName(String name)
Only select process definitions with the given name.
|
ProcessDefinitionQueryImpl |
processDefinitionNameLike(String nameLike)
Only select process definitions where the name matches the given parameter.
|
ProcessDefinitionQueryImpl |
processDefinitionResourceName(String resourceName)
Only select process definition with the given resource name.
|
ProcessDefinitionQueryImpl |
processDefinitionResourceNameLike(String resourceNameLike)
Only select process definition with a resource name like the given .
|
ProcessDefinitionQuery |
processDefinitionStarter(String procDefId) |
ProcessDefinitionQueryImpl |
processDefinitionVersion(Integer version)
Only select process definition with a certain version.
|
void |
setSuspensionState(SuspensionState suspensionState) |
ProcessDefinitionQueryImpl |
startableByUser(String userId)
Only selects process definitions which given userId is authoriezed to start
|
ProcessDefinitionQuery |
suspended()
Only selects process definitions which are suspended
|
addOrder, asc, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
protected String id
protected String category
protected String categoryLike
protected String name
protected String nameLike
protected String deploymentId
protected String key
protected String keyLike
protected String resourceName
protected String resourceNameLike
protected Integer version
protected boolean latest
protected SuspensionState suspensionState
protected String authorizationUserId
protected String procDefId
protected String eventSubscriptionName
protected String eventSubscriptionType
public ProcessDefinitionQueryImpl()
public ProcessDefinitionQueryImpl(CommandContext commandContext)
public ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
public ProcessDefinitionQueryImpl processDefinitionId(String processDefinitionId)
ProcessDefinitionQuery
processDefinitionId
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionCategory(String category)
ProcessDefinitionQuery
processDefinitionCategory
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionCategoryLike(String categoryLike)
ProcessDefinitionQuery
processDefinitionCategoryLike
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionName(String name)
ProcessDefinitionQuery
processDefinitionName
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionNameLike(String nameLike)
ProcessDefinitionQuery
processDefinitionNameLike
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl deploymentId(String deploymentId)
ProcessDefinitionQuery
deploymentId
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionKey(String key)
ProcessDefinitionQuery
processDefinitionKey
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionKeyLike(String keyLike)
ProcessDefinitionQuery
processDefinitionKeyLike
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionResourceName(String resourceName)
ProcessDefinitionQuery
processDefinitionResourceName
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionResourceNameLike(String resourceNameLike)
ProcessDefinitionQuery
processDefinitionResourceNameLike
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl processDefinitionVersion(Integer version)
ProcessDefinitionQuery
ProcessDefinitionQuery.processDefinitionKey(String)
processDefinitionVersion
in interface ProcessDefinitionQuery
public ProcessDefinitionQueryImpl latestVersion()
ProcessDefinitionQuery
ProcessDefinitionQuery.processDefinitionKey(String)
of ProcessDefinitionQuery.processDefinitionKeyLike(String)
.
Can also be used without any other criteria (ie. query.latest().list()), which
will then give all the latest versions of all the deployed process definitions.latestVersion
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery active()
ProcessDefinitionQuery
active
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery suspended()
ProcessDefinitionQuery
suspended
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery messageEventSubscription(String messageName)
messageEventSubscription
in interface ProcessDefinitionQuery
ProcessDefinitionQuery.messageEventSubscriptionName(String)
public ProcessDefinitionQuery messageEventSubscriptionName(String messageName)
ProcessDefinitionQuery
messageEventSubscriptionName
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery processDefinitionStarter(String procDefId)
public ProcessDefinitionQuery eventSubscription(String eventType, String eventName)
public ProcessDefinitionQuery orderByDeploymentId()
ProcessDefinitionQuery
Query.asc()
or Query.desc()
).orderByDeploymentId
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery orderByProcessDefinitionKey()
ProcessDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionKey
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery orderByProcessDefinitionCategory()
ProcessDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionCategory
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery orderByProcessDefinitionId()
ProcessDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionId
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery orderByProcessDefinitionVersion()
ProcessDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionVersion
in interface ProcessDefinitionQuery
public ProcessDefinitionQuery orderByProcessDefinitionName()
ProcessDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionName
in interface ProcessDefinitionQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
public List<ProcessDefinition> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
page
- used if the results must be paged. If null, no paging will be applied.public void checkQueryOk()
checkQueryOk
in class AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
public String getDeploymentId()
public String getId()
public String getName()
public String getNameLike()
public String getKey()
public String getKeyLike()
public Integer getVersion()
public boolean isLatest()
public String getCategory()
public String getCategoryLike()
public String getResourceName()
public String getResourceNameLike()
public SuspensionState getSuspensionState()
public void setSuspensionState(SuspensionState suspensionState)
public ProcessDefinitionQueryImpl startableByUser(String userId)
ProcessDefinitionQuery
startableByUser
in interface ProcessDefinitionQuery
Copyright © 2015. All rights reserved.