Class AlertUtil

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

public class AlertUtil extends Object implements AlertConstants
  • Constructor Details

    • AlertUtil

      public AlertUtil()
  • Method Details

    • 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