Message.Field, Message.Status, Message.Type| Constructor and Description |
|---|
MessageImpl() |
MessageImpl(String initBody,
String initTitle,
Message.Type initType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppUrl()
Gets the App URL for a message.
|
String |
getBody()
Gets the main text of the message.
|
String |
getBodyId()
Gets the body id.
|
List<String> |
getCollectionIds()
Gets the collection Ids for this message.
|
String |
getId()
Gets the unique ID of the message
|
String |
getInReplyTo()
Gets the parent message ID.
|
List<String> |
getRecipients()
Gets the recipient list of the message.
|
List<String> |
getReplies()
Gets the list of Replies to this message
|
String |
getSenderId()
Gets the sender ID value.
|
Message.Status |
getStatus()
Gets the Status of the message.
|
Date |
getTimeSent()
Gets the time the message was sent.
|
String |
getTitle()
Gets the title of the message.
|
String |
getTitleId()
Gets the title ID for this message.
|
Message.Type |
getType()
Gets the type of the message, as specified by opensocial.Message.Type.
|
Date |
getUpdated()
Gets the updated timestamp for the message.
|
List<Url> |
getUrls()
Get the URLs related to the message
|
String |
sanitizeHTML(String htmlStr)
TODO implement either a standard 'sanitizing' facility or
define an interface that can be set on this class so
others can plug in their own.
|
void |
setAppUrl(String appUrl)
Set the App URL for a message.
|
void |
setBody(String newBody)
Sets the main text of the message.
|
void |
setBodyId(String bodyId)
Sets the body id.
|
void |
setCollectionIds(List<String> collectionIds)
Sets the collection Ids for this message.
|
void |
setId(String id)
Sets the unique ID of the message.
|
void |
setInReplyTo(String parentId)
Sets the parent message ID
|
void |
setRecipients(List<String> recipients)
Sets the recipients of the message.
|
void |
setReplies(List<String> replies) |
void |
setSenderId(String senderId)
sets the sender ID.
|
void |
setStatus(Message.Status status)
Sets the Status of the message.
|
void |
setTimeSent(Date timeSent)
Sets the time the message was sent.
|
void |
setTitle(String newTitle)
Sets the title of the message.
|
void |
setTitleId(String titleId)
Sets the title ID for this message.
|
void |
setType(Message.Type newType)
Sets the type of the message, as specified by opensocial.Message.Type.
|
void |
setUpdated(Date updated)
Sets the updated timestamp for the message.
|
void |
setUrls(List<Url> urls)
Set the URLs related to the message
|
public MessageImpl()
public MessageImpl(String initBody, String initTitle, Message.Type initType)
public String getAppUrl()
Messagepublic void setAppUrl(String appUrl)
Messagepublic String getBody()
Messagepublic void setBody(String newBody)
Messagepublic String getBodyId()
Messagepublic void setBodyId(String bodyId)
Messagepublic List<String> getCollectionIds()
MessagegetCollectionIds in interface Messagepublic void setCollectionIds(List<String> collectionIds)
MessagesetCollectionIds in interface Messagepublic String getId()
Messagepublic void setId(String id)
Messagepublic String getInReplyTo()
MessagegetInReplyTo in interface Messagepublic void setInReplyTo(String parentId)
MessagesetInReplyTo in interface MessageparentId - the parentId to setpublic List<String> getRecipients()
MessagegetRecipients in interface Messagepublic void setRecipients(List<String> recipients)
MessagesetRecipients in interface Messagerecipients - the recipients text of the messagepublic List<String> getReplies()
MessagegetReplies in interface Messagepublic String getSenderId()
MessagegetSenderId in interface Messagepublic void setSenderId(String senderId)
MessagesetSenderId in interface MessagesenderId - the sender id to setpublic Message.Status getStatus()
Messagepublic void setStatus(Message.Status status)
Messagepublic Date getTimeSent()
MessagegetTimeSent in interface Messagepublic void setTimeSent(Date timeSent)
MessagesetTimeSent in interface MessagetimeSent - the time the message was sentpublic String getTitle()
Messagepublic void setTitle(String newTitle)
Messagepublic String getTitleId()
MessagegetTitleId in interface Messagepublic void setTitleId(String titleId)
MessagesetTitleId in interface MessagetitleId - the title ID as defined in the gadget XMLpublic Message.Type getType()
Messagepublic void setType(Message.Type newType)
Messagepublic Date getUpdated()
MessagegetUpdated in interface Messagepublic void setUpdated(Date updated)
MessagesetUpdated in interface Messagepublic List<Url> getUrls()
Messagepublic void setUrls(List<Url> urls)
Messagepublic String sanitizeHTML(String htmlStr)
MessagesanitizeHTML in interface MessagehtmlStr - String to be sanitized.Copyright © 2007-2012. All Rights Reserved.