lumis.socialnetworkintegration
Class SocialNetworkMessage

Package class diagram package SocialNetworkMessage
java.lang.Object
  extended by 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
See Also:
Serialized Form

Field Summary
static String ENTITY_NAME
          This entity name.
 
Constructor Summary
SocialNetworkMessage(SocialNetworkAccount account, String messageContent, Date publishDate)
          Creates a new SocialNetworkMessage using the given account with the given message and publishing date.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 new SocialNetworkMessage using the given account 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

toString

public String toString()
Overrides:
toString in class Object

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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.