Class NotificationMessageUtils

java.lang.Object
org.exoplatform.commons.api.notification.NotificationMessageUtils

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

    • LOG

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

      public static final ArgumentLiteral<String> READ_PORPERTY
    • SHOW_POPOVER_PROPERTY

      public static final ArgumentLiteral<String> SHOW_POPOVER_PROPERTY
    • NOT_HIGHLIGHT_COMMENT_PORPERTY

      public static final ArgumentLiteral<String> NOT_HIGHLIGHT_COMMENT_PORPERTY
  • Constructor Details

    • NotificationMessageUtils

      public NotificationMessageUtils()
  • Method Details

    • 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.