|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.contentnode.rest.model.response.Message
public class Message
Represents a message that can be displayed in the MessageLine.
Nested Class Summary | |
---|---|
static class |
Message.Type
Severity for a message |
Constructor Summary | |
---|---|
Message()
Default constructor needed for JAXB |
|
Message(Message.Type type,
String message)
Simple constructor for a message. |
|
Message(Message.Type type,
String message,
String image,
long timestamp)
Constructor for a Message with all parameters. |
Method Summary | |
---|---|
Integer |
getId()
Get the message id |
String |
getImage()
|
String |
getMessage()
|
User |
getSender()
Get the sender of the message |
long |
getTimestamp()
|
Message.Type |
getType()
|
void |
setId(Integer id)
Set the message id |
void |
setImage(String image)
|
void |
setMessage(String message)
|
void |
setSender(User sender)
Set the sender of the message |
void |
setTimestamp(long timestamp)
|
void |
setType(Message.Type type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message()
public Message(Message.Type type, String message, String image, long timestamp)
type
- Type of the messagemessage
- Text of the messageimage
- URL of the image that should be displayed aside the messagepublic Message(Message.Type type, String message)
severity
- message
- Method Detail |
---|
public String getMessage()
public void setMessage(String message)
public Message.Type getType()
public void setType(Message.Type type)
public long getTimestamp()
public void setTimestamp(long timestamp)
public String getImage()
public void setImage(String image)
public User getSender()
public void setSender(User sender)
sender
- message senderpublic void setId(Integer id)
id
- id of the messagepublic Integer getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |