info.magnolia.ui.api.message
Class Message
java.lang.Object
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.
MESSAGE_VIEW
public static final String MESSAGE_VIEW
- See Also:
- Constant Field Values
Message
public Message()
Message
public Message(long timestampInMillis)
Message
public Message(MessageType type,
String subject,
String message)
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.