public interface HistoryDAO extends PersistentObjectDAO<History>
History
handling.Modifier and Type | Method and Description |
---|---|
void |
cleanOldHistories(int ttl)
This method deletes all the document history entries oldest than the
given days from now.
|
List<History> |
findByDocId(long docId)
This method selects all histories of a given document.
|
List<History> |
findByFolderId(long folderId)
This method selects all histories of a given folder.
|
List<History> |
findByPath(String pathExpression,
Date oldestDate,
Collection<String> events,
Integer max)
This method finds all histories about a path (you can use expression)
|
List<History> |
findByUserId(long userId)
This method selects all histories of a given user.
|
List<History> |
findByUserIdAndEvent(long userId,
String event,
String sessionId)
This method selects all histories of a given user and related to the
given event.
|
List<History> |
findNotNotified(Integer max)
This method selects all histories not notified yet.
|
boolean |
isEnabled()
Checks if the histories recording is enabled
|
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
List<History> findByDocId(long docId)
docId
- - ID of the document.List<History> findByUserId(long userId)
userId
- List<History> findByFolderId(long folderId)
folderId
- - ID of the document.List<History> findByPath(String pathExpression, Date oldestDate, Collection<String> events, Integer max)
pathExpression
- The path expression (like /Default/acme%)oldestDate
- The older date for the retrieved historiesmax
- Optional maximum number of recordsList<History> findNotNotified(Integer max)
void cleanOldHistories(int ttl)
ttl
is 0 or -1, the cancellation is
not made.ttl
- The maximum number of days over which the history is
considered oldList<History> findByUserIdAndEvent(long userId, String event, String sessionId)
userId
- The user identifiersessionId
- The session identifier (optional)event
- The string represtation of history event (optional)boolean isEnabled()
Copyright © 2008-2014 Logical Objects. All Rights Reserved.