Class AuditRepositoryImpl
- java.lang.Object
-
- org.craftercms.commons.mongo.AbstractJongoRepository<AuditLog>
-
- org.craftercms.social.repositories.system.impl.AuditRepositoryImpl
-
- All Implemented Interfaces:
org.craftercms.commons.mongo.CrudRepository<AuditLog>
,AuditRepository
public class AuditRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<AuditLog> implements AuditRepository
Audit Repository.
-
-
Constructor Summary
Constructors Constructor Description AuditRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteByIds(List<String> ids)
List<AuditLog>
getByDate(String context, Date from, Date to)
List<AuditLog>
getByDate(Date from, Date to)
List<HashMap>
getNotificationDigest(String id, Date from, Date to, List<String> profilesToExclude)
Iterable<AuditLog>
getNotificationsToSend(String threadId, Date from, Date to)
void
setContextPreferencesService(ContextPreferencesService contextPreferencesService)
void
setProfileAggregatorImpl(ProfileAggregator profileAggregator)
-
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
-
-
-
-
Method Detail
-
deleteByIds
public void deleteByIds(List<String> ids) throws SocialException
- Specified by:
deleteByIds
in interfaceAuditRepository
- Throws:
SocialException
-
getByDate
public List<AuditLog> getByDate(String context, Date from, Date to) throws SocialException
- Specified by:
getByDate
in interfaceAuditRepository
- Throws:
SocialException
-
getByDate
public List<AuditLog> getByDate(Date from, Date to) throws SocialException
- Specified by:
getByDate
in interfaceAuditRepository
- Throws:
SocialException
-
getNotificationsToSend
public Iterable<AuditLog> getNotificationsToSend(String threadId, Date from, Date to) throws SocialException
- Specified by:
getNotificationsToSend
in interfaceAuditRepository
- Throws:
SocialException
-
getNotificationDigest
public List<HashMap> getNotificationDigest(String id, Date from, Date to, List<String> profilesToExclude) throws SocialException
- Specified by:
getNotificationDigest
in interfaceAuditRepository
- Throws:
SocialException
-
setProfileAggregatorImpl
public void setProfileAggregatorImpl(ProfileAggregator profileAggregator)
-
setContextPreferencesService
public void setContextPreferencesService(ContextPreferencesService contextPreferencesService)
-
-