|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.exchange.webdav.AbstractItem | +--com.compoze.exchange.webdav.AbstractMessage | +--com.compoze.exchange.webdav.Note
This class extends AbstractMessage
to represent a message that is
a note in the Exchange store. Functionality may be very limited due to the lack of
support by Microsoft for manipulating stick notes in Exchange Server via WebDAV.
The following table contains the properties defined in the Exchange store schema
and mappings to their corresponding Java enumeration and methods:
Exchange Store Property | Java Enumeration | Java Methods |
http://schemas.microsoft.com/mapi/id/{0006200E-0000-0000-C000-000000000046}/x00008b00 |
MapiProperty.NOTE_COLOR |
getColor() setColor(Color) |
http://schemas.microsoft.com/mapi/id/{0006200E-0000-0000-C000-000000000046}/x00008b02 |
MapiProperty.NOTE_WIDTH |
getWidth() setWidth(int) |
http://schemas.microsoft.com/mapi/id/{0006200E-0000-0000-C000-000000000046}/x00008b03 |
MapiProperty.NOTE_HEIGHT |
getHeight() setHeight(int) |
http://schemas.microsoft.com/mapi/proptag/x1000001f |
MapiProperty.BODY_WIDE |
getTextDescription() setTextDescription(String) |
Constructor Summary | |
Note(java.lang.String sBody)
Constructor. |
Method Summary | |
void |
addAttachment(Attachment attachment)
Adds an attachement to this message. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.util.LinkedList |
getBccAddresses()
Gets the blind carbon copy (Bcc) addresses. |
java.lang.String |
getBccAddressesString()
Gets the string representation of a list of blind carbon copy (Bcc) addresses. |
com.compoze.util.mail.InternetAddress[] |
getBccRecipients()
Gets internet addresses of recipients set in the "Bcc" (blind carbon copy) field. |
java.util.LinkedList |
getCcAddresses()
Gets the carbon copy (Cc) addresses. |
java.lang.String |
getCcAddressesString()
Gets the string representation of a list of carbon copy (Cc) addresses. |
com.compoze.util.mail.InternetAddress[] |
getCcRecipients()
Gets internet addresses of recipients set in the "Cc" (carbon copy) field. |
Color |
getColor()
Gets the color of this note. |
static java.util.List |
getDefaultProperties()
Gets a list of default properties pertaining to a note. |
com.compoze.util.mail.InternetAddress[] |
getFrom()
Gets internet addresses of whom this message was sent. |
java.util.LinkedList |
getFromAddresses()
Gets the addresses from whom the message was sent. |
java.lang.String |
getFromAddressesString()
Gets the string representation of a list of from whom the message was sent. |
int |
getHeight()
Gets the height of this note. |
static java.util.List |
getProperties()
Gets a list of properties pertaining to a note. |
java.lang.String |
getTextDescription()
Gets the plain text version of the note. |
java.util.LinkedList |
getToAddresses()
Gets the principal (To) addresses. |
java.lang.String |
getToAddressesString()
Gets the string representation of a list of principal (To) addresses. |
com.compoze.util.mail.InternetAddress[] |
getToRecipients()
Gets internet addresses of recipients set in the "To" (principal) field. |
int |
getWidth()
Gets the width of this note. |
java.util.List |
serverGetAttachments()
Queries the server to get a list of the attachments of this message. |
void |
setBccAddresses(java.util.List addresses)
Sets the blind carbon copy (Bcc) addresses. |
void |
setBccRecipients(com.compoze.util.mail.InternetAddress[] addressList)
Sets "Bcc" (blind carbon copy) field with recipient's internet addresses. |
void |
setBccRecipients(java.lang.String sAddressList)
Sets "Bcc" (blind carbon copy) field with sequence of recipient's internet addresses. |
void |
setCcAddresses(java.util.List addresses)
Sets the carbon copy (Cc) addresses. |
void |
setCcRecipients(com.compoze.util.mail.InternetAddress[] addressesList)
Sets "Cc" (carbon copy) field with recipient's internet addresses. |
void |
setCcRecipients(java.lang.String sAddressList)
Sets "Cc" (carbon copy) field with sequence of recipient's internet addresses. |
void |
setColor(Color color)
Sets the color of this note. |
void |
setFrom(com.compoze.util.mail.InternetAddress[] addressesList)
Sets "From" field with internet addresses of whom this message was sent. |
void |
setFrom(java.lang.String sAddressList)
Sets "From" field with sequence of internet addresses of whom this message was sent. |
void |
setFromAddress(java.lang.String sFromAddress)
Sets the address from whom the message was sent. |
void |
setFromAddresses(java.util.List addresses)
Sets the addresses from whom the message was sent. |
void |
setHeight(int iHeight)
Sets the height of this note. |
void |
setTextDescription(java.lang.String sTextDescription)
Sets the plain text version of the note. |
void |
setToAddresses(java.util.List addresses)
Sets the principal (To) addresses. |
void |
setToRecipients(com.compoze.util.mail.InternetAddress[] addressList)
Sets "To" (principal) field with recipient's internet addresses. |
void |
setToRecipients(java.lang.String sAddressList)
Sets "To" (principal) field with sequence of recipient's internet addresses. |
void |
setWidth(int iWidth)
Sets the width of this note. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.compoze.exchange.webdav.AbstractMessage |
createFilename, equals, getAttachments, getBody, getCategories, getContactNames, getDateReceived, getFromEmailAddress, getFromName, getImportance, getNormalizedSubject, getSensitivity, getSize, getSubject, getType, hasAttachment, isRead, serverDeleteAttachment, serverUpdate, setBody, setCategories, setCategories, setContactNames, setContactNames, setDateReceived, setImportance, setRead, setSensitivity, setSubject, setType |
Methods inherited from class com.compoze.exchange.webdav.AbstractItem |
copy, copy, copy, createFilename, delete, equals, getComment, getContentClass, getCreationDate, getDateLastModified, getDisplayName, getFile, getHRef, getID, getParentFolder, getPermanentURL, getUID, isFolder, isHidden, isReadOnly, isRoot, move, move, move, serverCopyTo, serverCopyTo, serverCopyTo, serverCopyTo, serverDelete, serverGetParentFolder, serverMoveTo, serverMoveTo, serverMoveTo, serverMoveTo, serverUpdate, setComment, setContentClass, setContentClass, setHidden, setReadOnly, setReleased, setType, setUID, update, update, validate |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Note(java.lang.String sBody)
sBody
- the body of the note (must not be null
nor empty).Method Detail |
public java.lang.String getTextDescription()
getTextDescription
in class AbstractMessage
ExchangeRuntimeException
- if this object has been released and can
no longer be usedMapiProperty.BODY_WIDE
public void setTextDescription(java.lang.String sTextDescription)
setTextDescription
in class AbstractMessage
sTextDescription
- the plain textExchangeRuntimeException
- if this object has been released and can
no longer be usedMapiProperty.BODY_WIDE
public Color getColor()
MapiProperty.NOTE_COLOR
public void setColor(Color color)
iColor
- the color of the note.MapiProperty.NOTE_COLOR
public int getWidth()
MapiProperty.NOTE_WIDTH
public void setWidth(int iWidth)
iWidth
- the width of the note.MapiProperty.NOTE_WIDTH
public int getHeight()
MapiProperty.NOTE_HEIGHT
public void setHeight(int iHeight)
iHeight
- the height of the note.MapiProperty.NOTE_HEIGHT
public java.lang.String getFromAddressesString()
AbstractMessage
getFromAddressesString
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public java.util.LinkedList getFromAddresses()
AbstractMessage
getFromAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public void setFromAddress(java.lang.String sFromAddress)
AbstractMessage
setFromAddress
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public void setFromAddresses(java.util.List addresses)
AbstractMessage
setFromAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public com.compoze.util.mail.InternetAddress[] getFrom() throws com.compoze.util.mail.AddressException
getFrom
in class AbstractMessage
InternetAddress
objects; or null
if not setcom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.FROM
public void setFrom(java.lang.String sAddressList) throws com.compoze.util.mail.AddressException
setFrom
in class AbstractMessage
sAddressList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.FROM
public void setFrom(com.compoze.util.mail.InternetAddress[] addressesList)
setFrom
in class AbstractMessage
addressesList
- array of InternetAddress
objectsUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.FROM
public java.lang.String getToAddressesString()
AbstractMessage
getToAddressesString
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public java.util.LinkedList getToAddresses()
AbstractMessage
getToAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public void setToAddresses(java.util.List addresses)
AbstractMessage
setToAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public com.compoze.util.mail.InternetAddress[] getToRecipients() throws com.compoze.util.mail.AddressException
getToRecipients
in class AbstractMessage
InternetAddress
objects; or null
if not setcom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.TO
public void setToRecipients(java.lang.String sAddressList) throws com.compoze.util.mail.AddressException
setToRecipients
in class AbstractMessage
sAddressList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.TO
public void setToRecipients(com.compoze.util.mail.InternetAddress[] addressList)
setToRecipients
in class AbstractMessage
addressList
- array of InternetAddress
objectsUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.TO
public java.lang.String getCcAddressesString()
AbstractMessage
getCcAddressesString
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public java.util.LinkedList getCcAddresses()
AbstractMessage
getCcAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public void setCcAddresses(java.util.List addresses)
AbstractMessage
setCcAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public com.compoze.util.mail.InternetAddress[] getCcRecipients() throws com.compoze.util.mail.AddressException
getCcRecipients
in class AbstractMessage
InternetAddress
objects; or null
if not setcom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.CC
public void setCcRecipients(java.lang.String sAddressList) throws com.compoze.util.mail.AddressException
setCcRecipients
in class AbstractMessage
sAddressList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.CC
public void setCcRecipients(com.compoze.util.mail.InternetAddress[] addressesList)
setCcRecipients
in class AbstractMessage
addressesList
- array of InternetAddress
objectsUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.CC
public java.lang.String getBccAddressesString()
AbstractMessage
getBccAddressesString
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public java.util.LinkedList getBccAddresses()
AbstractMessage
getBccAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public void setBccAddresses(java.util.List addresses)
AbstractMessage
setBccAddresses
in class AbstractMessage
UnsupportedOperationException
- if operation is not supported.public com.compoze.util.mail.InternetAddress[] getBccRecipients() throws com.compoze.util.mail.AddressException
getBccRecipients
in class AbstractMessage
InternetAddress
objects; or null
if not setcom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.BCC
public void setBccRecipients(java.lang.String sAddressList) throws com.compoze.util.mail.AddressException
setBccRecipients
in class AbstractMessage
sAddressList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.BCC
public void setBccRecipients(com.compoze.util.mail.InternetAddress[] addressList)
setBccRecipients
in class AbstractMessage
addressList
- array of InternetAddress
objectsUnsupportedOperationException
- if operation is not supported.MailHeaderProperty.BCC
public void addAttachment(Attachment attachment) throws ExchangeException
AbstractMessage
addAttachment
in class AbstractMessage
UnsupportedOperationException
- if the addAttachment
operation
is not supported by this note.public java.util.List serverGetAttachments() throws ExchangeException
AbstractMessage
hasAttachment()
first to determine if this message has attachments.serverGetAttachments
in class AbstractMessage
UnsupportedOperationException
- if the getAttachments
operation
is not supported by this note.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractMessage
java.lang.CloneNotSupportedException
- if the object's class does not support the Cloneable interface.public java.lang.String toString()
toString
in class AbstractMessage
public static java.util.List getDefaultProperties()
AbstractMessage.getDefaultProperties()
public static java.util.List getProperties()
AbstractMessage.getProperties()
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |