|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Message
Base interface for all message objects.
see
http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/opensocial-reference#opensocial.Message
http://wiki.opensocial.org/index.php?title=Messaging_API_Changes
| Nested Class Summary | |
|---|---|
static class |
Message.Field
An enumeration of field names in a message. |
static class |
Message.Status
The Status of a message. |
static class |
Message.Type
The type of a message. |
| Method Summary | |
|---|---|
java.lang.String |
getAppUrl()
Gets the App URL for a message. |
java.lang.String |
getBody()
Gets the main text of the message. |
java.lang.String |
getBodyId()
Gets the body id. |
java.util.List<java.lang.String> |
getCollectionIds()
Gets the collection Ids for this message. |
java.lang.String |
getId()
Gets the unique ID of the message |
java.lang.String |
getInReplyTo()
Gets the parent message ID. |
java.util.List<java.lang.String> |
getRecipients()
Gets the recipient list of the message. |
java.util.List<java.lang.String> |
getReplies()
Gets the list of Replies to this message |
java.lang.String |
getSenderId()
Gets the sender ID value. |
Message.Status |
getStatus()
Gets the Status of the message. |
java.util.Date |
getTimeSent()
Gets the time the message was sent. |
java.lang.String |
getTitle()
Gets the title of the message. |
java.lang.String |
getTitleId()
Gets the title ID for this message. |
Message.Type |
getType()
Gets the type of the message, as specified by opensocial.Message.Type. |
java.util.Date |
getUpdated()
Gets the updated timestamp for the message. |
java.util.List<Url> |
getUrls()
Get the URLs related to the message |
java.lang.String |
sanitizeHTML(java.lang.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(java.lang.String url)
Set the App URL for a message. |
void |
setBody(java.lang.String newBody)
Sets the main text of the message. |
void |
setBodyId(java.lang.String bodyId)
Sets the body id. |
void |
setCollectionIds(java.util.List<java.lang.String> collectionIds)
Sets the collection Ids for this message. |
void |
setId(java.lang.String id)
Sets the unique ID of the message. |
void |
setInReplyTo(java.lang.String parentId)
Sets the parent message ID |
void |
setRecipients(java.util.List<java.lang.String> recipients)
Sets the recipients of the message. |
void |
setSenderId(java.lang.String senderId)
sets the sender ID. |
void |
setStatus(Message.Status status)
Sets the Status of the message. |
void |
setTimeSent(java.util.Date timeSent)
Sets the time the message was sent. |
void |
setTitle(java.lang.String newTitle)
Sets the title of the message. |
void |
setTitleId(java.lang.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(java.util.Date updated)
Sets the updated timestamp for the message. |
void |
setUrls(java.util.List<Url> urls)
Set the URLs related to the message |
| Method Detail |
|---|
java.lang.String getAppUrl()
void setAppUrl(java.lang.String url)
url - the URL to set.java.lang.String getBody()
void setBody(java.lang.String newBody)
newBody - the main text of the messagejava.lang.String getBodyId()
void setBodyId(java.lang.String bodyId)
bodyId - A valid body id defined in the gadget XML.java.util.List<java.lang.String> getCollectionIds()
void setCollectionIds(java.util.List<java.lang.String> collectionIds)
java.lang.String getId()
void setId(java.lang.String id)
id - the ID value to setjava.lang.String getInReplyTo()
void setInReplyTo(java.lang.String parentId)
parentId - the parentId to setjava.util.List<java.lang.String> getRecipients()
java.util.List<java.lang.String> getReplies()
Message.Status getStatus()
void setStatus(Message.Status status)
status - the status to setvoid setRecipients(java.util.List<java.lang.String> recipients)
recipients - the recipients text of the messagejava.lang.String getSenderId()
void setSenderId(java.lang.String senderId)
senderId - the sender id to setjava.util.Date getTimeSent()
void setTimeSent(java.util.Date timeSent)
timeSent - the time the message was sentjava.lang.String getTitle()
void setTitle(java.lang.String newTitle)
newTitle - the title of the messagejava.lang.String getTitleId()
void setTitleId(java.lang.String titleId)
titleId - the title ID as defined in the gadget XMLMessage.Type getType()
void setType(Message.Type newType)
newType - the type of message (enum Message.Type)java.util.Date getUpdated()
void setUpdated(java.util.Date updated)
java.util.List<Url> getUrls()
void setUrls(java.util.List<Url> urls)
urls - the URLs related to the person, their webpages, or feedsjava.lang.String sanitizeHTML(java.lang.String htmlStr)
htmlStr - String to be sanitized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||