Class KudosStorage

java.lang.Object
org.exoplatform.kudos.storage.KudosStorage
All Implemented Interfaces:
org.picocontainer.Startable

@Service public class KudosStorage extends Object implements org.picocontainer.Startable
  • Constructor Details

    • KudosStorage

      public KudosStorage()
  • Method Details

    • start

      @Deprecated(forRemoval=true, since="1.6.0") public void 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:
      start in interface org.picocontainer.Startable
    • getKudoById

      public Kudos getKudoById(long id)
    • createKudos

      public Kudos createKudos(Kudos kudos)
    • deleteKudosById

      public void deleteKudosById(long kudosId)
    • saveKudosActivityId

      public void saveKudosActivityId(long kudosId, long activityId)
    • getKudosByPeriod

      public List<Kudos> getKudosByPeriod(KudosPeriod kudosPeriod, int limit)
    • getKudosByEntity

      public List<Kudos> getKudosByEntity(String entityType, String entityId, int limit)
    • countKudosByEntity

      public long countKudosByEntity(String entityType, String entityId)
    • countKudosByEntityAndSender

      public long countKudosByEntityAndSender(String entityType, String entityId, String senderIdentityId)
    • countKudosByPeriodAndReceiver

      public long countKudosByPeriodAndReceiver(KudosPeriod kudosPeriod, String receiverType, String receiverId)
    • countKudosByPeriodAndReceivers

      public Map<Long,Long> countKudosByPeriodAndReceivers(KudosPeriod kudosPeriod, List<Long> receiversId)
    • 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

      public long countKudosByPeriodAndSender(KudosPeriod kudosPeriod, long senderIdentityId)
    • getKudosByActivityId

      public Kudos getKudosByActivityId(Long activityId)
    • getKudosListOfActivity

      public List<Kudos> getKudosListOfActivity(Long activityId)
    • countKudosOfActivity

      public long countKudosOfActivity(Long activityId)
    • updateKudos

      public Kudos updateKudos(Kudos kudos)