public class SocialNetworkMessage extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME
This entity name.
|
Constructor and Description |
---|
SocialNetworkMessage(SocialNetworkAccount account,
String messageContent,
Date publishDate)
Creates a new
SocialNetworkMessage using the given
account with the given message and
publishing date. |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Retrieves the message's id.
|
String |
getMessageContent()
Returns the message's content.
|
SocialNetworkAccount |
getNetworkAccount()
Returns the account that published this message.
|
Date |
getPublishDate()
Returns the message's scheduled publishing date.
|
String |
getRemoteMessageId()
Returns the published message's id in the social network.
|
SocialNetworkMessageStatus |
getStatus()
Returns the message's publishing status.
|
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(Locale locale)
Sets the transient locale for this message.
|
void |
setMessageConent(String content)
Sets the message's content.
|
void |
setNetworkAccount(SocialNetworkAccount account)
Sets the account that published this message.
|
void |
setPublishDate(Date publishDate)
Sets the message's scheduled publishing date.
|
void |
setRemoteMessageId(String remoteMessageId)
Sets the published message's id in the social network.
|
void |
setStatus(SocialNetworkMessageStatus status)
Sets the message's publishing status.
|
void |
setUrl(String url)
Sets the url.
|
String |
toString() |
public static final String ENTITY_NAME
public SocialNetworkMessage(SocialNetworkAccount account, String messageContent, 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.public String getId()
public String getMessageContent()
public SocialNetworkAccount getNetworkAccount()
public Date getPublishDate()
public String getRemoteMessageId()
public SocialNetworkMessageStatus getStatus()
public void setMessageConent(String content)
content
- the content.public void setNetworkAccount(SocialNetworkAccount account)
account
- the account.public void setPublishDate(Date publishDate)
publishDate
- the publishing date.public void setRemoteMessageId(String remoteMessageId)
remoteMessageId
- the remote message id.public void setStatus(SocialNetworkMessageStatus status)
status
- the status.public void reprocess() throws PortalException
PortalException
public void setLocale(Locale locale)
locale
- message's locale if associated with content.public String getUrl()
public void setUrl(String url)
url
- the url value to set.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.