public abstract class MessageOfTheDay extends Object
DynamicSet.bind(binder(), MessageOfTheDay.class).to(MyMessage.class);
Constructor and Description |
---|
MessageOfTheDay() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getHtmlMessage()
Retrieve the message of the day as an HTML fragment.
|
abstract String |
getMessageId()
Unique identifier for this message.
|
Date |
getRedisplay()
When should the message be displayed?
|
public abstract String getHtmlMessage()
public abstract String getMessageId()
Messages with the same identifier will be hidden from the user until redisplay has occurred.
public Date getRedisplay()
Default implementation returns tomorrow at 00:00:00 GMT
.