public interface UserHistoryDAO extends PersistentObjectDAO<UserHistory>
UserHistory 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. | 
| void | createUserHistory(User user,
                 String eventType,
                 String comment,
                 String sessionId)Creates an user history entry | 
| List<UserHistory> | findByUserId(long userId)This method selects all histories of a given user. | 
| 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, storeList<UserHistory> findByUserId(long userId)
userId - void createUserHistory(User user, String eventType, String comment, String sessionId)
user - The user that made the operationeventType - The event typecomment - The comment provided by the usersessionId - The user session idvoid 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.