public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static NPSDetailsDTO |
calculateNpsByDate(long typeId,
long date) |
static NPSDetailsDTO |
calculateNpsByPeriod(long typeId,
long from,
long to) |
static void |
createActivity(ScoreEntryDTO score) |
static int |
getDiffinDays(Calendar startCal,
Calendar stopCal) |
static Calendar |
getFirstLoginDate(String userId)
Get first login
|
static List<NPSDetailsDTO> |
getNPSByMonth(long typeId) |
static List<NPSDetailsDTO> |
getNPSByWeek(long typeId) |
static List<NPSDetailsDTO> |
getRollingAvg(long typeId,
int period) |
static List<NPSDetailsDTO> |
getWeeklyNPS(long typeId) |
static List<NPSDetailsDTO> |
getWeeklyNPSbyDates(long typeId,
long fromDate,
long toDate) |
static String |
npsToString(NPSDetailsDTO nps) |
public static Calendar getFirstLoginDate(String userId) throws Exception
Exceptionpublic static int getDiffinDays(Calendar startCal, Calendar stopCal) throws Exception
Exceptionpublic static void createActivity(ScoreEntryDTO score)
public static NPSDetailsDTO calculateNpsByDate(long typeId, long date)
public static NPSDetailsDTO calculateNpsByPeriod(long typeId, long from, long to)
public static List<NPSDetailsDTO> getWeeklyNPSbyDates(long typeId, long fromDate, long toDate)
public static List<NPSDetailsDTO> getWeeklyNPS(long typeId)
public static List<NPSDetailsDTO> getNPSByWeek(long typeId)
public static List<NPSDetailsDTO> getNPSByMonth(long typeId)
public static List<NPSDetailsDTO> getRollingAvg(long typeId, int period)
public static String npsToString(NPSDetailsDTO nps)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.