org.silverpeas.notification.message
Interface Message

All Known Implementing Classes:
AbstractMessage, ErrorMessage, InfoMessage, SevereMessage, SuccessMessage, WarningMessage

public interface Message

User: Yohann Chastagnier Date: 07/11/13


Method Summary
 String getContent()
          Gets the content of the message.
 long getDisplayLiveTime()
          Gets the time to live of the message after to have been displayed.
 MessageType getType()
          Gets the type of the message.
 Message setDisplayLiveTime(long milliseconds)
          Sets the time to live of the message after to have been displayed.
 

Method Detail

getType

MessageType getType()
Gets the type of the message. MessageType

Returns:

getContent

String getContent()
Gets the content of the message.

Returns:

setDisplayLiveTime

Message setDisplayLiveTime(long milliseconds)
Sets the time to live of the message after to have been displayed.

Parameters:
milliseconds - 0 <= unlimited
Returns:

getDisplayLiveTime

long getDisplayLiveTime()
Gets the time to live of the message after to have been displayed. Time unit is milliseconds.

Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.