Package org.camunda.bpm.engine.impl
Class ActivityStatisticsQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<ActivityStatisticsQuery,ActivityStatistics>
-
- org.camunda.bpm.engine.impl.ActivityStatisticsQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Command<java.lang.Object>
,ActivityStatisticsQuery
,Query<ActivityStatisticsQuery,ActivityStatistics>
public class ActivityStatisticsQueryImpl extends AbstractQuery<ActivityStatisticsQuery,ActivityStatistics> implements ActivityStatisticsQuery
- 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.util.List<PermissionCheck>
incidentPermissionChecks
protected boolean
includeFailedJobs
protected boolean
includeIncidents
protected java.lang.String
includeIncidentsForType
protected java.util.List<PermissionCheck>
jobPermissionChecks
protected java.lang.String
processDefinitionId
protected java.util.List<PermissionCheck>
processInstancePermissionChecks
protected static long
serialVersionUID
-
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 ActivityStatisticsQueryImpl(java.lang.String processDefinitionId, CommandExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIncidentPermissionCheck(java.util.List<PermissionCheck> permissionChecks)
void
addJobPermissionCheck(java.util.List<PermissionCheck> permissionChecks)
void
addProcessInstancePermissionCheck(java.util.List<PermissionCheck> permissionChecks)
protected void
checkQueryOk()
long
executeCount(CommandContext commandContext)
java.util.List<ActivityStatistics>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.util.List<PermissionCheck>
getIncidentPermissionChecks()
java.util.List<PermissionCheck>
getJobPermissionChecks()
java.lang.String
getProcessDefinitionId()
java.util.List<PermissionCheck>
getProcessInstancePermissionChecks()
ActivityStatisticsQuery
includeFailedJobs()
Include an aggregation of failed jobs in the result.ActivityStatisticsQuery
includeIncidents()
Include an aggregation of incidents in the result.ActivityStatisticsQuery
includeIncidentsForType(java.lang.String incidentType)
Include an aggregation of incidents of the assigned incidentType in the result.boolean
isFailedJobsToInclude()
boolean
isIncidentsToInclude()
void
setIncidentPermissionChecks(java.util.List<PermissionCheck> incidentPermissionChecks)
void
setJobPermissionChecks(java.util.List<PermissionCheck> jobPermissionChecks)
void
setProcessInstancePermissionChecks(java.util.List<PermissionCheck> processInstancePermissionChecks)
-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, 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
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
includeFailedJobs
protected boolean includeFailedJobs
-
processDefinitionId
protected java.lang.String processDefinitionId
-
includeIncidents
protected boolean includeIncidents
-
includeIncidentsForType
protected java.lang.String includeIncidentsForType
-
processInstancePermissionChecks
protected java.util.List<PermissionCheck> processInstancePermissionChecks
-
jobPermissionChecks
protected java.util.List<PermissionCheck> jobPermissionChecks
-
incidentPermissionChecks
protected java.util.List<PermissionCheck> incidentPermissionChecks
-
-
Constructor Detail
-
ActivityStatisticsQueryImpl
public ActivityStatisticsQueryImpl(java.lang.String processDefinitionId, CommandExecutor executor)
-
-
Method Detail
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<ActivityStatisticsQuery,ActivityStatistics>
-
executeList
public java.util.List<ActivityStatistics> 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<ActivityStatisticsQuery,ActivityStatistics>
page
- used if the results must be paged. If null, no paging will be applied.
-
includeFailedJobs
public ActivityStatisticsQuery includeFailedJobs()
Description copied from interface:ActivityStatisticsQuery
Include an aggregation of failed jobs in the result.- Specified by:
includeFailedJobs
in interfaceActivityStatisticsQuery
-
includeIncidents
public ActivityStatisticsQuery includeIncidents()
Description copied from interface:ActivityStatisticsQuery
Include an aggregation of incidents in the result.- Specified by:
includeIncidents
in interfaceActivityStatisticsQuery
-
includeIncidentsForType
public ActivityStatisticsQuery includeIncidentsForType(java.lang.String incidentType)
Description copied from interface:ActivityStatisticsQuery
Include an aggregation of incidents of the assigned incidentType in the result.- Specified by:
includeIncidentsForType
in interfaceActivityStatisticsQuery
-
isFailedJobsToInclude
public boolean isFailedJobsToInclude()
-
isIncidentsToInclude
public boolean isIncidentsToInclude()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
checkQueryOk
protected void checkQueryOk()
- Overrides:
checkQueryOk
in classAbstractQuery<ActivityStatisticsQuery,ActivityStatistics>
-
getProcessInstancePermissionChecks
public java.util.List<PermissionCheck> getProcessInstancePermissionChecks()
-
setProcessInstancePermissionChecks
public void setProcessInstancePermissionChecks(java.util.List<PermissionCheck> processInstancePermissionChecks)
-
addProcessInstancePermissionCheck
public void addProcessInstancePermissionCheck(java.util.List<PermissionCheck> permissionChecks)
-
getJobPermissionChecks
public java.util.List<PermissionCheck> getJobPermissionChecks()
-
setJobPermissionChecks
public void setJobPermissionChecks(java.util.List<PermissionCheck> jobPermissionChecks)
-
addJobPermissionCheck
public void addJobPermissionCheck(java.util.List<PermissionCheck> permissionChecks)
-
getIncidentPermissionChecks
public java.util.List<PermissionCheck> getIncidentPermissionChecks()
-
setIncidentPermissionChecks
public void setIncidentPermissionChecks(java.util.List<PermissionCheck> incidentPermissionChecks)
-
addIncidentPermissionCheck
public void addIncidentPermissionCheck(java.util.List<PermissionCheck> permissionChecks)
-
-