Class NotificationHelper
java.lang.Object
com.webmethods.portal.mech.subscription.NotificationHelper
This helper class is used to facilitate notification body rendering. It is always available
in the page context under "helper" name.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected static final Locale
protected IDigestDeliveryEvent
protected String
protected DateFormat
protected String
protected Locale
protected INotificationSourceEvent
protected IThingID
protected String
protected String
protected IThingID
protected String
protected String
protected IPortalEvent
protected DateFormat
protected IThingID
protected String
protected IThingID
protected String
protected String
protected String
protected String
protected String
protected String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getLocalizedMessage
(Class<? extends ResourceBundle> bundleClass, String key, Object[] args) getLocalizedMessage
(String key, Object[] args) Null if old parent not applicable / does not exist.Null if old parent is not de-referenceable.Null if parent not applicable / does not exist.Null if parent is not de-referenceable.getSkinProperty
(String name) Null if thing has no description.getThingDescription
(IThing thing) getThingName
(IThing thing) Null if thing is not de-referenceable.getTime()
Null if user not applicable / does not exist.Null if user not applicable / does not existvoid
init
(INotificationSourceEvent event, Locale locale)
-
Field Details
-
DEFAULT_NOTIFICATION_SKIN
- See Also:
-
EMPTY_LOCALE
-
m_fullDateFormat
-
m_shortDateFormat
-
m_frontEndURL
-
m_webServer
-
m_skinID
-
m_notEvent
-
m_digestEvent
-
m_portalEvent
-
m_thingID
-
m_parentID
-
m_oldParentID
-
m_thingType
-
m_thingURL
-
m_thingName
-
m_thingDescription
-
m_parentURL
-
m_parentName
-
m_oldParentURL
-
m_oldParentName
-
m_userName
-
m_userURL
-
m_time
-
m_locale
-
m_language
-
-
Constructor Details
-
NotificationHelper
public NotificationHelper() -
NotificationHelper
- Throws:
PortalException
-
-
Method Details
-
init
- Throws:
PortalException
-
getThingType
- Throws:
PortalException
-
getThingURL
Null if thing is not de-referenceable.- Throws:
PortalException
-
getThingName
- Throws:
PortalException
-
getThingDescription
Null if thing has no description.- Throws:
PortalException
-
getParentURL
Null if parent is not de-referenceable.- Throws:
PortalException
-
getParentName
Null if parent not applicable / does not exist.- Throws:
PortalException
-
getOldParentURL
Null if old parent is not de-referenceable.- Throws:
PortalException
-
getOldParentName
Null if old parent not applicable / does not exist.- Throws:
PortalException
-
getUserName
Null if user not applicable / does not exist.- Throws:
PortalException
-
getUserURL
Null if user not applicable / does not exist- Returns:
- Throws:
PortalException
-
getTime
- Throws:
PortalException
-
getSystemTitle
- Throws:
PortalException
-
getSkinProperty
- Throws:
PortalException
-
getSkinID
- Throws:
PortalException
-
getFrontEndURL
- Throws:
PortalException
-
getWebServer
- Throws:
PortalException
-
getFullDateFormat
- Throws:
PortalException
-
getShortDateFormat
- Throws:
PortalException
-
getLocalizedMessage
-
getLocalizedMessage
public String getLocalizedMessage(Class<? extends ResourceBundle> bundleClass, String key, Object[] args) -
getDeliveryModes
- Throws:
PortalException
-
getSourceEvents
-
getNotificationSourceEvent
-
getLocale
-
getThingName
- Throws:
PortalException
-
getThingDescription
- Throws:
PortalException
-