Class AbstractMessageAction

    • Field Detail

      • messageId

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

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

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

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

      • AbstractMessageAction

        public AbstractMessageAction​(String messageId,
                                     String accountId,
                                     String messageContent,
                                     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 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 String getProcessId()
        Returns the process Id in which the task is being performed.
        Returns:
        processId
        Since:
        6.1.0