public interface FolderHistoryDAO extends PersistentObjectDAO<FolderHistory>
FolderHistory
handling.Modifier and Type | Method and Description |
---|---|
void |
cleanOldHistories(int ttl)
This method deletes all the user history entries oldest than the given
days from now.
|
List<FolderHistory> |
findByFolderId(long folderId)
This method selects all histories of a given folder.
|
List<FolderHistory> |
findByPath(String pathExpression,
Date oldestDate,
Collection<String> events,
Integer max)
This method finds all histories about a path (you can use expression)
|
List<FolderHistory> |
findByUserId(long userId)
This method selects all histories of a given user.
|
List<FolderHistory> |
findByUserIdAndEvent(long userId,
String event)
This method selects all histories of a given user and related to the
given event.
|
List<FolderHistory> |
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<FolderHistory> findByUserId(long userId)
userId
- List<FolderHistory> findByFolderId(long folderId)
folderId
- - ID of the document.List<FolderHistory> findNotNotified(Integer max)
List<FolderHistory> findByUserIdAndEvent(long userId, String event)
userId
- The user identifierevent
- The history eventList<FolderHistory> 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 recordsvoid 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 oldboolean isEnabled()
Copyright © 2008-2014 Logical Objects. All Rights Reserved.