Class NotificationMessageUtils


  • public class NotificationMessageUtils
    extends Object
    Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Dec 30, 2014
    • Field Detail

      • LOG

        protected static final org.exoplatform.services.log.Log LOG
      • NOT_HIGHLIGHT_COMMENT_PORPERTY

        public static final ArgumentLiteral<String> NOT_HIGHLIGHT_COMMENT_PORPERTY
    • Constructor Detail

      • NotificationMessageUtils

        public NotificationMessageUtils()
    • Method Detail

      • getMaxItemsInPopover

        public static int getMaxItemsInPopover()
        Gets the number of notifications that are displayed in the popover list.
        The first time this method is called, it will retrieve it from the configuration, via the property exo.notification.maxitems, or default to 8 if the property is not set.
        If the property is set to an incorrect value (negative number, 0, not a number), the default value is used too.
        Returns:
        the number of items (notifications) that are displayed in the popover list.