org.silverpeas.notification.message
Class AbstractMessage

java.lang.Object
  extended by org.silverpeas.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
protected AbstractMessage(String content)
          Default constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.silverpeas.notification.message.Message
getType
 

Constructor Detail

AbstractMessage

protected AbstractMessage(String content)
Default constructor.

Method Detail

getContent

public String getContent()
Description copied from interface: Message
Gets the content of the message.

Specified by:
getContent in interface Message
Returns:

getDisplayLiveTime

public long getDisplayLiveTime()
Description copied from interface: Message
Gets the time to live of the message after to have been displayed. Time unit is milliseconds.

Specified by:
getDisplayLiveTime in interface Message
Returns:

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 interface Message
Parameters:
milliseconds - 0 <= unlimited
Returns:

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.