public class NpsService extends Object
| Constructor and Description |
|---|
NpsService() |
| Modifier and Type | Method and Description |
|---|---|
long |
getDetractorsCount(long typeId) |
long |
getDetractorsCountByDate(long typeId,
long toDate) |
long |
getDetractorsCountByPeriod(long typeId,
long fromDate,
long toDate) |
ScoreEntryDTO |
getFirstScoreEntries(long typeId) |
long |
getPromotersCount(long typeId) |
long |
getPromotersCountByDate(long typeId,
long toDate) |
long |
getPromotersCountByPeriod(long typeId,
long fromDate,
long toDate) |
long |
getScoreCount(long typeId,
boolean enabled) |
long |
getScoreCountByDate(long typeId,
long toDate) |
long |
getScoreCountByPeriod(long typeId,
long fromDate,
long toDate) |
List<ScoreEntryDTO> |
getScoreEntriesByUserId(long typeId,
String userId,
int offset,
int limit) |
ScoreEntryDTO |
getScoreEntry(long id) |
List<ScoreEntryDTO> |
getScores(long typeId,
int offset,
int limit) |
void |
remove(ScoreEntryDTO entity) |
Boolean |
save(ScoreEntryDTO entity,
boolean newEntry) |
public Boolean save(ScoreEntryDTO entity, boolean newEntry)
public void remove(ScoreEntryDTO entity)
public List<ScoreEntryDTO> getScores(long typeId, int offset, int limit)
public ScoreEntryDTO getFirstScoreEntries(long typeId)
public ScoreEntryDTO getScoreEntry(long id)
public List<ScoreEntryDTO> getScoreEntriesByUserId(long typeId, String userId, int offset, int limit)
public long getPromotersCount(long typeId)
public long getDetractorsCount(long typeId)
public long getScoreCount(long typeId,
boolean enabled)
public long getPromotersCountByDate(long typeId,
long toDate)
public long getDetractorsCountByDate(long typeId,
long toDate)
public long getScoreCountByDate(long typeId,
long toDate)
public long getPromotersCountByPeriod(long typeId,
long fromDate,
long toDate)
public long getDetractorsCountByPeriod(long typeId,
long fromDate,
long toDate)
public long getScoreCountByPeriod(long typeId,
long fromDate,
long toDate)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.