|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.service.notificator.AbstractNotification
Base class for Notifications used to notify a recipient.
Copyright 2004 SAP AG
| Field Summary | |
protected IResourceContext |
m_Context
the context to use for the producers. |
protected java.lang.String |
m_ID
unique system ID for this notification event |
protected static java.lang.String |
XMLSUFFIX
XML file suffix. |
protected static java.lang.String |
XSLSUFFIX
XSL file suffix. |
| Constructor Summary | |
AbstractNotification(java.lang.String id,
IResourceContext context)
Create a notification for a given system ID. |
|
| Method Summary | |
IContent |
getContent(IRecipient recipient,
IChannel channel,
java.util.Properties properties)
Get the content (depending on recipient and channel). |
java.lang.String |
getDescription()
Get a displayable name (title). |
java.lang.String |
getDescription(java.util.Locale locale)
Get a displayable name (title) for a specific locale. |
java.lang.String |
getDescription(java.util.Locale locale,
java.lang.Object obj1)
|
java.lang.String |
getFromAddress(IChannel channel)
Get the 'from' address for a specific channel. |
java.lang.String |
getID()
Get a system id for this notification. |
protected java.util.Properties |
getProperties(IRecipient recipient,
IChannel channel,
java.util.Properties properties)
Get the properties to pass to the pipeline. |
protected IProducer |
getXmlProducer(IResourceFactory factory,
RID xmlRID)
Get the XML producer for feeding the pipeline. |
protected RID |
getXmlRID(IResourceFactory factory,
java.lang.String templates,
IRecipient recipient)
Get the uri to use for the XML by trying several locale-specific uris. |
protected IProducer |
getXslProducer(IResourceFactory factory,
RID xslRID)
Get the XSL producer for feeding the pipeline. |
protected RID |
getXslRID(IResourceFactory factory,
java.lang.String templates,
IChannel channel)
Get the uri to use for the XSL by trying a channel-specific uri first. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String XMLSUFFIX
protected static final java.lang.String XSLSUFFIX
protected java.lang.String m_ID
protected IResourceContext m_Context
| Constructor Detail |
public AbstractNotification(java.lang.String id,
IResourceContext context)
id - a String with the system notification type.context - a IResourceContext with the context to use for
the notification.| Method Detail |
protected RID getXmlRID(IResourceFactory factory,
java.lang.String templates,
IRecipient recipient)
throws WcmException
factory - the IResourceFactory to use for getting the
resource.templates - a String with the name of the notificator's
template directory.recipient - the IRecipient to get the XML for.WcmException - Exception raised in failure situation
protected RID getXslRID(IResourceFactory factory,
java.lang.String templates,
IChannel channel)
throws WcmException
factory - the IResourceFactory to use for getting the
resource.templates - a String with the name of the notificator's
template directory.channel - the IChannel to get the XSL for.WcmException - Exception raised in failure situation
protected IProducer getXmlProducer(IResourceFactory factory,
RID xmlRID)
throws WcmException
factory - the IResourceFactory to get resources from.xmlRID - TBD: Description of the incoming method parameterIProducer for the XML.WcmException - Exception raised in failure situation
protected IProducer getXslProducer(IResourceFactory factory,
RID xslRID)
throws WcmException
factory - the ResourceFactory to get resources from.xslRID - TBD: Description of the incoming method parameterIProducer for the XSL.WcmException - Exception raised in failure situation
protected java.util.Properties getProperties(IRecipient recipient,
IChannel channel,
java.util.Properties properties)
recipient - the IRecipient which will get the message.channel - the IChannel which will be used for sending the
message.properties - the Properties from the notificator config.Properties to pass to the pipeline for adding to
the XML-/XSL-output.public java.lang.String getID()
INotificationsubscription
' for a subcription notification.getID in interface INotificationcom.sapportals.wcm.service.notificator.INotificationString is the system id.public java.lang.String getDescription()
INotificationgetDescription in interface INotificationcom.sapportals.wcm.service.notificator.INotificationString is the displayable name.public java.lang.String getDescription(java.util.Locale locale)
INotificationgetDescription in interface INotificationcom.sapportals.wcm.service.notificator.INotificationlocale - TBD: Description of the incoming method parameterString is the displayable name for the given locale.
public java.lang.String getDescription(java.util.Locale locale,
java.lang.Object obj1)
public java.lang.String getFromAddress(IChannel channel)
INotificationgetFromAddress in interface INotificationcom.sapportals.wcm.service.notificator.INotificationchannel - a IChannel with the channel to get the from
address for.String with from address for the given channel.
public IContent getContent(IRecipient recipient,
IChannel channel,
java.util.Properties properties)
throws WcmException
INotificationgetContent in interface INotificationcom.sapportals.wcm.service.notificator.INotificationrecipient - TBD: Description of the incoming method parameterchannel - TBD: Description of the incoming method parameterproperties - TBD: Description of the incoming method parameterIContent is the content, wich should depend on the
specified channel and the given recipient (e.g. content can differ for
WAP- and eMail-channels, or it may depend on the receivers locale).WcmException - Exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||