Class 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
    • 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
      • 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