public abstract class AbstractMessageAction extends AbstractQueueTask
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractMessageAction.AfterRollbackSetErrorStatus
Class that will set the
SocialNetworkMessage to SocialNetworkMessageStatus.Error after the rollback has occurred. |
Modifier and Type | Field and Description |
---|---|
protected String |
accountId
Id of the account that should publish/update/remove the message
|
protected String |
messageContent
Content that should be published/updated/removed
|
protected String |
messageId
Id of the message in the current portal.
|
protected Date |
publishDate
Publish date/time
|
Constructor and Description |
---|
AbstractMessageAction(String messageId,
String accountId,
String messageContent,
Date publishDate)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getLatestRemoteId(ITransaction transaction)
Retrieves the latest remote id for a message.
|
protected 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
protected final String messageId
protected final String messageContent
protected final String accountId
protected final Date publishDate
public AbstractMessageAction(String messageId, String accountId, String messageContent, Date publishDate)
messageId
- id of the message to be publishedaccountId
- id of the account that should publish/update/remove the messagemessageContent
- content that should be published/updated/removedpublishDate
- date/time the messaga should be published/updated/removedprotected String getLatestRemoteId(ITransaction transaction) throws DaoException
transaction
- to occur the retrievalDaoException
protected String getProcessId()
protected void setStatus(ITransaction transaction, SocialNetworkMessageStatus status) throws DaoException
session
- DaoException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.