org.exoplatform.social.service.rest
Class Util

java.lang.Object
  extended by org.exoplatform.social.service.rest.Util

public final class Util
extends Object

Util.java: utility class for rest
.

Since:
Jan 5, 2009
Author:
hoatle

Method Summary
static String buildAbsoluteAvatarURL(org.exoplatform.social.core.identity.model.Identity resultIdentity)
          Build absolute AvatarURL from in IndentityRestOut if avatar == null or "" use default avatar base on Identity's type
static void buildAbsoluteAvatarURL(IdentityRestOut resultIdentity)
          Build absolute AvatarURL from in IndentityRestOut if avatar == null or "" use default avatar base on Identity's type
static String convertTimestampToTimeString(long timestamp)
          Converts a timestamp string to time string by the pattern: EEE MMM d HH:mm:ss Z yyyy.
static org.exoplatform.social.core.manager.ActivityManager getActivityManager()
          Deprecated. Use getActivityManager(String) instead. Will be removed by 1.3.x
static org.exoplatform.social.core.manager.ActivityManager getActivityManager(String portalContainerName)
          Gets ActivityManager with specified portal container name.
static org.exoplatform.social.core.identity.model.Identity getAuthenticatedUserIdentity(String portalContainerName)
          Gets UserIdentity of authenticated user.
static String getBaseUrl()
          Gets base url (host + post) from a context uriInfo.
static String getDecodeQueryURL(String url)
          Decode query parameters of string URL Example: Input: http://google.com?%3Cscript%3E Output: http://google.com?

Copyright © 2003–2014 eXo Platform SAS. All rights reserved.