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>
accessibleByGroups
protected String
accessibleByUser
protected String
assigneeUserId
protected static ListQueryParameterObject.OrderBy
DEFAULT_ORDER_BY
protected Collection<String>
definitionCategories
protected String
definitionCategory
protected String
definitionId
protected String
definitionKey
protected String
definitionName
protected String
id
protected boolean
includeTranslations
protected String
name
protected List<List<String>>
safeAccessibleByGroups
protected String
searchText
protected String
startUserId
protected String
state
protected String
tenantId
protected String
type
-
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 Q
accessibleByUserOrGroups(String userId, Collection<String> groupKeys)
Only select work instances accessible by the give user or groupsQ
assigneeUserId(String userId)
Only select work instance assigned to the given useridprotected void
checkQueryOk()
Q
definitionCategories(Collection<String> definitionCategories)
Only select work instances with the given definition categoriesQ
definitionCategory(String definitionCategory)
Only select work instances with the given definition categoryQ
definitionId(String definitionId)
Only select work instances with the given definition idQ
definitionKey(String definitionKey)
Only select work instances with the given definition keyQ
definitionName(String definitionName)
Only select work instances with the given definition nameCollection<String>
getAccessibleByGroups()
String
getAccessibleByUser()
String
getAssigneeUserId()
Collection<String>
getDefinitionCategories()
String
getDefinitionCategory()
String
getDefinitionId()
String
getDefinitionKey()
String
getDefinitionName()
String
getId()
String
getName()
List<List<String>>
getSafeAccessibleByGroups()
String
getSearchText()
String
getStartUserId()
String
getState()
String
getTenantId()
String
getType()
Q
id(String id)
Only select work instances with the given idQ
includeTranslation()
Whether translations for the work instances should also be fetched.boolean
isIncludeTranslations()
Q
name(String name)
Only select work instances with the given nameQ
searchText(String searchText)
Only select work instances with the given search textprotected void
setSafeLists()
Q
startUserId(String startUserId)
Only select work instances with the given start user idQ
state(String state)
Only select work instances with the given stateQ
tenantId(String tenantId)
Only select work instances with the given tenantIdQ
type(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:WorkInstanceInfoQuery
Only select work instances with the given id- Specified by:
id
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
name
public Q name(String name)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given name- Specified by:
name
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionId
public Q definitionId(String definitionId)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition id- Specified by:
definitionId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionName
public Q definitionName(String definitionName)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition name- Specified by:
definitionName
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionKey
public Q definitionKey(String definitionKey)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition key- Specified by:
definitionKey
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionCategory
public Q definitionCategory(String definitionCategory)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition category- Specified by:
definitionCategory
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
definitionCategories
public Q definitionCategories(Collection<String> definitionCategories)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition categories- Specified by:
definitionCategories
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
state
public Q state(String state)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given state- Specified by:
state
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
type
public Q type(String type)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given type- Specified by:
type
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
startUserId
public Q startUserId(String startUserId)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given start user id- Specified by:
startUserId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
searchText
public Q searchText(String searchText)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given search text- Specified by:
searchText
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
tenantId
public Q tenantId(String tenantId)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given tenantId- Specified by:
tenantId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
accessibleByUserOrGroups
public Q accessibleByUserOrGroups(String userId, Collection<String> groupKeys)
Description copied from interface:WorkInstanceInfoQuery
Only select work instances accessible by the give user or groups- Specified by:
accessibleByUserOrGroups
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
includeTranslation
public Q includeTranslation()
Description copied from interface:WorkInstanceInfoQuery
Whether translations for the work instances should also be fetched.- Specified by:
includeTranslation
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
assigneeUserId
public Q assigneeUserId(String userId)
Description copied from interface:WorkInstanceInfoQuery
Only select work instance assigned to the given userid- Specified by:
assigneeUserId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
-
checkQueryOk
protected void checkQueryOk()
- Overrides:
checkQueryOk
in 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()
-
-