Class AbstractMessageAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String accountId
      Id of the account that should publish/update/remove the message
      protected java.lang.String messageContent
      Content that should be published/updated/removed
      protected java.lang.String messageId
      Id of the message in the current portal.
      protected java.util.Date publishDate
      Publish date/time
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMessageAction​(java.lang.String messageId, java.lang.String accountId, java.lang.String messageContent, java.util.Date publishDate)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getLatestRemoteId​(ITransaction transaction)
      Retrieves the latest remote id for a message.
      protected java.lang.String getProcessId()
      Returns the process Id in which the task is being performed.
      protected void setStatus​(ITransaction transaction, SocialNetworkMessageStatus status)
      Updates a process in the queue to a specific status
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface lumis.portal.processqueue.IQueueTask

        run
    • Field Detail

      • messageId

        protected final java.lang.String messageId
        Id of the message in the current portal.
        Since:
        6.1.0
      • messageContent

        protected final java.lang.String messageContent
        Content that should be published/updated/removed
        Since:
        6.1.0
      • accountId

        protected final java.lang.String accountId
        Id of the account that should publish/update/remove the message
        Since:
        6.1.0
      • publishDate

        protected final java.util.Date publishDate
        Publish date/time
        Since:
        6.1.0
    • Constructor Detail

      • AbstractMessageAction

        public AbstractMessageAction​(java.lang.String messageId,
                                     java.lang.String accountId,
                                     java.lang.String messageContent,
                                     java.util.Date publishDate)
        Default constructor. All subclasses should override this method calling super(message).
        Parameters:
        messageId - id of the message to be published
        accountId - id of the account that should publish/update/remove the message
        messageContent - content that should be published/updated/removed
        publishDate - date/time the messaga should be published/updated/removed
    • Method Detail

      • getLatestRemoteId

        protected java.lang.String getLatestRemoteId​(ITransaction transaction)
                                              throws DaoException
        Retrieves the latest remote id for a message.
        Parameters:
        transaction - to occur the retrieval
        Returns:
        the latest remote id.
        Throws:
        DaoException
        Since:
        6.1.0
      • getProcessId

        protected java.lang.String getProcessId()
        Returns the process Id in which the task is being performed.
        Returns:
        processId
        Since:
        6.1.0