|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.socialnetworkintegration.SocialNetworkMessage
public class SocialNetworkMessage
Represents a message publishing in a social network application.
Field Summary | |
---|---|
static String |
ENTITY_NAME
This entity name. |
Constructor Summary | |
---|---|
SocialNetworkMessage(SocialNetworkAccount account,
String messageContent,
Date publishDate)
Creates a new SocialNetworkMessage using the given
account with the given message and
publishing date. |
Method Summary | |
---|---|
String |
getId()
Retrieves the message's id. |
String |
getMessageContent()
Returns the message's content. |
SocialNetworkAccount |
getNetworkAccount()
Returns the account that published this message. |
Date |
getPublishDate()
Returns the message's scheduled publishing date. |
String |
getRemoteMessageId()
Returns the published message's id in the social network. |
SocialNetworkMessageStatus |
getStatus()
Returns the message's publishing status. |
String |
getUrl()
Returns the url. |
void |
reprocess()
Adds the message back to the queue if there was a problem during processing in the queue. |
void |
setLocale(Locale locale)
Sets the transient locale for this message. |
void |
setMessageConent(String content)
Sets the message's content. |
void |
setNetworkAccount(SocialNetworkAccount account)
Sets the account that published this message. |
void |
setPublishDate(Date publishDate)
Sets the message's scheduled publishing date. |
void |
setRemoteMessageId(String remoteMessageId)
Sets the published message's id in the social network. |
void |
setStatus(SocialNetworkMessageStatus status)
Sets the message's publishing status. |
void |
setUrl(String url)
Sets the url. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ENTITY_NAME
Constructor Detail |
---|
public SocialNetworkMessage(SocialNetworkAccount account, String messageContent, Date publishDate)
SocialNetworkMessage
using the given
account
with the given message and
publishing date.
account
- the account.messageContent
- the message content.publishDate
- the publishing date.Method Detail |
---|
public String getId()
public String getMessageContent()
public SocialNetworkAccount getNetworkAccount()
public Date getPublishDate()
public String getRemoteMessageId()
public SocialNetworkMessageStatus getStatus()
public void setMessageConent(String content)
content
- the content.public void setNetworkAccount(SocialNetworkAccount account)
account
- the account.public void setPublishDate(Date publishDate)
publishDate
- the publishing date.public void setRemoteMessageId(String remoteMessageId)
remoteMessageId
- the remote message id.public void setStatus(SocialNetworkMessageStatus status)
status
- the status.public void reprocess() throws PortalException
PortalException
public void setLocale(Locale locale)
locale
- message's locale if associated with content.public String toString()
toString
in class Object
public String getUrl()
public void setUrl(String url)
url
- the url value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |