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
public class UserOperationLogManager extends AbstractHistoricManager
Manager forUserOperationLogEntryEventEntity
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
Constructors Constructor Description UserOperationLogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRemovalTimeToUserOperationLogByProcessInstanceId(java.lang.String processInstanceId, java.util.Date removalTime)
void
addRemovalTimeToUserOperationLogByRootProcessInstanceId(java.lang.String rootProcessInstanceId, java.util.Date removalTime)
DbOperation
deleteOperationLogByRemovalTime(java.util.Date removalTime, int minuteFrom, int minuteTo, int batchSize)
void
deleteOperationLogEntryById(java.lang.String entryId)
UserOperationLogEntry
findOperationLogById(java.lang.String entryId)
java.util.List<UserOperationLogEntry>
findOperationLogEntriesByQueryCriteria(UserOperationLogQueryImpl query, Page page)
long
findOperationLogEntryCountByQueryCriteria(UserOperationLogQueryImpl query)
protected void
fireUserOperationLog(UserOperationLogContext context)
protected java.lang.String
getAuthenticatedUserId()
protected java.lang.String
getOperationType(IdentityOperationResult operationResult)
protected java.lang.String
getPermissionStringList(AuthorizationEntity authorization)
protected java.lang.String
getResourceName(int resourceType)
protected boolean
isHistoryEventProduced()
protected boolean
isUserAuthenticated()
boolean
isUserOperationLogEnabled()
protected boolean
isUserOperationLogEnabledOnCommandContext()
protected void
logAnnotationOperation(java.lang.String id, java.lang.String type, java.lang.String idProperty, java.lang.String operationType)
void
logAttachmentOperation(java.lang.String operation, ExecutionEntity processInstance, PropertyChange propertyChange)
void
logAttachmentOperation(java.lang.String operation, TaskEntity task, PropertyChange propertyChange)
void
logAuthorizationOperation(java.lang.String operation, AuthorizationEntity authorization, AuthorizationEntity previousValues)
void
logBatchOperation(java.lang.String operation, java.lang.String batchId, java.util.List<PropertyChange> propertyChanges)
void
logBatchOperation(java.lang.String operation, java.lang.String batchId, PropertyChange propertyChange)
void
logBatchOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChange)
void
logCaseDefinitionOperation(java.lang.String operation, java.lang.String caseDefinitionId, java.util.List<PropertyChange> propertyChanges)
void
logCaseInstanceOperation(java.lang.String operation, java.lang.String caseInstanceId, java.util.List<PropertyChange> propertyChanges)
void
logClearAnnotationOperation(java.lang.String operationId)
void
logClearIncidentAnnotationOperation(java.lang.String incidentId)
void
logDecisionDefinitionOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
void
logDecisionInstanceOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
void
logDeploymentOperation(java.lang.String operation, java.lang.String deploymentId, java.util.List<PropertyChange> propertyChanges)
void
logExternalTaskOperation(java.lang.String operation, ExternalTaskEntity externalTask, java.util.List<PropertyChange> propertyChanges)
void
logFilterOperation(java.lang.String operation, java.lang.String filterId)
void
logGroupOperation(java.lang.String operation, java.lang.String groupId)
void
logGroupOperation(IdentityOperationResult operationResult, java.lang.String groupId)
void
logHistoricVariableOperation(java.lang.String operation, HistoricProcessInstanceEntity historicProcessInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange)
void
logHistoricVariableOperation(java.lang.String operation, HistoricVariableInstanceEntity historicVariableInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange)
void
logJobDefinitionOperation(java.lang.String operation, java.lang.String jobDefinitionId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, PropertyChange propertyChange)
void
logJobOperation(java.lang.String operation, java.lang.String jobId, java.lang.String jobDefinitionId, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges)
void
logJobOperation(java.lang.String operation, java.lang.String jobId, java.lang.String jobDefinitionId, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, PropertyChange propertyChange)
void
logLinkOperation(java.lang.String operation, TaskEntity task, PropertyChange propertyChange)
void
logMembershipOperation(java.lang.String operation, java.lang.String userId, java.lang.String groupId, java.lang.String tenantId)
void
logMembershipOperation(IdentityOperationResult operationResult, java.lang.String userId, java.lang.String groupId, java.lang.String tenantId)
void
logMetricsOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
void
logProcessDefinitionOperation(java.lang.String operation, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges)
void
logProcessDefinitionOperation(java.lang.String operation, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, PropertyChange propertyChange)
void
logProcessInstanceOperation(java.lang.String operation, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges)
void
logProcessInstanceOperation(java.lang.String operation, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges, java.lang.String annotation)
void
logProcessInstanceOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
void
logPropertyOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
void
logSetAnnotationOperation(java.lang.String operationId)
void
logSetIncidentAnnotationOperation(java.lang.String incidentId)
void
logTaskMetricsOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
void
logTaskOperations(java.lang.String operation, HistoricTaskInstance historicTask, java.util.List<PropertyChange> propertyChanges)
void
logTaskOperations(java.lang.String operation, TaskEntity task, java.util.List<PropertyChange> propertyChanges)
void
logTenantOperation(java.lang.String operation, java.lang.String tenantId)
void
logTenantOperation(IdentityOperationResult operationResult, java.lang.String tenantId)
void
logUserOperation(java.lang.String operation, java.lang.String userId)
void
logUserOperation(IdentityOperationResult operationResult, java.lang.String userId)
void
logUserOperations(UserOperationLogContext context)
void
logVariableOperation(java.lang.String operation, java.lang.String executionId, java.lang.String taskId, PropertyChange propertyChange)
void
updateOperationLogAnnotationByOperationId(java.lang.String operationId, java.lang.String annotation)
protected boolean
writeUserOperationLogOnlyWithLoggedInUser()
-
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
checkHistoryEnabled, isHistoryEnabled, isHistoryLevelFullEnabled
-
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
-
-
-
-
Method Detail
-
findOperationLogById
public UserOperationLogEntry findOperationLogById(java.lang.String entryId)
-
findOperationLogEntryCountByQueryCriteria
public long findOperationLogEntryCountByQueryCriteria(UserOperationLogQueryImpl query)
-
findOperationLogEntriesByQueryCriteria
public java.util.List<UserOperationLogEntry> findOperationLogEntriesByQueryCriteria(UserOperationLogQueryImpl query, Page page)
-
addRemovalTimeToUserOperationLogByRootProcessInstanceId
public void addRemovalTimeToUserOperationLogByRootProcessInstanceId(java.lang.String rootProcessInstanceId, java.util.Date removalTime)
-
addRemovalTimeToUserOperationLogByProcessInstanceId
public void addRemovalTimeToUserOperationLogByProcessInstanceId(java.lang.String processInstanceId, java.util.Date removalTime)
-
updateOperationLogAnnotationByOperationId
public void updateOperationLogAnnotationByOperationId(java.lang.String operationId, java.lang.String annotation)
-
deleteOperationLogEntryById
public void deleteOperationLogEntryById(java.lang.String entryId)
-
deleteOperationLogByRemovalTime
public DbOperation deleteOperationLogByRemovalTime(java.util.Date removalTime, int minuteFrom, int minuteTo, int batchSize)
-
logUserOperations
public void logUserOperations(UserOperationLogContext context)
-
logUserOperation
public void logUserOperation(IdentityOperationResult operationResult, java.lang.String userId)
-
logUserOperation
public void logUserOperation(java.lang.String operation, java.lang.String userId)
-
logGroupOperation
public void logGroupOperation(IdentityOperationResult operationResult, java.lang.String groupId)
-
logGroupOperation
public void logGroupOperation(java.lang.String operation, java.lang.String groupId)
-
logTenantOperation
public void logTenantOperation(IdentityOperationResult operationResult, java.lang.String tenantId)
-
logTenantOperation
public void logTenantOperation(java.lang.String operation, java.lang.String tenantId)
-
logMembershipOperation
public void logMembershipOperation(IdentityOperationResult operationResult, java.lang.String userId, java.lang.String groupId, java.lang.String tenantId)
-
logMembershipOperation
public void logMembershipOperation(java.lang.String operation, java.lang.String userId, java.lang.String groupId, java.lang.String tenantId)
-
logTaskOperations
public void logTaskOperations(java.lang.String operation, TaskEntity task, java.util.List<PropertyChange> propertyChanges)
-
logTaskOperations
public void logTaskOperations(java.lang.String operation, HistoricTaskInstance historicTask, java.util.List<PropertyChange> propertyChanges)
-
logLinkOperation
public void logLinkOperation(java.lang.String operation, TaskEntity task, PropertyChange propertyChange)
-
logProcessInstanceOperation
public void logProcessInstanceOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
-
logProcessInstanceOperation
public void logProcessInstanceOperation(java.lang.String operation, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges)
-
logProcessInstanceOperation
public void logProcessInstanceOperation(java.lang.String operation, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges, java.lang.String annotation)
-
logProcessDefinitionOperation
public void logProcessDefinitionOperation(java.lang.String operation, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, PropertyChange propertyChange)
-
logProcessDefinitionOperation
public void logProcessDefinitionOperation(java.lang.String operation, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges)
-
logCaseInstanceOperation
public void logCaseInstanceOperation(java.lang.String operation, java.lang.String caseInstanceId, java.util.List<PropertyChange> propertyChanges)
-
logCaseDefinitionOperation
public void logCaseDefinitionOperation(java.lang.String operation, java.lang.String caseDefinitionId, java.util.List<PropertyChange> propertyChanges)
-
logDecisionDefinitionOperation
public void logDecisionDefinitionOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
-
logJobOperation
public void logJobOperation(java.lang.String operation, java.lang.String jobId, java.lang.String jobDefinitionId, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, PropertyChange propertyChange)
-
logJobOperation
public void logJobOperation(java.lang.String operation, java.lang.String jobId, java.lang.String jobDefinitionId, java.lang.String processInstanceId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, java.util.List<PropertyChange> propertyChanges)
-
logJobDefinitionOperation
public void logJobDefinitionOperation(java.lang.String operation, java.lang.String jobDefinitionId, java.lang.String processDefinitionId, java.lang.String processDefinitionKey, PropertyChange propertyChange)
-
logAttachmentOperation
public void logAttachmentOperation(java.lang.String operation, TaskEntity task, PropertyChange propertyChange)
-
logAttachmentOperation
public void logAttachmentOperation(java.lang.String operation, ExecutionEntity processInstance, PropertyChange propertyChange)
-
logVariableOperation
public void logVariableOperation(java.lang.String operation, java.lang.String executionId, java.lang.String taskId, PropertyChange propertyChange)
-
logHistoricVariableOperation
public void logHistoricVariableOperation(java.lang.String operation, HistoricProcessInstanceEntity historicProcessInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange)
-
logHistoricVariableOperation
public void logHistoricVariableOperation(java.lang.String operation, HistoricVariableInstanceEntity historicVariableInstance, ResourceDefinitionEntity<?> definition, PropertyChange propertyChange)
-
logDeploymentOperation
public void logDeploymentOperation(java.lang.String operation, java.lang.String deploymentId, java.util.List<PropertyChange> propertyChanges)
-
logBatchOperation
public void logBatchOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChange)
-
logBatchOperation
public void logBatchOperation(java.lang.String operation, java.lang.String batchId, PropertyChange propertyChange)
-
logBatchOperation
public void logBatchOperation(java.lang.String operation, java.lang.String batchId, java.util.List<PropertyChange> propertyChanges)
-
logDecisionInstanceOperation
public void logDecisionInstanceOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
-
logExternalTaskOperation
public void logExternalTaskOperation(java.lang.String operation, ExternalTaskEntity externalTask, java.util.List<PropertyChange> propertyChanges)
-
logMetricsOperation
public void logMetricsOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
-
logTaskMetricsOperation
public void logTaskMetricsOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
-
logFilterOperation
public void logFilterOperation(java.lang.String operation, java.lang.String filterId)
-
logPropertyOperation
public void logPropertyOperation(java.lang.String operation, java.util.List<PropertyChange> propertyChanges)
-
logSetAnnotationOperation
public void logSetAnnotationOperation(java.lang.String operationId)
-
logClearAnnotationOperation
public void logClearAnnotationOperation(java.lang.String operationId)
-
logSetIncidentAnnotationOperation
public void logSetIncidentAnnotationOperation(java.lang.String incidentId)
-
logClearIncidentAnnotationOperation
public void logClearIncidentAnnotationOperation(java.lang.String incidentId)
-
logAnnotationOperation
protected void logAnnotationOperation(java.lang.String id, java.lang.String type, java.lang.String idProperty, java.lang.String operationType)
-
logAuthorizationOperation
public void logAuthorizationOperation(java.lang.String operation, AuthorizationEntity authorization, AuthorizationEntity previousValues)
-
getPermissionStringList
protected java.lang.String getPermissionStringList(AuthorizationEntity authorization)
-
getResourceName
protected java.lang.String getResourceName(int resourceType)
-
isUserOperationLogEnabled
public boolean isUserOperationLogEnabled()
-
isHistoryEventProduced
protected boolean isHistoryEventProduced()
-
isUserAuthenticated
protected boolean isUserAuthenticated()
-
getAuthenticatedUserId
protected java.lang.String getAuthenticatedUserId()
-
fireUserOperationLog
protected void fireUserOperationLog(UserOperationLogContext context)
-
writeUserOperationLogOnlyWithLoggedInUser
protected boolean writeUserOperationLogOnlyWithLoggedInUser()
-
isUserOperationLogEnabledOnCommandContext
protected boolean isUserOperationLogEnabledOnCommandContext()
-
getOperationType
protected java.lang.String getOperationType(IdentityOperationResult operationResult)
-
-