com.sapportals.wcm.service.notificator

Interface INotification

All Known Implementing Classes:
AbstractNotification

public interface INotification

This interface defines the notification s send by a notificator .

A notificaton represents some kind of 'form', e.g. a subscription notification. The layout (content) of this form (notification) might depend on the recipient and channel.
For example: a subscription notification, wich should be send to a german recipient by eMail should have some german html-content, while a subscription notification for an english recipient by SMS should have plain english text.

Copyright 2004 SAP AG


Method Summary
 IContent getContent(IRecipient recipient, IChannel channel, Properties properties)
          Get the content (depending on recipient and channel).
 String getDescription()
          Get a displayable name (title).
 String getDescription(Locale locale)
          Get a displayable name (title) for a specific locale.
 String getFromAddress(IChannel channel)
          Get the 'from' address for a specific channel.
 String getID()
          Get a system id for this notification.
 

Method Detail

getID

public String getID()
Get a system id for this notification. For example 'subscription ' for a subcription notification.

Returns:
String is the system id.

getDescription

public String getDescription()
Get a displayable name (title). For example 'Subscription Notification ' for a suscription notification.

Returns:
String is the displayable name.

getDescription

public String getDescription(Locale locale)
Get a displayable name (title) for a specific locale.

Parameters:
locale - TBD: Description of the incoming method parameter
Returns:
String is the displayable name for the given locale.

getFromAddress

public String getFromAddress(IChannel channel)
Get the 'from' address for a specific channel.

Parameters:
channel - a IChannel with the channel to get the from address for.
Returns:
a String with from address for the given channel.

getContent

public IContent getContent(IRecipient recipient,
                           IChannel channel,
                           Properties properties)
                    throws WcmException
Get the content (depending on recipient and channel).

Parameters:
recipient - TBD: Description of the incoming method parameter
channel - TBD: Description of the incoming method parameter
properties - TBD: Description of the incoming method parameter
Returns:
IContent 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).
Throws:
WcmException - Exception raised in failure situation


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.