Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.activity
Class ActivityMessageHelper

java.lang.Object
  extended by org.nuxeo.ecm.activity.ActivityMessageHelper

public class ActivityMessageHelper
extends Object

Helper class to compute links for ActivityMessage content from an activity attributes.

Since:
5.6
Author:
Thomas Roger

Field Summary
static Pattern HTTP_URL_PATTERN
           
 
Method Summary
static String getDocumentLink(String documentActivityObject, String displayValue)
           
static String getDocumentURL(String repositoryName, String documentId)
           
static String getUserAvatarURL(CoreSession session, String username)
           
static String getUserProfileLink(String userActivityObject, String displayValue)
           
static String getUserProfileURL(String username)
           
static String replaceURLsByLinks(String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_URL_PATTERN

public static Pattern HTTP_URL_PATTERN
Method Detail

getDocumentLink

public static String getDocumentLink(String documentActivityObject,
                                     String displayValue)

getDocumentURL

public static String getDocumentURL(String repositoryName,
                                    String documentId)

getUserProfileLink

public static String getUserProfileLink(String userActivityObject,
                                        String displayValue)

getUserProfileURL

public static String getUserProfileURL(String username)

getUserAvatarURL

public static String getUserAvatarURL(CoreSession session,
                                      String username)
                               throws ClientException
Throws:
ClientException

replaceURLsByLinks

public static String replaceURLsByLinks(String message)

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.