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 Summary
Fields Modifier and Type Field Description protected static org.exoplatform.services.log.LogLOGstatic ArgumentLiteral<String>NOT_HIGHLIGHT_COMMENT_PORPERTYstatic ArgumentLiteral<String>READ_PORPERTYstatic ArgumentLiteral<String>SHOW_POPOVER_PROPERTY
-
Constructor Summary
Constructors Constructor Description NotificationMessageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetMaxItemsInPopover()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.
-
-
-
Field Detail
-
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
-
-
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.
-
-