Package org.exoplatform.kudos.storage
Class KudosStorage
java.lang.Object
org.exoplatform.kudos.storage.KudosStorage
- All Implemented Interfaces:
org.picocontainer.Startable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountKudosByEntity(String entityType, String entityId) longcountKudosByEntityAndSender(String entityType, String entityId, String senderIdentityId) longcountKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, String receiverType, String receiverId) countKudosByPeriodAndReceivers(KudosPeriod kudosPeriod, List<Long> receiversId) longcountKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderIdentityId) longcountKudosOfActivity(Long activityId) createKudos(Kudos kudos) voiddeleteKudosById(long kudosId) getKudoById(long id) getKudosByActivityId(Long activityId) getKudosByEntity(String entityType, String entityId, int limit) getKudosByPeriod(KudosPeriod kudosPeriod, int limit) getKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, String receiverType, String receiverId, int limit) getKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderIdentityId, int limit) getKudosListOfActivity(Long activityId) voidsaveKudosActivityId(long kudosId, long activityId) voidstart()Deprecated, for removal: This API element is subject to removal in a future version.kept to be able to use this service as Kernel Service in Unit Tests To delete once the Unit Tests migrated with Spring and JUnit 5updateKudos(Kudos kudos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.picocontainer.Startable
stop
-
Constructor Details
-
KudosStorage
public KudosStorage()
-
-
Method Details
-
start
Deprecated, for removal: This API element is subject to removal in a future version.kept to be able to use this service as Kernel Service in Unit Tests To delete once the Unit Tests migrated with Spring and JUnit 5- Specified by:
startin interfaceorg.picocontainer.Startable
-
getKudoById
-
createKudos
-
deleteKudosById
public void deleteKudosById(long kudosId) -
saveKudosActivityId
public void saveKudosActivityId(long kudosId, long activityId) -
getKudosByPeriod
-
getKudosByEntity
-
countKudosByEntity
-
countKudosByEntityAndSender
-
countKudosByPeriodAndReceiver
public long countKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, String receiverType, String receiverId) -
countKudosByPeriodAndReceivers
-
getKudosByPeriodAndReceiver
public List<Kudos> getKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, String receiverType, String receiverId, int limit) -
getKudosByPeriodAndSender
public List<Kudos> getKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderIdentityId, int limit) -
countKudosByPeriodAndSender
-
getKudosByActivityId
-
getKudosListOfActivity
-
countKudosOfActivity
-
updateKudos
-