Class NotificationMessageUtils
java.lang.Object
org.exoplatform.commons.api.notification.NotificationMessageUtils
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
Dec 30, 2014
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.exoplatform.services.log.Logstatic final ArgumentLiteral<String>static final ArgumentLiteral<String>static final ArgumentLiteral<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intGets 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.
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOG -
READ_PORPERTY
-
SHOW_POPOVER_PROPERTY
-
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.
-