Package lumis.socialnetworkintegration
Class SocialNetworkMessageQueueItem
- java.lang.Object
-
- lumis.socialnetworkintegration.SocialNetworkMessageQueueItem
-
- All Implemented Interfaces:
java.io.Serializable
public class SocialNetworkMessageQueueItem extends java.lang.Object implements java.io.Serializable
Represents the entity that is an item in the queue for social network message actions (publish, update and remove). It is persisted even after the underlining queue process is deleted (removed or processed). This is was created for mere observance of the queue by the end-user.- Since:
- 6.1.0
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME_QUERY_FIND_BY_MESSAGE_ID_DESC
Named query to bring the latest item associated to a message (by it's id).
-
Constructor Summary
Constructors Constructor Description SocialNetworkMessageQueueItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocialNetworkAccount
getAccount()
Returns the social network account this item belongs to.char
getAction()
Returns the action.java.util.Locale
getLocale()
Returns the locale.java.lang.String
getMessageContent()
Returns the messageContent.java.lang.String
getMessageId()
Returns the messageId.java.lang.String
getProcessId()
Returns the processId.java.util.Date
getPublishDateTime()
Returns the publishDateTime.SocialNetworkMessageStatus
getStatus()
Returns the status.void
setAccount(SocialNetworkAccount account)
Sets the social network account this item belongs to.void
setAction(char action)
Sets the action.void
setLocale(java.util.Locale locale)
Sets the locale.void
setMessageContent(java.lang.String messageContent)
Sets the messageContent.void
setMessageId(java.lang.String messageId)
Sets the messageId.void
setProcessId(java.lang.String processId)
Sets the processId.void
setPublishDateTime(java.util.Date date)
Sets the publishDateTime.void
setStatus(SocialNetworkMessageStatus status)
Sets the status.
-
-
-
Field Detail
-
NAME_QUERY_FIND_BY_MESSAGE_ID_DESC
public static final java.lang.String NAME_QUERY_FIND_BY_MESSAGE_ID_DESC
Named query to bring the latest item associated to a message (by it's id).- See Also:
- Constant Field Values
-
-
Method Detail
-
getMessageId
public java.lang.String getMessageId()
Returns the messageId.- Returns:
- the messageId
- Since:
- 6.1.0
-
setMessageId
public void setMessageId(java.lang.String messageId)
Sets the messageId.- Parameters:
messageId
- the messageId value to set.- Since:
- 6.1.0
-
getProcessId
public java.lang.String getProcessId()
Returns the processId.- Returns:
- the processId
- Since:
- 6.1.0
-
setProcessId
public void setProcessId(java.lang.String processId)
Sets the processId.- Parameters:
processId
- the processId value to set.- Since:
- 6.1.0
-
getMessageContent
public java.lang.String getMessageContent()
Returns the messageContent.- Returns:
- the messageContent
- Since:
- 6.1.0
-
setMessageContent
public void setMessageContent(java.lang.String messageContent)
Sets the messageContent.- Parameters:
messageContent
- the messageContent value to set.- Since:
- 6.1.0
-
getAccount
public SocialNetworkAccount getAccount()
Returns the social network account this item belongs to.- Returns:
- the the social network account this item belongs to.
- Since:
- 6.1.0
-
setAccount
public void setAccount(SocialNetworkAccount account)
Sets the social network account this item belongs to.- Parameters:
account
- the social network account this item belongs to.- Since:
- 6.1.0
-
getLocale
public java.util.Locale getLocale()
Returns the locale.- Returns:
- the locale
- Since:
- 6.1.0
-
setLocale
public void setLocale(java.util.Locale locale)
Sets the locale.- Parameters:
locale
- the locale value to set.- Since:
- 6.1.0
-
getPublishDateTime
public java.util.Date getPublishDateTime()
Returns the publishDateTime.- Returns:
- the publishDateTime
- Since:
- 6.1.0
-
setPublishDateTime
public void setPublishDateTime(java.util.Date date)
Sets the publishDateTime.- Parameters:
date
- the publishDateTime value to set.- Since:
- 6.1.0
-
getStatus
public SocialNetworkMessageStatus getStatus()
Returns the status.- Returns:
- the status
- Since:
- 6.1.0
-
setStatus
public void setStatus(SocialNetworkMessageStatus status)
Sets the status.- Parameters:
status
- the status value to set.- Since:
- 6.1.0
-
getAction
public char getAction()
Returns the action.- Returns:
- the action
- Since:
- 6.1.0
-
setAction
public void setAction(char action)
Sets the action.- Parameters:
action
- the action value to set.- Since:
- 6.1.0
-
-