Package de.uplanet.lucy.server.newsagent
Klasse Message
java.lang.Object
de.uplanet.lucy.server.newsagent.Message
- Alle implementierten Schnittstellen:
de.uplanet.lucy.server.newsagent.IMessage,de.uplanet.util.IDumpable
public final class Message
extends Object
implements de.uplanet.lucy.server.newsagent.IMessage, de.uplanet.util.IDumpable
Represents a message that is managed by a
NewsAgent.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddRecipient(String p_strRecipientId) Add a recipient of this message.voidaddRecipients(String[] p_astrRecipientList) Add recipients of this message.voidRemove all recipients from this message.dump()Get a property of this message.Get the message's application GUID.getBody()Get the body of the message.Get the creation date of the message.Get the expiration date of the message.getId()Get the GUID of the message.getRecId()Get the message's record identifier.Iterator<de.uplanet.lucy.server.newsagent.RecipientStatus> Get an (ordered) iterator over the recipients GUID collection.Get the GUID of the sender.Get the subject of the message.Get the message's target GUID.getUrl()The URL that is associated to the message.booleanhasRecipient(String p_strRecipientId) Test if this message has the specified individual recipient.booleanTest if this message has the specified individual recipient.booleanDetermine if the message is properly initialized.booleanisDirty()Determine if the message was modified.booleanDetermine if the message has been read by the current user.voidMark this message as deleted if it is currently associated with a certain recipient.voidmarkRead()Mark this message as read if it is currently associated with a certain recipient.booleansave()Save the message to the database.voidSet a property for this message.voidsetAppGuid(String p_strAppGuid) Set the message's application GUID.voidSet the body of the message.voidsetExpirationDate(Timestamp p_dtExpire) Set the expiration date of the message.voidSet the messages record identifier.voidSet the sender of the message.voidsetSubject(String p_strSubject) Set the subject of the message.
-
Methodendetails
-
save
public boolean save()Save the message to the database.- Angegeben von:
savein Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
trueif the message could be saved,falseotherwise.
-
getId
Get the GUID of the message.- Angegeben von:
getIdin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The GUID of the message.
-
isComplete
public boolean isComplete()Determine if the message is properly initialized.- Angegeben von:
isCompletein Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
trueif the message is properly initialized,falseotherwise.
-
isDirty
public boolean isDirty()Determine if the message was modified.- Angegeben von:
isDirtyin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
trueif the message was modifier,falseotherwise.
-
getCreationDate
Get the creation date of the message.- Angegeben von:
getCreationDatein Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The creation date.
-
setAppGuid
Set the message's application GUID.The target identifier is adjusted properly.
- Parameter:
p_strAppGuid- The GUID to be set.
-
getAppGuid
Get the message's application GUID.- Angegeben von:
getAppGuidin Schnittstellede.uplanet.lucy.server.newsagent.IMessage
-
getTargetGuid
Get the message's target GUID.- Angegeben von:
getTargetGuidin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The target GUID.
-
setRecId
Set the messages record identifier. -
getRecId
Get the message's record identifier.- Angegeben von:
getRecIdin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The record identifier.
-
setSender
Set the sender of the message.- Parameter:
p_strSenderId- The GUID of the sender.
-
getSender
Get the GUID of the sender.- Angegeben von:
getSenderin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The GUID of the sender.
-
hasRecipients
public boolean hasRecipients()Test if this message has the specified individual recipient.- Angegeben von:
hasRecipientsin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
trueif the message has recipients,falseotherwise.
-
hasRecipient
Test if this message has the specified individual recipient.- Angegeben von:
hasRecipientin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Parameter:
p_strRecipientId- The GUID of the individual recipient. returntrueif the message has the specified individual recipient.
-
addRecipient
Add a recipient of this message.- Angegeben von:
addRecipientin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Parameter:
p_strRecipientId- The GUID of the recipient.
-
addRecipients
Add recipients of this message.- Angegeben von:
addRecipientsin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Parameter:
p_astrRecipientList- The GUIDs of the recipients of this message.
-
getRecipients
Get an (ordered) iterator over the recipients GUID collection. The elements accessed through the iterator are actuallyRecipientStatusobjects so users must apply theRecipientStatus.toString()method to obtain the string representation.- Angegeben von:
getRecipientsin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- An ordered iterator over the individual recipients of the message.
-
clearRecipients
public void clearRecipients()Remove all recipients from this message.- Angegeben von:
clearRecipientsin Schnittstellede.uplanet.lucy.server.newsagent.IMessage
-
setSubject
Set the subject of the message.- Parameter:
p_strSubject- The subject.
-
getSubject
Get the subject of the message.- Angegeben von:
getSubjectin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The subject of the message.
-
setBody
Set the body of the message.- Parameter:
p_strBody- The body.
-
getBody
Get the body of the message.- Angegeben von:
getBodyin Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The body of the message.
-
setExpirationDate
Set the expiration date of the message.- Parameter:
p_dtExpire- The expiration date.
-
getExpirationDate
Get the expiration date of the message.- Angegeben von:
getExpirationDatein Schnittstellede.uplanet.lucy.server.newsagent.IMessage- Gibt zurück:
- The expiration date.
-
getUrl
The URL that is associated to the message.- Gibt zurück:
- The associated URL.
-
isVisited
public boolean isVisited()Determine if the message has been read by the current user.- Gibt zurück:
trueif the message has been read by the current user,falseif this is not the case or if the visited-status can not be determined.
-
set
Set a property for this message.- Parameter:
p_strName- The name of the property.p_objValue- The value of the property.
-
get
Get a property of this message.- Parameter:
p_strName- The name of the property.- Gibt zurück:
- The value of the property.
-
markRead
public void markRead()Mark this message as read if it is currently associated with a certain recipient.- Siehe auch:
-
markDeleted
public void markDeleted()Mark this message as deleted if it is currently associated with a certain recipient.- Siehe auch:
-
dump
- Angegeben von:
dumpin Schnittstellede.uplanet.util.IDumpable
-