com.jalios.jcms.alert
Class AlertUtil

java.lang.Object
  extended by com.jalios.jcms.alert.AlertUtil
All Implemented Interfaces:
AlertConstants

public class AlertUtil
extends Object
implements AlertConstants


Field Summary
 
Fields inherited from interface com.jalios.jcms.alert.AlertConstants
HTML_MARKUP, MSG_PREFIX_PROP, NAME_PREFIX_PROP, TEXT_MARKUP, WIKI_MARKUP
 
Constructor Summary
AlertUtil()
           
 
Method Summary
static Map<String,String> getCommonParamMap(Member recipient, String markup, Data data, Member author)
           
static String getDataLink(Data data, Member recipient)
          Returns the HTML link for the given data (with an absolute URL).
static String getDataRepresentation(Data data, String markup, Member recipient)
          Returns a representation of the given data suitable for the given markup.
static String getDataText(Data data, Member recipient)
          Returns the textual representation for the given data.
static String getHtmlAbstract(Publication pub, Member recipient)
          Returns an HTML representation of the abstract of the given publication.
static String getHtmlDataList(Collection<? extends Data> dataColl, Member recipient)
          Returns an HTML UL list from the given data collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertUtil

public AlertUtil()
Method Detail

getDataRepresentation

public static String getDataRepresentation(Data data,
                                           String markup,
                                           Member recipient)
Returns a representation of the given data suitable for the given markup.

Parameters:
data - the data
markup - the markup
recipient - the recipient (for localisation of the data)
Returns:
a representation of the given data suitable for the given markup.
Since:
jcms-8.0.0

getDataLink

public static String getDataLink(Data data,
                                 Member recipient)
Returns the HTML link for the given data (with an absolute URL).

Parameters:
data - the data
recipient - the recipient (for localisation of the data)
Returns:
the HTML link for the given data (with an absolute URL).
Since:
jcms-8.0.0

getDataText

public static String getDataText(Data data,
                                 Member recipient)
Returns the textual representation for the given data.

Parameters:
data - the data
recipient - the recipient (for localisation of the data)
Returns:
the textual representation for the given data.
Since:
jcms-8.0.0

getCommonParamMap

public static Map<String,String> getCommonParamMap(Member recipient,
                                                   String markup,
                                                   Data data,
                                                   Member author)

getHtmlAbstract

public static String getHtmlAbstract(Publication pub,
                                     Member recipient)
Returns an HTML representation of the abstract of the given publication.

Parameters:
pub - the pub
recipient - the recipient (for localisation)
Returns:
an HTML representation of the abstract of the given publication.
Since:
jcms-8.0.0

getHtmlDataList

public static String getHtmlDataList(Collection<? extends Data> dataColl,
                                     Member recipient)
Returns an HTML UL list from the given data collection.

Parameters:
dataColl - the data collection
recipient - the recipient (for localisation)
Returns:
an HTML UL list from the given data collection.
Since:
jcms-8.0.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.