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
-
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(String entryId)
-
findOperationLogByOperationId
public UserOperationLogEntry findOperationLogByOperationId(String operationId)
-
findOperationLogEntryCountByQueryCriteria
public long findOperationLogEntryCountByQueryCriteria(UserOperationLogQueryImpl query)
-
findOperationLogEntriesByQueryCriteria
public List<UserOperationLogEntry> findOperationLogEntriesByQueryCriteria(UserOperationLogQueryImpl query, Page page)
-
addRemovalTimeToUserOperationLogByRootProcessInstanceId
public void addRemovalTimeToUserOperationLogByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime)
-
addRemovalTimeToUserOperationLogByProcessInstanceId
public void addRemovalTimeToUserOperationLogByProcessInstanceId(String processInstanceId, Date removalTime)
-
updateOperationLogAnnotationByOperationId
public void updateOperationLogAnnotationByOperationId(String operationId, String annotation)
-
deleteOperationLogEntryById
public void deleteOperationLogEntryById(String entryId)
-
deleteOperationLogByRemovalTime
public DbOperation deleteOperationLogByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize)
-
logUserOperations
public void logUserOperations(UserOperationLogContext context)
-
logUserOperation
public void logUserOperation(IdentityOperationResult operationResult, String userId)
-
logGroupOperation
public void logGroupOperation(IdentityOperationResult operationResult, String groupId)
-
logTenantOperation
public void logTenantOperation(IdentityOperationResult operationResult, String tenantId)
-
logMembershipOperation
public void logMembershipOperation(IdentityOperationResult operationResult, String userId, String groupId, String tenantId)
-
logMembershipOperation
public void logMembershipOperation(String operation, String userId, String groupId, String tenantId)
-
logTaskOperations
public void logTaskOperations(String operation, TaskEntity task, List<PropertyChange> propertyChanges)
-
logTaskOperations
public void logTaskOperations(String operation, HistoricTaskInstance historicTask, List<PropertyChange> propertyChanges)
-
logLinkOperation
public void logLinkOperation(String operation, TaskEntity task, PropertyChange propertyChange)
-
logProcessInstanceOperation
public void logProcessInstanceOperation(String operation, List<PropertyChange> propertyChanges)
-
logProcessInstanceOperation
public void logProcessInstanceOperation(String operation, String processInstanceId, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges)
-
logProcessInstanceOperation
public void logProcessInstanceOperation(String operation, String processInstanceId, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges, String annotation)
-
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
public void logJobOperation(String operation, String jobId, String jobDefinitionId, String processInstanceId, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange)
-
logJobOperation
public void logJobOperation(String operation, String jobId, String jobDefinitionId, String processInstanceId, String processDefinitionId, String processDefinitionKey, List<PropertyChange> propertyChanges)
-
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
public void logMetricsOperation(String operation, List<PropertyChange> propertyChanges)
-
logTaskMetricsOperation
public void logTaskMetricsOperation(String operation, List<PropertyChange> propertyChanges)
-
logPropertyOperation
public void logPropertyOperation(String operation, List<PropertyChange> propertyChanges)
-
logSetAnnotationOperation
public void logSetAnnotationOperation(String operationId, String tenantId)
-
logClearAnnotationOperation
public void logClearAnnotationOperation(String operationId, String tenantId)
-
logSetIncidentAnnotationOperation
public void logSetIncidentAnnotationOperation(String incidentId, String tenantId)
-
logClearIncidentAnnotationOperation
public void logClearIncidentAnnotationOperation(String incidentId, String tenantId)
-
logAnnotationOperation
protected void logAnnotationOperation(String id, String type, String idProperty, String operationType, String tenantId)
-
logAuthorizationOperation
public void logAuthorizationOperation(String operation, AuthorizationEntity authorization, AuthorizationEntity previousValues)
-
getPermissionStringList
protected String getPermissionStringList(AuthorizationEntity authorization)
-
getResourceName
protected String getResourceName(int resourceType)
-
isUserOperationLogEnabled
public boolean isUserOperationLogEnabled()
-
isHistoryEventProduced
protected boolean isHistoryEventProduced()
-
isUserAuthenticated
protected boolean isUserAuthenticated()
-
getAuthenticatedUserId
protected String getAuthenticatedUserId()
-
fireUserOperationLog
protected void fireUserOperationLog(UserOperationLogContext context)
-
writeUserOperationLogOnlyWithLoggedInUser
protected boolean writeUserOperationLogOnlyWithLoggedInUser()
-
isUserOperationLogEnabledOnCommandContext
protected boolean isUserOperationLogEnabledOnCommandContext()
-
getOperationType
protected String getOperationType(IdentityOperationResult operationResult)
-
configureQuery
protected void configureQuery(UserOperationLogQueryImpl query)
-
-