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.
  • Methodendetails

    • save

      public boolean save()
      Save the message to the database.
      Angegeben von:
      save in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      true if the message could be saved, false otherwise.
    • getId

      public String getId()
      Get the GUID of the message.
      Angegeben von:
      getId in Schnittstelle de.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:
      isComplete in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      true if the message is properly initialized, false otherwise.
    • isDirty

      public boolean isDirty()
      Determine if the message was modified.
      Angegeben von:
      isDirty in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      true if the message was modifier, false otherwise.
    • getCreationDate

      public Timestamp getCreationDate()
      Get the creation date of the message.
      Angegeben von:
      getCreationDate in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      The creation date.
    • setAppGuid

      public void setAppGuid(String p_strAppGuid)
      Set the message's application GUID.

      The target identifier is adjusted properly.

      Parameter:
      p_strAppGuid - The GUID to be set.
    • getAppGuid

      public String getAppGuid()
      Get the message's application GUID.
      Angegeben von:
      getAppGuid in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
    • getTargetGuid

      public String getTargetGuid()
      Get the message's target GUID.
      Angegeben von:
      getTargetGuid in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      The target GUID.
    • setRecId

      public void setRecId(String p_strRecId)
      Set the messages record identifier.
    • getRecId

      public String getRecId()
      Get the message's record identifier.
      Angegeben von:
      getRecId in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      The record identifier.
    • setSender

      public void setSender(String p_strSenderId)
      Set the sender of the message.
      Parameter:
      p_strSenderId - The GUID of the sender.
    • getSender

      public String getSender()
      Get the GUID of the sender.
      Angegeben von:
      getSender in Schnittstelle de.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:
      hasRecipients in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      true if the message has recipients, false otherwise.
    • hasRecipient

      public boolean hasRecipient(String p_strRecipientId)
      Test if this message has the specified individual recipient.
      Angegeben von:
      hasRecipient in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Parameter:
      p_strRecipientId - The GUID of the individual recipient. return true if the message has the specified individual recipient.
    • addRecipient

      public void addRecipient(String p_strRecipientId)
      Add a recipient of this message.
      Angegeben von:
      addRecipient in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Parameter:
      p_strRecipientId - The GUID of the recipient.
    • addRecipients

      public void addRecipients(String[] p_astrRecipientList)
      Add recipients of this message.
      Angegeben von:
      addRecipients in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Parameter:
      p_astrRecipientList - The GUIDs of the recipients of this message.
    • getRecipients

      public Iterator<de.uplanet.lucy.server.newsagent.RecipientStatus> getRecipients()
      Get an (ordered) iterator over the recipients GUID collection. The elements accessed through the iterator are actually RecipientStatus objects so users must apply the RecipientStatus.toString() method to obtain the string representation.
      Angegeben von:
      getRecipients in Schnittstelle de.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:
      clearRecipients in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
    • setSubject

      public void setSubject(String p_strSubject)
      Set the subject of the message.
      Parameter:
      p_strSubject - The subject.
    • getSubject

      public String getSubject()
      Get the subject of the message.
      Angegeben von:
      getSubject in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      The subject of the message.
    • setBody

      public void setBody(String p_strBody)
      Set the body of the message.
      Parameter:
      p_strBody - The body.
    • getBody

      public String getBody()
      Get the body of the message.
      Angegeben von:
      getBody in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      The body of the message.
    • setExpirationDate

      public void setExpirationDate(Timestamp p_dtExpire)
      Set the expiration date of the message.
      Parameter:
      p_dtExpire - The expiration date.
    • getExpirationDate

      public Timestamp getExpirationDate()
      Get the expiration date of the message.
      Angegeben von:
      getExpirationDate in Schnittstelle de.uplanet.lucy.server.newsagent.IMessage
      Gibt zurück:
      The expiration date.
    • getUrl

      public String 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:
      true if the message has been read by the current user, false if this is not the case or if the visited-status can not be determined.
    • set

      public void set(String p_strName, Object p_objValue)
      Set a property for this message.
      Parameter:
      p_strName - The name of the property.
      p_objValue - The value of the property.
    • get

      public Object get(String p_strName)
      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:
      • m_strRecipientId
    • markDeleted

      public void markDeleted()
      Mark this message as deleted if it is currently associated with a certain recipient.
      Siehe auch:
      • m_strRecipientId
    • dump

      public String dump()
      Angegeben von:
      dump in Schnittstelle de.uplanet.util.IDumpable