Class AttachmentManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.AbstractManager
-
- org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
-
- org.camunda.bpm.engine.impl.persistence.entity.AttachmentManager
-
- All Implemented Interfaces:
Session
public class AttachmentManager extends AbstractHistoricManager
- Author:
- Tom Baeyens
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
historyLevel, isHistoryEnabled, isHistoryLevelFullEnabled, LOG
-
-
Constructor Summary
Constructors Constructor Description AttachmentManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRemovalTimeToAttachmentsByProcessInstanceId(String processInstanceId, Date removalTime)
void
addRemovalTimeToAttachmentsByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime)
protected void
deleteAttachments(Map<String,Object> parameters)
void
deleteAttachmentsByProcessInstanceIds(List<String> processInstanceIds)
DbOperation
deleteAttachmentsByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize)
void
deleteAttachmentsByTaskCaseInstanceIds(List<String> caseInstanceIds)
void
deleteAttachmentsByTaskId(String taskId)
void
deleteAttachmentsByTaskProcessInstanceIds(List<String> processInstanceIds)
Attachment
findAttachmentByTaskIdAndAttachmentId(String taskId, String attachmentId)
List<Attachment>
findAttachmentsByProcessInstanceId(String processInstanceId)
List<Attachment>
findAttachmentsByTaskId(String taskId)
-
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
-
findAttachmentsByProcessInstanceId
public List<Attachment> findAttachmentsByProcessInstanceId(String processInstanceId)
-
findAttachmentsByTaskId
public List<Attachment> findAttachmentsByTaskId(String taskId)
-
addRemovalTimeToAttachmentsByRootProcessInstanceId
public void addRemovalTimeToAttachmentsByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime)
-
addRemovalTimeToAttachmentsByProcessInstanceId
public void addRemovalTimeToAttachmentsByProcessInstanceId(String processInstanceId, Date removalTime)
-
deleteAttachmentsByTaskId
public void deleteAttachmentsByTaskId(String taskId)
-
deleteAttachmentsByProcessInstanceIds
public void deleteAttachmentsByProcessInstanceIds(List<String> processInstanceIds)
-
deleteAttachmentsByTaskProcessInstanceIds
public void deleteAttachmentsByTaskProcessInstanceIds(List<String> processInstanceIds)
-
deleteAttachmentsByTaskCaseInstanceIds
public void deleteAttachmentsByTaskCaseInstanceIds(List<String> caseInstanceIds)
-
findAttachmentByTaskIdAndAttachmentId
public Attachment findAttachmentByTaskIdAndAttachmentId(String taskId, String attachmentId)
-
deleteAttachmentsByRemovalTime
public DbOperation deleteAttachmentsByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize)
-
-