Package com.logicaldoc.workflow.history
Interface WorkflowHistoryDAO
- All Superinterfaces:
- com.logicaldoc.core.PersistentObjectDAO<WorkflowHistory>
- All Known Implementing Classes:
- HibernateWorkflowHistoryDAO
public interface WorkflowHistoryDAO
extends com.logicaldoc.core.PersistentObjectDAO<WorkflowHistory>
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanOldHistories(int ttl) This method deletes all the workflow history entries oldest than the given days from now.voiddeleteByInstanceid(String instanceId) Deletes the histories of the specified instance.findByInstanceId(String instanceId, WorkflowEvent event) This method selects all histories of a given instanceId.findByTemplateIdAndInstanceId(Long templateId, String instanceId, WorkflowEvent event) This method selects all histories of a template with the given templateId and of a instance with the given instanceId.findByUserIdAndInstanceId(Long userId, String instanceId, WorkflowEvent event) This method selects all histories of a template with the given templateId and of a instance with the given instanceId.Get all instances identifiersGet all template identifiersMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
- 
Method Details- 
findByTemplateIdAndInstanceIdList<WorkflowHistory> findByTemplateIdAndInstanceId(Long templateId, String instanceId, WorkflowEvent event) throws com.logicaldoc.core.PersistenceException This method selects all histories of a template with the given templateId and of a instance with the given instanceId.- Parameters:
- templateId- The Workflow Persistence Template Id
- instanceId- The Workflow Instance Id
- event- Optional selector of the event
- Returns:
- list of histories ordered by last modified date
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
findByUserIdAndInstanceIdList<WorkflowHistory> findByUserIdAndInstanceId(Long userId, String instanceId, WorkflowEvent event) throws com.logicaldoc.core.PersistenceException This method selects all histories of a template with the given templateId and of a instance with the given instanceId.- Parameters:
- userId- The user that interacted with the WF
- instanceId- The Workflow Instance Id
- event- Optional selector of the event
- Returns:
- list of histories ordered by last modified date
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
findByInstanceIdList<WorkflowHistory> findByInstanceId(String instanceId, WorkflowEvent event) throws com.logicaldoc.core.PersistenceException This method selects all histories of a given instanceId.- Parameters:
- instanceId- The Workflow Instance Id
- event- Optional selector of the event
- Returns:
- list of histories ordered by last modified date
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
deleteByInstanceidDeletes the histories of the specified instance.- Parameters:
- instanceId- identifier of the workflow instance
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
findInstanceIdsGet all instances identifiers- Returns:
- list of identifiers
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
findTemplateIdsGet all template identifiers- Returns:
- list of identifiers
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
cleanOldHistoriesvoid cleanOldHistories(int ttl) throws com.logicaldoc.core.PersistenceException This method deletes all the workflow history entries oldest than the given days from now. Ifttlis 0 or -1, the cancellation is not made.- Parameters:
- ttl- The maximum number of days over which the history is considered old
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
 
-