Package com.jalios.jcms.alert
Class AlertUtil
- java.lang.Object
-
- com.jalios.jcms.alert.AlertUtil
-
- All Implemented Interfaces:
AlertConstants
public class AlertUtil extends java.lang.Object implements AlertConstants
-
-
Field Summary
-
Fields inherited from interface com.jalios.jcms.alert.AlertConstants
CTXT_DELETE_ALERT, HTML_MARKUP, MSG_PREFIX_PROP, NAME_PREFIX_PROP, NO_ALERT_FLAG, TEXT_MARKUP, WIKI_MARKUP
-
-
Constructor Summary
Constructors Constructor Description AlertUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>
getCommonParamMap(Member recipient, java.lang.String markup, Data data, Member author)
static java.lang.String
getDataLink(Data data, Member recipient)
Returns the HTML link for the given data (with an absolute URL).static java.lang.String
getDataRepresentation(Data data, java.lang.String markup, Member recipient)
Returns a representation of the given data suitable for the given markup.static java.lang.String
getDataText(Data data, Member recipient)
Returns the textual representation for the given data.static java.lang.String
getHtmlAbstract(Publication pub, Member recipient)
Returns an HTML representation of the abstract of the given publication.static java.lang.String
getHtmlDataList(java.util.Collection<? extends Data> dataColl, Member recipient)
Returns an HTMLUL
list from the given data collection.
-
-
-
Method Detail
-
getDataRepresentation
public static java.lang.String getDataRepresentation(Data data, java.lang.String markup, Member recipient)
Returns a representation of the given data suitable for the given markup.- Parameters:
data
- the datamarkup
- the markuprecipient
- 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 java.lang.String getDataLink(Data data, Member recipient)
Returns the HTML link for the given data (with an absolute URL).- Parameters:
data
- the datarecipient
- 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 java.lang.String getDataText(Data data, Member recipient)
Returns the textual representation for the given data.- Parameters:
data
- the datarecipient
- the recipient (for localisation of the data)- Returns:
- the textual representation for the given data.
- Since:
- jcms-8.0.0
-
getCommonParamMap
public static java.util.Map<java.lang.String,java.lang.String> getCommonParamMap(Member recipient, java.lang.String markup, Data data, Member author)
-
getHtmlAbstract
public static java.lang.String getHtmlAbstract(Publication pub, Member recipient)
Returns an HTML representation of the abstract of the given publication.- Parameters:
pub
- the pubrecipient
- the recipient (for localisation)- Returns:
- an HTML representation of the abstract of the given publication.
- Since:
- jcms-8.0.0
-
getHtmlDataList
public static java.lang.String getHtmlDataList(java.util.Collection<? extends Data> dataColl, Member recipient)
Returns an HTMLUL
list from the given data collection.- Parameters:
dataColl
- the data collectionrecipient
- the recipient (for localisation)- Returns:
- an HTML
UL
list from the given data collection. - Since:
- jcms-8.0.0
-
-