Package lumis.socialnetworkintegration
Class SocialNetworkMessage
- java.lang.Object
-
- lumis.socialnetworkintegration.SocialNetworkMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class SocialNetworkMessage extends java.lang.Object implements java.io.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 java.lang.String
ENTITY_NAME
This entity name.
-
Constructor Summary
Constructors Constructor Description SocialNetworkMessage(SocialNetworkAccount account, java.lang.String messageContent, java.util.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 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()
-
-
-
Field Detail
-
ENTITY_NAME
public static final java.lang.String ENTITY_NAME
This entity name.- Since:
- 6.1.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SocialNetworkMessage
public SocialNetworkMessage(SocialNetworkAccount account, java.lang.String messageContent, java.util.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 java.lang.String getId()
Retrieves the message's id.- Since:
- 6.1.0
-
getMessageContent
public java.lang.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 java.util.Date getPublishDate()
Returns the message's scheduled publishing date.- Since:
- 6.1.0
-
getRemoteMessageId
public java.lang.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(java.lang.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(java.util.Date publishDate)
Sets the message's scheduled publishing date.- Parameters:
publishDate
- the publishing date.- Since:
- 6.1.0
-
setRemoteMessageId
public void setRemoteMessageId(java.lang.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(java.util.Locale locale)
Sets the transient locale for this message.- Parameters:
locale
- message's locale if associated with content.- Since:
- 6.1.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getUrl
public java.lang.String getUrl()
Returns the url.- Returns:
- the url
- Since:
- 6.1.0
-
setUrl
public void setUrl(java.lang.String url)
Sets the url.- Parameters:
url
- the url value to set.- Since:
- 6.1.0
-
-