public class KudosService extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
KudosService(KudosStorage kudosStorage,
org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
long |
countKudosByMonthAndSender(YearMonth yearMonth,
String senderId) |
AccountSettings |
getAccountSettings(String username) |
List<Kudos> |
getAllKudosByEntity(String entityType,
String entityId) |
List<Kudos> |
getAllKudosByMonth(YearMonth yearMonth) |
List<Kudos> |
getAllKudosByMonthAndEntityType(YearMonth yearMonth,
String entityType) |
List<Kudos> |
getAllKudosByMonthAndSender(YearMonth yearMonth,
String identityId) |
GlobalSettings |
getGlobalSettings() |
List<Kudos> |
getKudosByMonthAndReceiver(YearMonth yearMonth,
String receiverType,
String receiverId) |
void |
saveGlobalSettings(GlobalSettings settings) |
void |
sendKudos(String senderId,
Kudos kudos) |
void |
start() |
void |
stop() |
public KudosService(KudosStorage kudosStorage, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.container.xml.InitParams params)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic AccountSettings getAccountSettings(String username)
username - public List<Kudos> getAllKudosByMonthAndEntityType(YearMonth yearMonth, String entityType)
public List<Kudos> getAllKudosByMonthAndSender(YearMonth yearMonth, String identityId)
public List<Kudos> getKudosByMonthAndReceiver(YearMonth yearMonth, String receiverType, String receiverId)
public long countKudosByMonthAndSender(YearMonth yearMonth, String senderId)
public GlobalSettings getGlobalSettings()
public void saveGlobalSettings(GlobalSettings settings)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.