info.magnolia.ui.api.message
Class Message

java.lang.Object
  extended by info.magnolia.ui.api.message.Message
All Implemented Interfaces:
Cloneable

public class Message
extends Object
implements Cloneable

Models a message. Except for timestamp all fields are optional.


Field Summary
static String MESSAGE_VIEW
           
 
Constructor Summary
Message()
           
Message(long timestampInMillis)
           
Message(MessageType type, String subject, String message)
           
 
Method Summary
 void addProperty(String name, Object value)
           
 Message clone()
           
 String getId()
           
 String getMessage()
           
 Set<String> getPropertNames()
           
 Object getProperty(String name)
           
 String getSender()
           
 String getSubject()
           
 long getTimestamp()
           
 MessageType getType()
           
 String getView()
           
 boolean hasProperty(String name)
           
 boolean isCleared()
           
 void setCleared(boolean cleared)
           
 void setId(String id)
           
 void setMessage(String message)
           
 void setSender(String sender)
           
 void setSubject(String subject)
           
 void setType(MessageType type)
           
 void setView(String view)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_VIEW

public static final String MESSAGE_VIEW
See Also:
Constant Field Values
Constructor Detail

Message

public Message()

Message

public Message(long timestampInMillis)

Message

public Message(MessageType type,
               String subject,
               String message)
Method Detail

getTimestamp

public long getTimestamp()

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getSubject

public String getSubject()

setSubject

public void setSubject(String subject)

getType

public MessageType getType()

setType

public void setType(MessageType type)

setId

public void setId(String id)

getId

public String getId()

isCleared

public boolean isCleared()

setCleared

public void setCleared(boolean cleared)

getSender

public String getSender()

setSender

public void setSender(String sender)

getView

public String getView()

setView

public void setView(String view)

clone

public Message clone()
              throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

addProperty

public void addProperty(String name,
                        Object value)

getProperty

public Object getProperty(String name)

hasProperty

public boolean hasProperty(String name)

getPropertNames

public Set<String> getPropertNames()


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.