Package org.camunda.bpm.engine.impl
Class UserOperationLogQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<UserOperationLogQuery,UserOperationLogEntry>
-
- org.camunda.bpm.engine.impl.UserOperationLogQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,UserOperationLogQuery
,Command<java.lang.Object>
,Query<UserOperationLogQuery,UserOperationLogEntry>
public class UserOperationLogQueryImpl extends AbstractQuery<UserOperationLogQuery,UserOperationLogEntry> implements UserOperationLogQuery
- Author:
- Danny Gräf
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
batchId
protected java.lang.String
caseDefinitionId
protected java.lang.String
caseExecutionId
protected java.lang.String
caseInstanceId
protected java.lang.String[]
categories
protected java.lang.String
category
protected java.lang.String
deploymentId
protected java.lang.String
entityType
protected java.lang.String[]
entityTypes
protected java.lang.String
executionId
protected java.lang.String
externalTaskId
protected boolean
isTenantIdSet
protected java.lang.String
jobDefinitionId
protected java.lang.String
jobId
protected java.lang.String
operationId
protected java.lang.String
operationType
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String
processInstanceId
protected java.lang.String
property
protected java.lang.String
taskId
protected java.lang.String[]
tenantIds
protected java.util.Date
timestampAfter
protected java.util.Date
timestampBefore
protected java.lang.String
userId
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description UserOperationLogQueryImpl()
UserOperationLogQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserOperationLogQuery
afterTimestamp(java.util.Date after)
Query entries after the time stamp.UserOperationLogQuery
batchId(java.lang.String batchId)
Query entries which are existing for the batch.UserOperationLogQuery
beforeTimestamp(java.util.Date before)
Query entries before the time stamp.UserOperationLogQuery
caseDefinitionId(java.lang.String caseDefinitionId)
Query entries which are existing for the given case definition id.UserOperationLogQuery
caseExecutionId(java.lang.String caseExecutionId)
Query entries which are existing for the given case execution.UserOperationLogQuery
caseInstanceId(java.lang.String caseInstanceId)
Query entries which are existing for the given case instance.UserOperationLogQuery
category(java.lang.String category)
Query for operations of the given category only.UserOperationLogQuery
categoryIn(java.lang.String... categories)
Query for operations of given categories only.UserOperationLogQuery
deploymentId(java.lang.String deploymentId)
Query entries which are existing for the given deployment id.UserOperationLogQuery
entityType(java.lang.String entityType)
Query for operations on entities of a given type only.UserOperationLogQuery
entityTypeIn(java.lang.String... entityTypes)
Query for operations on entities of a given type only.long
executeCount(CommandContext commandContext)
java.util.List<UserOperationLogEntry>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.UserOperationLogQuery
executionId(java.lang.String executionId)
Query entries which are existing for the given execution.UserOperationLogQuery
externalTaskId(java.lang.String externalTaskId)
Query entries which are existing for the external task.protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.boolean
isTenantIdSet()
UserOperationLogQuery
jobDefinitionId(java.lang.String jobDefinitionId)
Query entries which are existing for the job definition.UserOperationLogQuery
jobId(java.lang.String jobId)
Query entries which are existing for the job.UserOperationLogQuery
operationId(java.lang.String operationId)
Query entries of a composite operation.UserOperationLogQuery
operationType(java.lang.String operationType)
Query for operations of a given type only.UserOperationLogQuery
orderByTimestamp()
Order by time stamp (needs to be followed byQuery.asc()
orQuery.desc()
).UserOperationLogQuery
processDefinitionId(java.lang.String processDefinitionId)
Query entries which are existing for the given process definition id.UserOperationLogQuery
processDefinitionKey(java.lang.String processDefinitionKey)
Query entries which are operate on all process definitions of the given key.UserOperationLogQuery
processInstanceId(java.lang.String processInstanceId)
Query entries which are existing for the given process instance.UserOperationLogQuery
property(java.lang.String property)
Query entries that changed a property.UserOperationLogQuery
taskId(java.lang.String taskId)
Query entries which are existing for the task.UserOperationLogQuery
tenantIdIn(java.lang.String... tenantIds)
Only select entries which have the given tenant id.UserOperationLogQuery
userId(java.lang.String userId)
Query entries which are existing for the user.UserOperationLogQuery
withoutTenantId()
Only selects entries that have no tenant id.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
-
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
deploymentId
protected java.lang.String deploymentId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processInstanceId
protected java.lang.String processInstanceId
-
executionId
protected java.lang.String executionId
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseInstanceId
protected java.lang.String caseInstanceId
-
caseExecutionId
protected java.lang.String caseExecutionId
-
taskId
protected java.lang.String taskId
-
jobId
protected java.lang.String jobId
-
jobDefinitionId
protected java.lang.String jobDefinitionId
-
batchId
protected java.lang.String batchId
-
userId
protected java.lang.String userId
-
operationId
protected java.lang.String operationId
-
externalTaskId
protected java.lang.String externalTaskId
-
operationType
protected java.lang.String operationType
-
property
protected java.lang.String property
-
entityType
protected java.lang.String entityType
-
category
protected java.lang.String category
-
timestampAfter
protected java.util.Date timestampAfter
-
timestampBefore
protected java.util.Date timestampBefore
-
tenantIds
protected java.lang.String[] tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
entityTypes
protected java.lang.String[] entityTypes
-
categories
protected java.lang.String[] categories
-
-
Constructor Detail
-
UserOperationLogQueryImpl
public UserOperationLogQueryImpl()
-
UserOperationLogQueryImpl
public UserOperationLogQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
deploymentId
public UserOperationLogQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given deployment id.- Specified by:
deploymentId
in interfaceUserOperationLogQuery
-
processDefinitionId
public UserOperationLogQuery processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given process definition id.- Specified by:
processDefinitionId
in interfaceUserOperationLogQuery
-
processDefinitionKey
public UserOperationLogQuery processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:UserOperationLogQuery
Query entries which are operate on all process definitions of the given key.- Specified by:
processDefinitionKey
in interfaceUserOperationLogQuery
-
processInstanceId
public UserOperationLogQuery processInstanceId(java.lang.String processInstanceId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given process instance.- Specified by:
processInstanceId
in interfaceUserOperationLogQuery
-
executionId
public UserOperationLogQuery executionId(java.lang.String executionId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given execution.- Specified by:
executionId
in interfaceUserOperationLogQuery
-
caseDefinitionId
public UserOperationLogQuery caseDefinitionId(java.lang.String caseDefinitionId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given case definition id.- Specified by:
caseDefinitionId
in interfaceUserOperationLogQuery
-
caseInstanceId
public UserOperationLogQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given case instance.- Specified by:
caseInstanceId
in interfaceUserOperationLogQuery
-
caseExecutionId
public UserOperationLogQuery caseExecutionId(java.lang.String caseExecutionId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the given case execution.- Specified by:
caseExecutionId
in interfaceUserOperationLogQuery
-
taskId
public UserOperationLogQuery taskId(java.lang.String taskId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the task.- Specified by:
taskId
in interfaceUserOperationLogQuery
-
jobId
public UserOperationLogQuery jobId(java.lang.String jobId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the job.- Specified by:
jobId
in interfaceUserOperationLogQuery
-
jobDefinitionId
public UserOperationLogQuery jobDefinitionId(java.lang.String jobDefinitionId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the job definition.- Specified by:
jobDefinitionId
in interfaceUserOperationLogQuery
-
batchId
public UserOperationLogQuery batchId(java.lang.String batchId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the batch.- Specified by:
batchId
in interfaceUserOperationLogQuery
-
userId
public UserOperationLogQuery userId(java.lang.String userId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the user.- Specified by:
userId
in interfaceUserOperationLogQuery
-
operationId
public UserOperationLogQuery operationId(java.lang.String operationId)
Description copied from interface:UserOperationLogQuery
Query entries of a composite operation. This allows grouping multiple updates which are part of the same operation: for instance, a User may update multiple fields of a UserTask when callingTaskService.saveTask(org.camunda.bpm.engine.task.Task)
which will be logged as separateOperationLogEntries
with the same 'operationId'- Specified by:
operationId
in interfaceUserOperationLogQuery
-
externalTaskId
public UserOperationLogQuery externalTaskId(java.lang.String externalTaskId)
Description copied from interface:UserOperationLogQuery
Query entries which are existing for the external task.- Specified by:
externalTaskId
in interfaceUserOperationLogQuery
-
operationType
public UserOperationLogQuery operationType(java.lang.String operationType)
Description copied from interface:UserOperationLogQuery
Query for operations of a given type only. Types of operations depend on the entity on which the operation was performed. For Instance: Tasks may be delegated, claimed, completed ... Check theUserOperationLogEntry
class for a list of constants of supported operations.- Specified by:
operationType
in interfaceUserOperationLogQuery
-
property
public UserOperationLogQuery property(java.lang.String property)
Description copied from interface:UserOperationLogQuery
Query entries that changed a property.- Specified by:
property
in interfaceUserOperationLogQuery
-
entityType
public UserOperationLogQuery entityType(java.lang.String entityType)
Description copied from interface:UserOperationLogQuery
Query for operations on entities of a given type only. This allows you to restrict the result set to all operations which were performed on the same Entity (ie. all Task Operations, All IdentityLink Operations ...)- Specified by:
entityType
in interfaceUserOperationLogQuery
- See Also:
EntityTypes.TASK
,EntityTypes.IDENTITY_LINK
,EntityTypes.ATTACHMENT
-
entityTypeIn
public UserOperationLogQuery entityTypeIn(java.lang.String... entityTypes)
Description copied from interface:UserOperationLogQuery
Query for operations on entities of a given type only. This allows you to restrict the result set to all operations which were performed on the same Entity (ie. all Task Operations, All IdentityLink Operations ...)- Specified by:
entityTypeIn
in interfaceUserOperationLogQuery
- See Also:
EntityTypes.TASK
,EntityTypes.IDENTITY_LINK
,EntityTypes.ATTACHMENT
-
category
public UserOperationLogQuery category(java.lang.String category)
Description copied from interface:UserOperationLogQuery
Query for operations of the given category only. This allows you to restrict the result set to all operations which were performed in the same domain (ie. all Task Worker Operations, All Admin Operations ...)- Specified by:
category
in interfaceUserOperationLogQuery
- See Also:
UserOperationLogEntry.CATEGORY_ADMIN
,UserOperationLogEntry.CATEGORY_OPERATOR
,UserOperationLogEntry.CATEGORY_TASK_WORKER
-
categoryIn
public UserOperationLogQuery categoryIn(java.lang.String... categories)
Description copied from interface:UserOperationLogQuery
Query for operations of given categories only. This allows you to restrict the result set to all operations which were performed in the same domain (ie. all Task Worker Operations, All Admin Operations ...)- Specified by:
categoryIn
in interfaceUserOperationLogQuery
- See Also:
UserOperationLogEntry.CATEGORY_ADMIN
,UserOperationLogEntry.CATEGORY_OPERATOR
,UserOperationLogEntry.CATEGORY_TASK_WORKER
-
afterTimestamp
public UserOperationLogQuery afterTimestamp(java.util.Date after)
Description copied from interface:UserOperationLogQuery
Query entries after the time stamp.- Specified by:
afterTimestamp
in interfaceUserOperationLogQuery
-
beforeTimestamp
public UserOperationLogQuery beforeTimestamp(java.util.Date before)
Description copied from interface:UserOperationLogQuery
Query entries before the time stamp.- Specified by:
beforeTimestamp
in interfaceUserOperationLogQuery
-
orderByTimestamp
public UserOperationLogQuery orderByTimestamp()
Description copied from interface:UserOperationLogQuery
Order by time stamp (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTimestamp
in interfaceUserOperationLogQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<UserOperationLogQuery,UserOperationLogEntry>
-
executeList
public java.util.List<UserOperationLogEntry> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<UserOperationLogQuery,UserOperationLogEntry>
page
- used if the results must be paged. If null, no paging will be applied.
-
isTenantIdSet
public boolean isTenantIdSet()
-
tenantIdIn
public UserOperationLogQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:UserOperationLogQuery
Only select entries which have the given tenant id.- Specified by:
tenantIdIn
in interfaceUserOperationLogQuery
-
withoutTenantId
public UserOperationLogQuery withoutTenantId()
Description copied from interface:UserOperationLogQuery
Only selects entries that have no tenant id.- Specified by:
withoutTenantId
in interfaceUserOperationLogQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()
Description copied from class:AbstractQuery
Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditions
in classAbstractQuery<UserOperationLogQuery,UserOperationLogEntry>
- Returns:
true
if the query does have excluding conditions,false
otherwise
-
-