public class ProcessDefinitionQueryImpl extends AbstractQuery<ProcessDefinitionQuery,ProcessDefinition> implements ProcessDefinitionQuery
AbstractQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
protected String |
authorizationUserId |
protected String |
category |
protected String |
categoryLike |
protected String |
categoryNotEquals |
protected String |
deploymentId |
protected Set<String> |
deploymentIds |
protected String |
eventSubscriptionName |
protected String |
eventSubscriptionType |
protected String |
id |
protected Set<String> |
ids |
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 String |
tenantId |
protected String |
tenantIdLike |
protected Integer |
version |
protected Integer |
versionGt |
protected Integer |
versionGte |
protected Integer |
versionLt |
protected Integer |
versionLte |
protected boolean |
withoutTenantId |
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCfirstResult, maxResults, parameter| 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() |
protected void |
checkVersion(Integer version) |
ProcessDefinitionQueryImpl |
deploymentId(String deploymentId)
Only select process definitions that are deployed in a deployment with the
given deployment id
|
ProcessDefinitionQueryImpl |
deploymentIds(Set<String> deploymentIds)
Select process definitions that are deployed in deployments with the given set of ids
|
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.
|
List<String> |
getAuthorizationGroups() |
String |
getCategory() |
String |
getCategoryLike() |
String |
getCategoryNotEquals() |
String |
getDeploymentId() |
Set<String> |
getDeploymentIds() |
String |
getId() |
Set<String> |
getIds() |
String |
getKey() |
String |
getKeyLike() |
String |
getName() |
String |
getNameLike() |
String |
getResourceName() |
String |
getResourceNameLike() |
SuspensionState |
getSuspensionState() |
String |
getTenantId() |
String |
getTenantIdLike() |
Integer |
getVersion() |
Integer |
getVersionGt() |
Integer |
getVersionGte() |
Integer |
getVersionLt() |
Integer |
getVersionLte() |
boolean |
isLatest() |
boolean |
isWithoutTenantId() |
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()). |
ProcessDefinitionQuery |
orderByTenantId()
Order by tenant id (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 |
processDefinitionCategoryNotEquals(String categoryNotEquals)
Only select deployments that have a different category then the given one.
|
ProcessDefinitionQueryImpl |
processDefinitionId(String processDefinitionId)
Only select process definiton with the given id.
|
ProcessDefinitionQuery |
processDefinitionIds(Set<String> processDefinitionIds)
Only select process definitions with the given ids.
|
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) |
ProcessDefinitionQuery |
processDefinitionTenantId(String tenantId)
Only select process definitions that have the given tenant id.
|
ProcessDefinitionQuery |
processDefinitionTenantIdLike(String tenantIdLike)
Only select process definitions with a tenant id like the given one.
|
ProcessDefinitionQueryImpl |
processDefinitionVersion(Integer version)
Only select process definition with a certain version.
|
ProcessDefinitionQuery |
processDefinitionVersionGreaterThan(Integer processDefinitionVersion)
Only select process definitions which version are greater than a certain version.
|
ProcessDefinitionQuery |
processDefinitionVersionGreaterThanOrEquals(Integer processDefinitionVersion)
Only select process definitions which version are greater than or equals a certain version.
|
ProcessDefinitionQuery |
processDefinitionVersionLowerThan(Integer processDefinitionVersion)
Only select process definitions which version are lower than a certain version.
|
ProcessDefinitionQuery |
processDefinitionVersionLowerThanOrEquals(Integer processDefinitionVersion)
Only select process definitions which version are lower than or equals a certain version.
|
ProcessDefinitionQuery |
processDefinitionWithoutTenantId()
Only select process definitions that do not have a tenant id.
|
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, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultgetFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameterprotected String id
protected String category
protected String categoryLike
protected String categoryNotEquals
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 Integer versionGt
protected Integer versionGte
protected Integer versionLt
protected Integer versionLte
protected boolean latest
protected SuspensionState suspensionState
protected String authorizationUserId
protected String procDefId
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
protected String eventSubscriptionName
protected String eventSubscriptionType
public ProcessDefinitionQueryImpl()
public ProcessDefinitionQueryImpl(CommandContext commandContext)
public ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
public ProcessDefinitionQueryImpl processDefinitionId(String processDefinitionId)
ProcessDefinitionQueryprocessDefinitionId in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionIds(Set<String> processDefinitionIds)
ProcessDefinitionQueryprocessDefinitionIds in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionCategory(String category)
ProcessDefinitionQueryprocessDefinitionCategory in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionCategoryLike(String categoryLike)
ProcessDefinitionQueryprocessDefinitionCategoryLike in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionCategoryNotEquals(String categoryNotEquals)
ProcessDefinitionQueryprocessDefinitionCategoryNotEquals in interface ProcessDefinitionQueryDeploymentBuilder.category(String)public ProcessDefinitionQueryImpl processDefinitionName(String name)
ProcessDefinitionQueryprocessDefinitionName in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionNameLike(String nameLike)
ProcessDefinitionQueryprocessDefinitionNameLike in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl deploymentId(String deploymentId)
ProcessDefinitionQuerydeploymentId in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl deploymentIds(Set<String> deploymentIds)
ProcessDefinitionQuerydeploymentIds in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionKey(String key)
ProcessDefinitionQueryprocessDefinitionKey in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionKeyLike(String keyLike)
ProcessDefinitionQueryprocessDefinitionKeyLike in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionResourceName(String resourceName)
ProcessDefinitionQueryprocessDefinitionResourceName in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionResourceNameLike(String resourceNameLike)
ProcessDefinitionQueryprocessDefinitionResourceNameLike in interface ProcessDefinitionQuerypublic ProcessDefinitionQueryImpl processDefinitionVersion(Integer version)
ProcessDefinitionQueryProcessDefinitionQuery.processDefinitionKey(String)processDefinitionVersion in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionVersionGreaterThan(Integer processDefinitionVersion)
ProcessDefinitionQueryprocessDefinitionVersionGreaterThan in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionVersionGreaterThanOrEquals(Integer processDefinitionVersion)
ProcessDefinitionQueryprocessDefinitionVersionGreaterThanOrEquals in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionVersionLowerThan(Integer processDefinitionVersion)
ProcessDefinitionQueryprocessDefinitionVersionLowerThan in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionVersionLowerThanOrEquals(Integer processDefinitionVersion)
ProcessDefinitionQueryprocessDefinitionVersionLowerThanOrEquals in interface ProcessDefinitionQueryprotected void checkVersion(Integer version)
public ProcessDefinitionQueryImpl latestVersion()
ProcessDefinitionQuerylatestVersion in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery active()
ProcessDefinitionQueryactive in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery suspended()
ProcessDefinitionQuerysuspended in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionTenantId(String tenantId)
ProcessDefinitionQueryprocessDefinitionTenantId in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionTenantIdLike(String tenantIdLike)
ProcessDefinitionQueryprocessDefinitionTenantIdLike in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionWithoutTenantId()
ProcessDefinitionQueryprocessDefinitionWithoutTenantId in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery messageEventSubscription(String messageName)
messageEventSubscription in interface ProcessDefinitionQueryProcessDefinitionQuery.messageEventSubscriptionName(String)public ProcessDefinitionQuery messageEventSubscriptionName(String messageName)
ProcessDefinitionQuerymessageEventSubscriptionName in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery processDefinitionStarter(String procDefId)
public ProcessDefinitionQuery eventSubscription(String eventType, String eventName)
public ProcessDefinitionQuery orderByDeploymentId()
ProcessDefinitionQueryQuery.asc() or Query.desc()).orderByDeploymentId in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery orderByProcessDefinitionKey()
ProcessDefinitionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionKey in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery orderByProcessDefinitionCategory()
ProcessDefinitionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionCategory in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery orderByProcessDefinitionId()
ProcessDefinitionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionId in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery orderByProcessDefinitionVersion()
ProcessDefinitionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionVersion in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery orderByProcessDefinitionName()
ProcessDefinitionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionName in interface ProcessDefinitionQuerypublic ProcessDefinitionQuery orderByTenantId()
ProcessDefinitionQueryQuery.asc() or
Query.desc()).orderByTenantId in interface ProcessDefinitionQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>public List<ProcessDefinition> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList 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 Integer getVersionGt()
public Integer getVersionGte()
public Integer getVersionLt()
public Integer getVersionLte()
public boolean isLatest()
public String getCategory()
public String getCategoryLike()
public String getResourceName()
public String getResourceNameLike()
public SuspensionState getSuspensionState()
public void setSuspensionState(SuspensionState suspensionState)
public String getCategoryNotEquals()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
public ProcessDefinitionQueryImpl startableByUser(String userId)
ProcessDefinitionQuerystartableByUser in interface ProcessDefinitionQueryCopyright © 2016 Alfresco. All rights reserved.