Class NotificationUtils
java.lang.Object
org.exoplatform.commons.notification.NotificationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDefaultKey(String key, String providerId) static LocaleGet locale by user's languagestatic StringgetNotificationActivityTitle(String title, String activityType) static StringgetPortalHome(String portalName) static StringgetProfileUrl(String userId) static org.exoplatform.commons.api.notification.template.ElementgetSubject(org.exoplatform.commons.api.notification.plugin.config.PluginConfig templateConfig, String pluginId, String language) Gets the subject's resource bundlestatic intgetSystemValue(org.exoplatform.container.xml.InitParams params, String systemKey, String paramKey, int defaultValue) static StringgetSystemValue(org.exoplatform.container.xml.InitParams params, String systemKey, String paramKey, String defaultValue) static intgetValueParam(org.exoplatform.container.xml.InitParams params, String key, int defaultValue) static StringgetValueParam(org.exoplatform.container.xml.InitParams params, String key, String defaultValue) static booleanisActiveSetting(String userId) static booleanisDeletedMember(String userName) static booleanisValidEmailAddresses(String addressList) static booleanstatic StringlistToString(Collection<String> list, String pattern) static StringlistToString(List<String> list) static StringprocessLinkTitle(String title) Add the style css for a link in the activity title to display a link without underlinestatic StringremoveLinkTitle(String title) Remove all link in activity title and add user-name classstringToList(String value) stringToSet(String value)
-
Constructor Details
-
NotificationUtils
public NotificationUtils()
-
-
Method Details
-
getDefaultKey
-
getLocale
-
getSubject
-
listToString
-
listToString
-
stringToList
-
stringToSet
-
getValueParam
-
getValueParam
public static int getValueParam(org.exoplatform.container.xml.InitParams params, String key, int defaultValue) -
getSystemValue
-
getSystemValue
-
isValidNotificationSenderName
-
isValidEmailAddresses
-
isDeletedMember
-
isActiveSetting
-
processLinkTitle
-
getNotificationActivityTitle
-
removeLinkTitle
-
getProfileUrl
-
getPortalHome
-