|
||||||||||
| 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 | |
|---|---|
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 url)
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 |
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 |
| Method Detail |
|---|
String getAppUrl()
void setAppUrl(String url)
url - the URL to set.String getBody()
void setBody(String newBody)
newBody - the main text of the messageString getBodyId()
void setBodyId(String bodyId)
bodyId - A valid body id defined in the gadget XML.List<String> getCollectionIds()
void setCollectionIds(List<String> collectionIds)
String getId()
void setId(String id)
id - the ID value to setString getInReplyTo()
void setInReplyTo(String parentId)
parentId - the parentId to setList<String> getRecipients()
List<String> getReplies()
Message.Status getStatus()
void setStatus(Message.Status status)
status - the status to setvoid setRecipients(List<String> recipients)
recipients - the recipients text of the messageString getSenderId()
void setSenderId(String senderId)
senderId - the sender id to setDate getTimeSent()
void setTimeSent(Date timeSent)
timeSent - the time the message was sentString getTitle()
void setTitle(String newTitle)
newTitle - the title of the messageString getTitleId()
void setTitleId(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)Date getUpdated()
void setUpdated(Date updated)
List<Url> getUrls()
void setUrls(List<Url> urls)
urls - the URLs related to the person, their webpages, or feedsString sanitizeHTML(String htmlStr)
htmlStr - String to be sanitized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||