|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ServiceObject
microsoft.exchange.webservices.data.Item
microsoft.exchange.webservices.data.PostItem
public final class PostItem
Represents a post item. Properties available on post items are defined in the PostItemSchema class.
Constructor Summary | |
---|---|
|
PostItem(ExchangeService service)
Initializes an unsaved local instance of PostItem.To bind to an existing post item, use PostItem.Bind() instead. |
protected |
PostItem(ItemAttachment parentAttachment)
Initializes a new instance of the class. |
Method Summary | |
---|---|
static PostItem |
bind(ExchangeService service,
ItemId id)
Binds to an existing post item and loads its first class properties. |
static PostItem |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing post item and loads the specified set of properties. |
ResponseMessage |
createForward()
Creates a forward response to the post item. |
PostReply |
createPostReply()
Creates a post reply to this post item. |
ResponseMessage |
createReply(boolean replyAll)
Creates a e-mail reply response to the post item. |
void |
forward(MessageBody bodyPrefix,
EmailAddress... toRecipients)
Forwards the post item. |
void |
forward(MessageBody bodyPrefix,
java.lang.Iterable<EmailAddress> toRecipients)
Forwards the post item. |
byte[] |
getConversationIndex()
Gets the conversation index of the post item. |
java.lang.String |
getConversationTopic()
Gets the conversation topic of the post item. |
EmailAddress |
getFrom()
Gets the "on behalf" poster of the post item. |
java.lang.String |
getInternetMessageId()
Gets the Internet message Id of the post item. |
java.lang.Boolean |
getIsRead()
Gets a value indicating whether the post item is read. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Internal method to return the schema associated with this type of object. |
java.util.Date |
getPostedTime()
Gets the the date and time when the post item was posted. |
java.lang.String |
getReferences()
Gets the references of the post item. |
protected ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object. |
EmailAddress |
getSender()
Gets the sender (poster) of the post item. |
void |
postReply(MessageBody bodyPrefix)
Posts a reply to this post item. |
void |
reply(MessageBody bodyPrefix,
boolean replyAll)
Replies to the post item. |
void |
setFrom(EmailAddress value)
Sets the from. |
void |
setIsRead(java.lang.Boolean value)
Sets the checks if is read. |
void |
setIsRead(java.lang.String value)
Sets the checks if is read. |
void |
setSender(EmailAddress value)
Sets the sender. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostItem(ExchangeService service) throws java.lang.Exception
service
- the service
java.lang.Exception
- the exceptionprotected PostItem(ItemAttachment parentAttachment) throws java.lang.Exception
parentAttachment
- the parent attachment
java.lang.Exception
- the exceptionMethod Detail |
---|
public static PostItem bind(ExchangeService service, ItemId id, PropertySet propertySet) throws java.lang.Exception
service
- the serviceid
- the idpropertySet
- the property set
java.lang.Exception
- the exceptionpublic static PostItem bind(ExchangeService service, ItemId id) throws java.lang.Exception
service
- the serviceid
- the id
java.lang.Exception
- the exceptionprotected ServiceObjectSchema getSchema()
getSchema
in class Item
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class Item
public PostReply createPostReply() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void postReply(MessageBody bodyPrefix) throws java.lang.Exception
bodyPrefix
- the body prefix
java.lang.Exception
- the exceptionpublic ResponseMessage createReply(boolean replyAll) throws java.lang.Exception
replyAll
- the reply all
java.lang.Exception
- the exceptionpublic void reply(MessageBody bodyPrefix, boolean replyAll) throws java.lang.Exception
bodyPrefix
- the body prefixreplyAll
- the reply all
java.lang.Exception
- the exceptionpublic ResponseMessage createForward() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) throws java.lang.Exception
bodyPrefix
- the body prefixtoRecipients
- the to recipients
java.lang.Exception
- the exceptionpublic void forward(MessageBody bodyPrefix, java.lang.Iterable<EmailAddress> toRecipients) throws java.lang.Exception
bodyPrefix
- the body prefixtoRecipients
- the to recipients
java.lang.Exception
- the exceptionpublic byte[] getConversationIndex() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getConversationTopic() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic EmailAddress getFrom() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setFrom(EmailAddress value) throws java.lang.Exception
value
- the new from
java.lang.Exception
- the exceptionpublic java.lang.String getInternetMessageId() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.Boolean getIsRead() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsRead(java.lang.Boolean value) throws java.lang.Exception
value
- the new checks if is read
java.lang.Exception
- the exceptionpublic java.util.Date getPostedTime() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getReferences() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsRead(java.lang.String value) throws java.lang.Exception
value
- the new checks if is read
java.lang.Exception
- the exceptionpublic EmailAddress getSender() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setSender(EmailAddress value) throws java.lang.Exception
value
- the new sender
java.lang.Exception
- the exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |