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 org.exoplatform.social.core.activity.model.ExoSocialActivity |
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> |
getNPSByMonth(long typeId,
Long startDate,
Long endDate) |
static List<NPSDetailsDTO> |
getNPSByWeek(long typeId) |
static List<NPSDetailsDTO> |
getNPSByWeek(long typeId,
Long startDate,
Long endDate) |
static List<NPSDetailsDTO> |
getRollingAvg(long typeId,
int period) |
static List<NPSDetailsDTO> |
getRollingAvg(long typeId,
int period,
Long startDate,
Long endDate) |
static TimeZone |
getUserTimezone(String username) |
static List<NPSDetailsDTO> |
getWeeklyNPS(long typeId) |
static List<NPSDetailsDTO> |
getWeeklyNPS(long typeId,
Long startDate,
Long endDate) |
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 org.exoplatform.social.core.activity.model.ExoSocialActivity 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, Long startDate, Long endDate)
public static List<NPSDetailsDTO> getNPSByWeek(long typeId, Long startDate, Long endDate)
public static List<NPSDetailsDTO> getNPSByMonth(long typeId, Long startDate, Long endDate)
public static List<NPSDetailsDTO> getRollingAvg(long typeId, int period, Long startDate, Long endDate)
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.