|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.socialnetworkintegration.SocialNetworkMessage
public class SocialNetworkMessage
Represents a message publishing in a social network application.
Field Summary | |
---|---|
static java.lang.String |
ENTITY_NAME
This entity name. |
Constructor Summary | |
---|---|
SocialNetworkMessage(SocialNetworkAccount account,
java.lang.String messageContent,
java.util.Date publishDate)
Creates a new SocialNetworkMessage using the given
account with the given message and
publishing date. |
Method Summary | |
---|---|
java.lang.String |
getId()
Retrieves the message's id. |
java.lang.String |
getMessageContent()
Returns the message's content. |
SocialNetworkAccount |
getNetworkAccount()
Returns the account that published this message. |
java.util.Date |
getPublishDate()
Returns the message's scheduled publishing date. |
java.lang.String |
getRemoteMessageId()
Returns the published message's id in the social network. |
SocialNetworkMessageStatus |
getStatus()
Returns the message's publishing status. |
java.lang.String |
getUrl()
Returns the url. |
void |
reprocess()
Adds the message back to the queue if there was a problem during processing in the queue. |
void |
setLocale(java.util.Locale locale)
Sets the transient locale for this message. |
void |
setMessageConent(java.lang.String content)
Sets the message's content. |
void |
setNetworkAccount(SocialNetworkAccount account)
Sets the account that published this message. |
void |
setPublishDate(java.util.Date publishDate)
Sets the message's scheduled publishing date. |
void |
setRemoteMessageId(java.lang.String remoteMessageId)
Sets the published message's id in the social network. |
void |
setStatus(SocialNetworkMessageStatus status)
Sets the message's publishing status. |
void |
setUrl(java.lang.String url)
Sets the url. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ENTITY_NAME
Constructor Detail |
---|
public SocialNetworkMessage(SocialNetworkAccount account, java.lang.String messageContent, java.util.Date publishDate)
SocialNetworkMessage
using the given
account
with the given message and
publishing date.
account
- the account.messageContent
- the message content.publishDate
- the publishing date.Method Detail |
---|
public java.lang.String getId()
public java.lang.String getMessageContent()
public SocialNetworkAccount getNetworkAccount()
public java.util.Date getPublishDate()
public java.lang.String getRemoteMessageId()
public SocialNetworkMessageStatus getStatus()
public void setMessageConent(java.lang.String content)
content
- the content.public void setNetworkAccount(SocialNetworkAccount account)
account
- the account.public void setPublishDate(java.util.Date publishDate)
publishDate
- the publishing date.public void setRemoteMessageId(java.lang.String remoteMessageId)
remoteMessageId
- the remote message id.public void setStatus(SocialNetworkMessageStatus status)
status
- the status.public void reprocess() throws PortalException
PortalException
public void setLocale(java.util.Locale locale)
locale
- message's locale if associated with content.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |