|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.social.core.model.MessageImpl
public final class MessageImpl
Default implementation for a Message
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.shindig.social.opensocial.model.Message |
|---|
Message.Field, Message.Status, Message.Type |
| Constructor Summary | |
|---|---|
MessageImpl()
|
|
MessageImpl(String initBody,
String initTitle,
Message.Type initType)
|
|
| 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 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageImpl()
public MessageImpl(String initBody,
String initTitle,
Message.Type initType)
| Method Detail |
|---|
public String getAppUrl()
Message
getAppUrl in interface Messagepublic void setAppUrl(String appUrl)
Message
setAppUrl in interface MessageappUrl - the URL to set.public String getBody()
Message
getBody in interface Messagepublic void setBody(String newBody)
Message
setBody in interface MessagenewBody - the main text of the messagepublic String getBodyId()
Message
getBodyId in interface Messagepublic void setBodyId(String bodyId)
Message
setBodyId in interface MessagebodyId - A valid body id defined in the gadget XML.public List<String> getCollectionIds()
Message
getCollectionIds in interface Messagepublic void setCollectionIds(List<String> collectionIds)
Message
setCollectionIds in interface Messagepublic String getId()
Message
getId in interface Messagepublic void setId(String id)
Message
setId in interface Messageid - the ID value to setpublic String getInReplyTo()
Message
getInReplyTo in interface Messagepublic void setInReplyTo(String parentId)
Message
setInReplyTo in interface MessageparentId - the parentId to setpublic List<String> getRecipients()
Message
getRecipients in interface Messagepublic void setRecipients(List<String> recipients)
Message
setRecipients in interface Messagerecipients - the recipients text of the messagepublic List<String> getReplies()
Message
getReplies in interface Messagepublic void setReplies(List<String> replies)
public String getSenderId()
Message
getSenderId in interface Messagepublic void setSenderId(String senderId)
Message
setSenderId in interface MessagesenderId - the sender id to setpublic Message.Status getStatus()
Message
getStatus in interface Messagepublic void setStatus(Message.Status status)
Message
setStatus in interface Messagestatus - the status to setpublic Date getTimeSent()
Message
getTimeSent in interface Messagepublic void setTimeSent(Date timeSent)
Message
setTimeSent in interface MessagetimeSent - the time the message was sentpublic String getTitle()
Message
getTitle in interface Messagepublic void setTitle(String newTitle)
Message
setTitle in interface MessagenewTitle - the title of the messagepublic String getTitleId()
Message
getTitleId in interface Messagepublic void setTitleId(String titleId)
Message
setTitleId in interface MessagetitleId - the title ID as defined in the gadget XMLpublic Message.Type getType()
Message
getType in interface Messagepublic void setType(Message.Type newType)
Message
setType in interface MessagenewType - the type of message (enum Message.Type)public Date getUpdated()
Message
getUpdated in interface Messagepublic void setUpdated(Date updated)
Message
setUpdated in interface Messagepublic List<Url> getUrls()
Message
getUrls in interface Messagepublic void setUrls(List<Url> urls)
Message
setUrls in interface Messageurls - the URLs related to the person, their webpages, or feedspublic String sanitizeHTML(String htmlStr)
Message
sanitizeHTML in interface MessagehtmlStr - String to be sanitized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||