Class AbstractMessage
- java.lang.Object
-
- org.silverpeas.core.notification.message.AbstractMessage
-
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
ErrorMessage
,InfoMessage
,SevereMessage
,SuccessMessage
,WarningMessage
public abstract class AbstractMessage extends Object implements Message
User: Yohann Chastagnier Date: 07/11/13
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMessage(String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getContent()
Gets the content of the message.long
getDisplayLiveTime()
Gets the time to live of the message after to have been displayed.int
hashCode()
Message
setDisplayLiveTime(long milliseconds)
Sets the time to live of the message after to have been displayed.
-
-
-
Constructor Detail
-
AbstractMessage
protected AbstractMessage(String content)
-
-
Method Detail
-
getContent
public String getContent()
Description copied from interface:Message
Gets the content of the message.- Specified by:
getContent
in interfaceMessage
- Returns:
- the message content
-
getDisplayLiveTime
public long getDisplayLiveTime()
Description copied from interface:Message
Gets the time to live of the message after to have been displayed.- Specified by:
getDisplayLiveTime
in interfaceMessage
- Returns:
- the time in milliseconds.
-
setDisplayLiveTime
public Message setDisplayLiveTime(long milliseconds)
Description copied from interface:Message
Sets the time to live of the message after to have been displayed.- Specified by:
setDisplayLiveTime
in interfaceMessage
- Parameters:
milliseconds
- 0 = unlimited- Returns:
- the message
-
-