Class WorkInstanceInfoQueryImpl<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
- java.lang.Object
-
- org.flowable.common.engine.impl.db.ListQueryParameterObject
-
- org.flowable.common.engine.impl.query.AbstractQuery<Q,R>
-
- com.flowable.platform.engine.impl.work.WorkInstanceInfoQueryImpl<Q,R>
-
- All Implemented Interfaces:
WorkInstanceInfoQuery<Q,R>,Serializable,Query<Q,R>,Command<Object>
- Direct Known Subclasses:
HistoricWorkInstanceQueryImpl,WorkInstanceQueryImpl
public abstract class WorkInstanceInfoQueryImpl<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo> extends AbstractQuery<Q,R> implements WorkInstanceInfoQuery<Q,R>
- Author:
- Filip Hrisafov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>accessibleByGroupsprotected StringaccessibleByUserprotected StringassigneeUserIdprotected static ListQueryParameterObject.OrderByDEFAULT_ORDER_BYprotected Collection<String>definitionCategoriesprotected StringdefinitionCategoryprotected StringdefinitionIdprotected StringdefinitionKeyprotected StringdefinitionNameprotected Stringidprotected booleanincludeTranslationsprotected Stringnameprotected List<List<String>>safeAccessibleByGroupsprotected StringsearchTextprotected StringstartUserIdprotected Stringstateprotected StringtenantIdprotected Stringtype-
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
-
Constructor Summary
Constructors Constructor Description WorkInstanceInfoQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QaccessibleByUserOrGroups(String userId, Collection<String> groupKeys)Only select work instances accessible by the give user or groupsQassigneeUserId(String userId)Only select work instance assigned to the given useridprotected voidcheckQueryOk()QdefinitionCategories(Collection<String> definitionCategories)Only select work instances with the given definition categoriesQdefinitionCategory(String definitionCategory)Only select work instances with the given definition categoryQdefinitionId(String definitionId)Only select work instances with the given definition idQdefinitionKey(String definitionKey)Only select work instances with the given definition keyQdefinitionName(String definitionName)Only select work instances with the given definition nameCollection<String>getAccessibleByGroups()StringgetAccessibleByUser()StringgetAssigneeUserId()Collection<String>getDefinitionCategories()StringgetDefinitionCategory()StringgetDefinitionId()StringgetDefinitionKey()StringgetDefinitionName()StringgetId()StringgetName()List<List<String>>getSafeAccessibleByGroups()StringgetSearchText()StringgetStartUserId()StringgetState()StringgetTenantId()StringgetType()Qid(String id)Only select work instances with the given idQincludeTranslation()Whether translations for the work instances should also be fetched.booleanisIncludeTranslations()Qname(String name)Only select work instances with the given nameQsearchText(String searchText)Only select work instances with the given search textprotected voidsetSafeLists()QstartUserId(String startUserId)Only select work instances with the given start user idQstate(String state)Only select work instances with the given stateQtenantId(String tenantId)Only select work instances with the given tenantIdQtype(String type)Only select work instances with the given type-
Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, count, desc, direction, execute, executeCount, executeList, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
-
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
-
-
-
Field Detail
-
DEFAULT_ORDER_BY
protected static final ListQueryParameterObject.OrderBy DEFAULT_ORDER_BY
-
id
protected String id
-
name
protected String name
-
definitionId
protected String definitionId
-
definitionName
protected String definitionName
-
definitionKey
protected String definitionKey
-
definitionCategory
protected String definitionCategory
-
definitionCategories
protected Collection<String> definitionCategories
-
state
protected String state
-
type
protected String type
-
startUserId
protected String startUserId
-
searchText
protected String searchText
-
tenantId
protected String tenantId
-
accessibleByUser
protected String accessibleByUser
-
accessibleByGroups
protected Collection<String> accessibleByGroups
-
includeTranslations
protected boolean includeTranslations
-
assigneeUserId
protected String assigneeUserId
-
-
Constructor Detail
-
WorkInstanceInfoQueryImpl
public WorkInstanceInfoQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
id
public Q id(String id)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given id- Specified by:
idin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
name
public Q name(String name)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given name- Specified by:
namein interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionId
public Q definitionId(String definitionId)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given definition id- Specified by:
definitionIdin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionName
public Q definitionName(String definitionName)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given definition name- Specified by:
definitionNamein interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionKey
public Q definitionKey(String definitionKey)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given definition key- Specified by:
definitionKeyin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionCategory
public Q definitionCategory(String definitionCategory)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given definition category- Specified by:
definitionCategoryin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionCategories
public Q definitionCategories(Collection<String> definitionCategories)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given definition categories- Specified by:
definitionCategoriesin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
state
public Q state(String state)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given state- Specified by:
statein interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
type
public Q type(String type)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given type- Specified by:
typein interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
startUserId
public Q startUserId(String startUserId)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given start user id- Specified by:
startUserIdin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
searchText
public Q searchText(String searchText)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given search text- Specified by:
searchTextin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
tenantId
public Q tenantId(String tenantId)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances with the given tenantId- Specified by:
tenantIdin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
accessibleByUserOrGroups
public Q accessibleByUserOrGroups(String userId, Collection<String> groupKeys)
Description copied from interface:WorkInstanceInfoQueryOnly select work instances accessible by the give user or groups- Specified by:
accessibleByUserOrGroupsin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
includeTranslation
public Q includeTranslation()
Description copied from interface:WorkInstanceInfoQueryWhether translations for the work instances should also be fetched.- Specified by:
includeTranslationin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
assigneeUserId
public Q assigneeUserId(String userId)
Description copied from interface:WorkInstanceInfoQueryOnly select work instance assigned to the given userid- Specified by:
assigneeUserIdin interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
checkQueryOk
protected void checkQueryOk()
- Overrides:
checkQueryOkin classAbstractQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
setSafeLists
protected void setSafeLists()
-
getId
public String getId()
-
getName
public String getName()
-
getDefinitionId
public String getDefinitionId()
-
getDefinitionName
public String getDefinitionName()
-
getDefinitionKey
public String getDefinitionKey()
-
getDefinitionCategory
public String getDefinitionCategory()
-
getDefinitionCategories
public Collection<String> getDefinitionCategories()
-
getState
public String getState()
-
getType
public String getType()
-
getStartUserId
public String getStartUserId()
-
getSearchText
public String getSearchText()
-
getTenantId
public String getTenantId()
-
getAccessibleByUser
public String getAccessibleByUser()
-
getAccessibleByGroups
public Collection<String> getAccessibleByGroups()
-
isIncludeTranslations
public boolean isIncludeTranslations()
-
getAssigneeUserId
public String getAssigneeUserId()
-
-