Class AlertUtil

    • Constructor Detail

      • AlertUtil

        public AlertUtil()
    • 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 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 java.lang.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 java.lang.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 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 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 java.lang.String getHtmlDataList​(java.util.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