Class UserOperationLogManager
java.lang.Object
org.camunda.bpm.engine.impl.persistence.AbstractManager
org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
org.camunda.bpm.engine.impl.persistence.entity.UserOperationLogManager
- All Implemented Interfaces:
Session
Manager for
UserOperationLogEntryEventEntity
that also provides a generic and some specific log methods.- Author:
- Danny Gräf, Tobias Metzke
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
historyLevel, isHistoryEnabled, isHistoryLevelFullEnabled, LOG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRemovalTimeToUserOperationLogByProcessInstanceId
(String processInstanceId, Date removalTime, Integer batchSize) addRemovalTimeToUserOperationLogByRootProcessInstanceId
(String rootProcessInstanceId, Date removalTime, Integer batchSize) protected void
deleteOperationLogByRemovalTime
(Date removalTime, int minuteFrom, int minuteTo, int batchSize) void
deleteOperationLogEntryById
(String entryId) findOperationLogById
(String entryId) findOperationLogByOperationId
(String operationId) long
protected void
protected String
protected String
getOperationType
(IdentityOperationResult operationResult) protected String
getPermissionStringList
(AuthorizationEntity authorization) protected String
getResourceName
(int resourceType) protected boolean
protected boolean
boolean
protected boolean
protected void
logAnnotationOperation
(String id, String type, String idProperty, String operationType, String tenantId) void
logAttachmentOperation
(String operation, ExecutionEntity processInstance, PropertyChange propertyChange) void
logAttachmentOperation
(String operation, TaskEntity task, PropertyChange propertyChange) void
logAuthorizationOperation
(String operation, AuthorizationEntity authorization, AuthorizationEntity previousValues) void
logBatchOperation
(String operation, String batchId, String tenantId, List<PropertyChange> propertyChanges) void
logBatchOperation
(String operation, String batchId, String tenantId, PropertyChange propertyChange) void
logBatchOperation
(String operation, String tenantId, List<PropertyChange> propertyChange) void
logCaseDefinitionOperation
(String operation, String caseDefinitionId, String tenantId, List<PropertyChange> propertyChanges) void
logCaseInstanceOperation
(String operation, String caseInstanceId, String tenantId, List<PropertyChange> propertyChanges) void
logClearAnnotationOperation
(String operationId, String tenantId) void
logClearIncidentAnnotationOperation
(String incidentId, String tenantId) void
logDecisionDefinitionOperation
(String operation, String tenantId, List<PropertyChange> propertyChanges) void
logDecisionInstanceOperation
(String operation, String tenantId, List<PropertyChange> propertyChanges) void
logDeploymentOperation
(String operation, String deploymentId, String tenantId, List<PropertyChange> propertyChanges) void
logExternalTaskOperation
(String operation, ExternalTaskEntity externalTask, List<PropertyChange> propertyChanges) void
logFilterOperation
(String operation, String filterId) void
logGroupOperation
(String operation, String groupId) void
logGroupOperation
(IdentityOperationResult operationResult, String groupId) void
logHistoricVariableOperation
(String operation, HistoricProcessInstanceEntity historicProcessInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange) void
logHistoricVariableOperation
(String operation, HistoricVariableInstanceEntity historicVariableInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange) void
logJobDefinitionOperation
(String operation, String jobDefinitionId, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange) void
logJobOperation
(String operation, String jobId, String jobDefinitionId, String processInstanceId, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges) void
logJobOperation
(String operation, String jobId, String jobDefinitionId, String processInstanceId, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange) void
logLinkOperation
(String operation, TaskEntity task, PropertyChange propertyChange) void
logMembershipOperation
(String operation, String userId, String groupId, String tenantId) void
logMembershipOperation
(IdentityOperationResult operationResult, String userId, String groupId, String tenantId) void
logMetricsOperation
(String operation, List<PropertyChange> propertyChanges) void
logProcessDefinitionOperation
(String operation, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges) void
logProcessDefinitionOperation
(String operation, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange) void
logProcessInstanceOperation
(String operation, String processInstanceId, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges) void
logProcessInstanceOperation
(String operation, String processInstanceId, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges, String annotation) void
logProcessInstanceOperation
(String operation, List<PropertyChange> propertyChanges) void
logPropertyOperation
(String operation, List<PropertyChange> propertyChanges) void
logSetAnnotationOperation
(String operationId, String tenantId) void
logSetIncidentAnnotationOperation
(String incidentId, String tenantId) void
logTaskMetricsOperation
(String operation, List<PropertyChange> propertyChanges) void
logTaskOperations
(String operation, HistoricTaskInstance historicTask, List<PropertyChange> propertyChanges) void
logTaskOperations
(String operation, TaskEntity task, List<PropertyChange> propertyChanges) void
logTenantOperation
(String operation, String tenantId) void
logTenantOperation
(IdentityOperationResult operationResult, String tenantId) void
logUserOperation
(String operation, String userId) void
logUserOperation
(IdentityOperationResult operationResult, String userId) void
logUserOperations
(UserOperationLogContext context) void
logVariableOperation
(String operation, String executionId, String taskId, PropertyChange propertyChange) void
updateOperationLogAnnotationByOperationId
(String operationId, String annotation) protected boolean
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
addOperation, addOperation, checkHistoryEnabled, isHistoryEnabled, isHistoryLevelFullEnabled, isPerformUpdate, isPerformUpdateOnly
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager
checkAuthorization, close, configureQuery, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCamundaFormDefinitionManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDecisionRequirementsDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricBatchManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricExternalTaskLogManager, getHistoricIdentityLinkManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricReportManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getTaskReportManager, getTenantManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizations
-
Constructor Details
-
UserOperationLogManager
public UserOperationLogManager()
-
-
Method Details
-
findOperationLogById
-
findOperationLogByOperationId
-
findOperationLogEntryCountByQueryCriteria
-
findOperationLogEntriesByQueryCriteria
public List<UserOperationLogEntry> findOperationLogEntriesByQueryCriteria(UserOperationLogQueryImpl query, Page page) -
addRemovalTimeToUserOperationLogByRootProcessInstanceId
public DbOperation addRemovalTimeToUserOperationLogByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime, Integer batchSize) -
addRemovalTimeToUserOperationLogByProcessInstanceId
public DbOperation addRemovalTimeToUserOperationLogByProcessInstanceId(String processInstanceId, Date removalTime, Integer batchSize) -
updateOperationLogAnnotationByOperationId
-
deleteOperationLogEntryById
-
deleteOperationLogByRemovalTime
public DbOperation deleteOperationLogByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize) -
logUserOperations
-
logUserOperation
-
logUserOperation
-
logGroupOperation
-
logGroupOperation
-
logTenantOperation
-
logTenantOperation
-
logMembershipOperation
public void logMembershipOperation(IdentityOperationResult operationResult, String userId, String groupId, String tenantId) -
logMembershipOperation
-
logTaskOperations
public void logTaskOperations(String operation, TaskEntity task, List<PropertyChange> propertyChanges) -
logTaskOperations
public void logTaskOperations(String operation, HistoricTaskInstance historicTask, List<PropertyChange> propertyChanges) -
logLinkOperation
-
logProcessInstanceOperation
-
logProcessInstanceOperation
-
logProcessInstanceOperation
-
logProcessDefinitionOperation
public void logProcessDefinitionOperation(String operation, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange) -
logProcessDefinitionOperation
public void logProcessDefinitionOperation(String operation, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges) -
logCaseInstanceOperation
public void logCaseInstanceOperation(String operation, String caseInstanceId, String tenantId, List<PropertyChange> propertyChanges) -
logCaseDefinitionOperation
public void logCaseDefinitionOperation(String operation, String caseDefinitionId, String tenantId, List<PropertyChange> propertyChanges) -
logDecisionDefinitionOperation
public void logDecisionDefinitionOperation(String operation, String tenantId, List<PropertyChange> propertyChanges) -
logJobOperation
-
logJobOperation
-
logJobDefinitionOperation
public void logJobDefinitionOperation(String operation, String jobDefinitionId, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange) -
logAttachmentOperation
public void logAttachmentOperation(String operation, TaskEntity task, PropertyChange propertyChange) -
logAttachmentOperation
public void logAttachmentOperation(String operation, ExecutionEntity processInstance, PropertyChange propertyChange) -
logVariableOperation
public void logVariableOperation(String operation, String executionId, String taskId, PropertyChange propertyChange) -
logHistoricVariableOperation
public void logHistoricVariableOperation(String operation, HistoricProcessInstanceEntity historicProcessInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange) -
logHistoricVariableOperation
public void logHistoricVariableOperation(String operation, HistoricVariableInstanceEntity historicVariableInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange) -
logDeploymentOperation
public void logDeploymentOperation(String operation, String deploymentId, String tenantId, List<PropertyChange> propertyChanges) -
logBatchOperation
public void logBatchOperation(String operation, String tenantId, List<PropertyChange> propertyChange) -
logBatchOperation
public void logBatchOperation(String operation, String batchId, String tenantId, PropertyChange propertyChange) -
logBatchOperation
public void logBatchOperation(String operation, String batchId, String tenantId, List<PropertyChange> propertyChanges) -
logDecisionInstanceOperation
public void logDecisionInstanceOperation(String operation, String tenantId, List<PropertyChange> propertyChanges) -
logExternalTaskOperation
public void logExternalTaskOperation(String operation, ExternalTaskEntity externalTask, List<PropertyChange> propertyChanges) -
logMetricsOperation
-
logTaskMetricsOperation
-
logFilterOperation
-
logPropertyOperation
-
logSetAnnotationOperation
-
logClearAnnotationOperation
-
logSetIncidentAnnotationOperation
-
logClearIncidentAnnotationOperation
-
logAnnotationOperation
-
logAuthorizationOperation
public void logAuthorizationOperation(String operation, AuthorizationEntity authorization, AuthorizationEntity previousValues) -
getPermissionStringList
-
getResourceName
-
isUserOperationLogEnabled
public boolean isUserOperationLogEnabled() -
isHistoryEventProduced
protected boolean isHistoryEventProduced() -
isUserAuthenticated
protected boolean isUserAuthenticated() -
getAuthenticatedUserId
-
fireUserOperationLog
-
writeUserOperationLogOnlyWithLoggedInUser
protected boolean writeUserOperationLogOnlyWithLoggedInUser() -
isUserOperationLogEnabledOnCommandContext
protected boolean isUserOperationLogEnabledOnCommandContext() -
getOperationType
-
configureQuery
-