Package lumis.socialnetworkintegration
Class SocialNetworkMessage
- java.lang.Object
-
- lumis.socialnetworkintegration.SocialNetworkMessage
-
- All Implemented Interfaces:
Serializable
public class SocialNetworkMessage extends Object implements Serializable
Represents a message publishing in a social network application.- Since:
- 6.1.0
- Version:
- $Revision: 16392 $ $Date: 2014-08-06 11:40:08 -0300 (Wed, 06 Aug 2014) $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
This entity name.
-
Constructor Summary
Constructors Constructor Description SocialNetworkMessage(SocialNetworkAccount account, String messageContent, Date publishDate)
Creates a newSocialNetworkMessage
using the givenaccount
with the given message and publishing date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
ENTITY_NAME
public static final String ENTITY_NAME
This entity name.- Since:
- 6.1.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SocialNetworkMessage
public SocialNetworkMessage(SocialNetworkAccount account, String messageContent, Date publishDate)
Creates a newSocialNetworkMessage
using the givenaccount
with the given message and publishing date.- Parameters:
account
- the account.messageContent
- the message content.publishDate
- the publishing date.- Since:
- 6.1.0
-
-
Method Detail
-
getId
public String getId()
Retrieves the message's id.- Since:
- 6.1.0
-
getMessageContent
public String getMessageContent()
Returns the message's content.- Since:
- 6.1.0
-
getNetworkAccount
public SocialNetworkAccount getNetworkAccount()
Returns the account that published this message.- Since:
- 6.1.0
-
getPublishDate
public Date getPublishDate()
Returns the message's scheduled publishing date.- Since:
- 6.1.0
-
getRemoteMessageId
public String getRemoteMessageId()
Returns the published message's id in the social network.- Since:
- 6.1.0
-
getStatus
public SocialNetworkMessageStatus getStatus()
Returns the message's publishing status.- Since:
- 6.1.0
-
setMessageConent
public void setMessageConent(String content)
Sets the message's content.- Parameters:
content
- the content.- Since:
- 6.1.0
-
setNetworkAccount
public void setNetworkAccount(SocialNetworkAccount account)
Sets the account that published this message.- Parameters:
account
- the account.- Since:
- 6.1.0
-
setPublishDate
public void setPublishDate(Date publishDate)
Sets the message's scheduled publishing date.- Parameters:
publishDate
- the publishing date.- Since:
- 6.1.0
-
setRemoteMessageId
public void setRemoteMessageId(String remoteMessageId)
Sets the published message's id in the social network.- Parameters:
remoteMessageId
- the remote message id.- Since:
- 6.1.0
-
setStatus
public void setStatus(SocialNetworkMessageStatus status)
Sets the message's publishing status.- Parameters:
status
- the status.- Since:
- 6.1.0
-
reprocess
public void reprocess() throws PortalException
Adds the message back to the queue if there was a problem during processing in the queue.- Throws:
PortalException
- Since:
- 6.1.0
-
setLocale
public void setLocale(Locale locale)
Sets the transient locale for this message.- Parameters:
locale
- message's locale if associated with content.- Since:
- 6.1.0
-
getUrl
public String getUrl()
Returns the url.- Returns:
- the url
- Since:
- 6.1.0
-
setUrl
public void setUrl(String url)
Sets the url.- Parameters:
url
- the url value to set.- Since:
- 6.1.0
-
-