Class AnalyticsUtils


  • public class AnalyticsUtils
    extends Object
    • Method Detail

      • getYearMonthDayHour

        public static final String getYearMonthDayHour​(long timestamp)
      • getYearMonthDay

        public static final String getYearMonthDay​(long timestamp)
      • getYearMonth

        public static final String getYearMonth​(long timestamp)
      • getYearWeek

        public static final String getYearWeek​(long timestamp)
      • toJsonString

        public static final String toJsonString​(Object object)
      • compueLabel

        public static final String compueLabel​(String chartKey,
                                               String chartValue)
      • fromJsonString

        public static final <T> T fromJsonString​(String value,
                                                 Class<T> resultClass)
      • timeToMilliseconds

        public static long timeToMilliseconds​(LocalDateTime time)
      • fixJSONStringFormat

        public static final String fixJSONStringFormat​(String jsonString)
      • collectionToJSONString

        public static final String collectionToJSONString​(String value)
      • getJSONObject

        public static final org.json.JSONObject getJSONObject​(org.json.JSONObject jsonObject,
                                                              int i,
                                                              String... keys)
      • addStatisticData

        public static final void addStatisticData​(StatisticData statisticData)
      • getUserIdentityId

        public static long getUserIdentityId​(String username)
      • getSpaceByPrettyName

        public static org.exoplatform.social.core.space.model.Space getSpaceByPrettyName​(String prettyName)
      • getSpaceById

        public static org.exoplatform.social.core.space.model.Space getSpaceById​(String spaceId)
      • getIdentity

        public static org.exoplatform.social.core.identity.model.Identity getIdentity​(String identityId)
      • getIdentityId

        public static long getIdentityId​(String identityId)
      • getIdentity

        public static org.exoplatform.social.core.identity.model.Identity getIdentity​(String providerId,
                                                                                      String remoteId)
      • getIdentityId

        public static long getIdentityId​(String providerId,
                                         String remoteId)
      • getUserIdentityId

        public static long getUserIdentityId​(org.exoplatform.services.security.ConversationState currentState)
      • getCurrentUserIdentityId

        public static long getCurrentUserIdentityId()
      • isUnkownUser

        public static boolean isUnkownUser​(String username)
      • getUsername

        public static String getUsername​(org.exoplatform.services.security.ConversationState currentState)
      • formatDate

        public static String formatDate​(long timeInMilliseconds)
      • addSpaceStatistics

        public static void addSpaceStatistics​(StatisticData statisticData,
                                              org.exoplatform.social.core.space.model.Space space)