Package com.jalios.jcms.alert
Class AlertUtil
java.lang.Object
com.jalios.jcms.alert.AlertUtil
- All Implemented Interfaces:
AlertConstants
-
Field Summary
Fields inherited from interface com.jalios.jcms.alert.AlertConstants
ALERT_META_INFO_ATTRIBUTE, CTXT_DELETE_ALERT, HTML_MARKUP, MSG_PREFIX_PROP, NAME_PREFIX_PROP, NO_ALERT_FLAG, TEXT_MARKUP, WIKI_MARKUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommonParamMap(Member recipient, String markup, Data data, Member author) static StringgetDataLink(Data data, Member recipient) Returns the HTML link for the given data (with an absolute URL).static StringgetDataRepresentation(Data data, String markup, Member recipient) Returns a representation of the given data suitable for the given markup.static StringgetDataText(Data data, Member recipient) Returns the textual representation for the given data.static StringgetHtmlAbstract(Publication pub, Member recipient) Returns an HTML representation of the abstract of the given publication.static StringgetHtmlDataList(Collection<? extends Data> dataColl, Member recipient) Returns an HTMLULlist from the given data collection.
-
Constructor Details
-
AlertUtil
public AlertUtil()
-
-
Method Details
-
getDataRepresentation
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
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
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
-
getHtmlAbstract
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
Returns an HTMLULlist from the given data collection.- Parameters:
dataColl- the data collectionrecipient- the recipient (for localisation)- Returns:
- an HTML
ULlist from the given data collection. - Since:
- jcms-8.0.0
-