Class TicketRepositoryImpl
- java.lang.Object
-
- org.craftercms.commons.mongo.AbstractJongoRepository<Ticket>
-
- org.craftercms.profile.repositories.impl.TicketRepositoryImpl
-
- All Implemented Interfaces:
org.craftercms.commons.mongo.CrudRepository<Ticket>
,TicketRepository
public class TicketRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<Ticket> implements TicketRepository
Default implementation ofTicketRepository
.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_REMOVE_WITH_LAST_REQUEST_TIME_OLDER_THAN_QUERY
-
Constructor Summary
Constructors Constructor Description TicketRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeWithLastRequestTimeOlderThan(long seconds)
Removes tickets with last request time older than the specified number of seconds.-
Methods inherited from class org.craftercms.commons.mongo.AbstractJongoRepository
count, count, count, createSortQuery, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getCollection, getFileInfo, getFileInfo, getQueryFor, init, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, returnList, returnSimple, save, save, saveFile, saveFile, setJongo, setQueries, update, update, update, update, updateFile, updateFile, updateFile, validateObject, validateObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.craftercms.commons.mongo.CrudRepository
count, count, count, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getFileInfo, getFileInfo, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, save, save, saveFile, saveFile, update, update, update, update, updateFile, updateFile, updateFile
-
-
-
-
Field Detail
-
KEY_REMOVE_WITH_LAST_REQUEST_TIME_OLDER_THAN_QUERY
public static final String KEY_REMOVE_WITH_LAST_REQUEST_TIME_OLDER_THAN_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeWithLastRequestTimeOlderThan
public void removeWithLastRequestTimeOlderThan(long seconds) throws org.craftercms.commons.mongo.MongoDataException
Description copied from interface:TicketRepository
Removes tickets with last request time older than the specified number of seconds.- Specified by:
removeWithLastRequestTimeOlderThan
in interfaceTicketRepository
- Parameters:
seconds
- the number of seconds- Throws:
org.craftercms.commons.mongo.MongoDataException
-
-