Class Utils


  • public class Utils
    extends Object
    • Method Detail

      • getSpace

        public static org.exoplatform.social.core.space.model.Space getSpace​(String id)
      • getCurrentUserId

        public static final String getCurrentUserId()
      • getNotificationReceiversUsers

        public static List<String> getNotificationReceiversUsers​(String receiverType,
                                                                 String receiverId,
                                                                 String senderId)
      • getReceiverIdentityProviderType

        public static String getReceiverIdentityProviderType​(String receiverType)
      • getReceiverType

        public static String getReceiverType​(String receiverType)
      • timeFromSeconds

        public static LocalDateTime timeFromSeconds​(long createdDate)
      • timeToSeconds

        public static long timeToSeconds​(LocalDateTime time)
      • getIdentityByTypeAndId

        public static org.exoplatform.social.core.identity.model.Identity getIdentityByTypeAndId​(String type,
                                                                                                 String name)
      • computeKudosActivityProperties

        public static void computeKudosActivityProperties​(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
                                                          Kudos kudos)
      • getActivityId

        public static long getActivityId​(String id)