Class AbstractMessageAction
- java.lang.Object
-
- lumis.portal.processqueue.AbstractQueueTask
-
- lumis.socialnetworkintegration.action.AbstractMessageAction
-
- All Implemented Interfaces:
java.io.Serializable
,IQueueTask
- Direct Known Subclasses:
MessagePublisher
,MessageRemover
,MessageUpdater
public abstract class AbstractMessageAction extends AbstractQueueTask
High level representation of what the Mesasge/Content interactions with the Asynch queues should be.- Since:
- 6.1.0
- Version:
- $Revision: 24878 $ $Date: 2022-03-15 01:44:27 -0300 (Tue, 15 Mar 2022) $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractMessageAction.AfterRollbackSetErrorStatus
Class that will set theSocialNetworkMessage
toSocialNetworkMessageStatus.Error
after the rollback has occurred.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
accountId
Id of the account that should publish/update/remove the messageprotected java.lang.String
messageContent
Content that should be published/updated/removedprotected 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 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/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
-
setStatus
protected void setStatus(ITransaction transaction, SocialNetworkMessageStatus status) throws DaoException
Updates a process in the queue to a specific status- Parameters:
session
-- Throws:
DaoException
- Since:
- 6.1.0
-
-