com.sap.ip.collaboration.gw.api.framework.groupware

Interface IMailItem

All Superinterfaces:
IGroupwareItem

public interface IMailItem
extends IGroupwareItem

This interface represents a mail item used for the send mail operation and extends from the IGroupwareItem interface.


Method Summary
 void addAttachment(IAttachment attachment)
          Adds an attachment to the mail item.
 void deleteAttachment(IAttachment attachment)
          Deleted an attachment from the mail item.
 List getAttachmentList()
          Returns the attachment list associated with the mail item.
 String getBcc()
          Gets the Bcc list for the Mail Item
 List getBccList()
          Gets the Bcc list for the Mail Item as a list of EmailAddresses.
 String getCc()
          Gets the Cc list for the Mail Item.
 List getCcList()
          Gets the Cc list for the Mail Item as a list of EmailAddresses.
 PriorityType getPriority()
          Gets the priority for the Mail Item.
 boolean getSaveOnSend()
          Gets a boolean flag indicating whether the mail item should be saved in the 'Sent Items' folder or not.
 void send()
          Sends the groupware item without any credentials (Used when the SMTP server does not authenticate the user sending the mail.)
 void send(IGroupwareCredentials smtp, IGroupwareCredentials groupware)
          Sends the mail item when the credentials for the SMTP server are different from from the groupware server.
 void setBcc(String bcc)
          Sets the Bcc list for the Mail Item.
 void setBccList(List bcc)
          Sets the Bcc list for the Mail Item as a list of EmailAddresses.
 void setCc(String cc)
          Sets the Cc list for the Mail Item.
 void setCcList(List cc)
          Sets the Cc list for the Mail Item as a list of EmailAddresses.
 void setPriority(PriorityType priority)
          Sets the priority for the Mail Item.
 void setSaveOnSend(boolean flag)
          Sets a boolean flag indicating whether the mail item should be saved in the 'Sent Items' folder or not.
 
Methods inherited from interface com.sap.ip.collaboration.gw.api.framework.groupware.IGroupwareItem
getApplicationData, getContent, getFrom, getFromAddress, getGroupwareManager, getID, getItemType, getMimeType, getSubject, getTo, getToList, getTransport, getTransportName, remove, remove, save, send, setApplicationData, setContent, setFrom, setFromAddress, setGroupwareManager, setID, setMimeType, setSubject, setTo, setToList, setTransport
 

Method Detail

setCc

public void setCc(String cc)
           throws GroupwareException
Sets the Cc list for the Mail Item.

Throws:
GroupwareException - When error occurs

getCc

public String getCc()
             throws GroupwareException
Gets the Cc list for the Mail Item.

Throws:
GroupwareException - When error occurs

setCcList

public void setCcList(List cc)
               throws GroupwareException
Sets the Cc list for the Mail Item as a list of EmailAddresses.

Throws:
GroupwareException - When error occurs

getCcList

public List getCcList()
               throws GroupwareException
Gets the Cc list for the Mail Item as a list of EmailAddresses.

Throws:
GroupwareException - When error occurs

setBcc

public void setBcc(String bcc)
            throws GroupwareException
Sets the Bcc list for the Mail Item.

Throws:
GroupwareException - When error occurs

getBcc

public String getBcc()
              throws GroupwareException
Gets the Bcc list for the Mail Item

Throws:
GroupwareException - When error occurs

setBccList

public void setBccList(List bcc)
                throws GroupwareException
Sets the Bcc list for the Mail Item as a list of EmailAddresses.

Throws:
GroupwareException - When error occurs

getBccList

public List getBccList()
                throws GroupwareException
Gets the Bcc list for the Mail Item as a list of EmailAddresses.

Throws:
GroupwareException - When error occurs

setPriority

public void setPriority(PriorityType priority)
                 throws GroupwareException
Sets the priority for the Mail Item.

Throws:
GroupwareException - When error occurs

getPriority

public PriorityType getPriority()
                         throws GroupwareException
Gets the priority for the Mail Item.

Throws:
GroupwareException - When error occurs

setSaveOnSend

public void setSaveOnSend(boolean flag)
                   throws GroupwareException
Sets a boolean flag indicating whether the mail item should be saved in the 'Sent Items' folder or not.

Parameters:
flag - to indicate whether the mail item to be saved in sent to folder or not
Throws:
GroupwareException - When error occurs

getSaveOnSend

public boolean getSaveOnSend()
                      throws GroupwareException
Gets a boolean flag indicating whether the mail item should be saved in the 'Sent Items' folder or not.

Throws:
GroupwareException - When error occurs

send

public void send()
          throws GroupwareException
Sends the groupware item without any credentials (Used when the SMTP server does not authenticate the user sending the mail.)

Throws:
GroupwareException - When error occurs

send

public void send(IGroupwareCredentials smtp,
                 IGroupwareCredentials groupware)
          throws GroupwareException
Sends the mail item when the credentials for the SMTP server are different from from the groupware server.

Throws:
GroupwareException - When error occurs

getAttachmentList

public List getAttachmentList()
                       throws GroupwareException
Returns the attachment list associated with the mail item.

Returns:
List list of IAttachment
Throws:
GroupwareException - When error occurs

addAttachment

public void addAttachment(IAttachment attachment)
                   throws GroupwareException
Adds an attachment to the mail item.

Throws:
GroupwareException - When error occurs

deleteAttachment

public void deleteAttachment(IAttachment attachment)
                      throws GroupwareException
Deleted an attachment from the mail item.

Throws:
GroupwareException - When error occurs


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.