com.stratelia.silverpeas.peasCore.servlets
Class WebMessager

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.servlets.WebMessager

public final class WebMessager
extends Object

This utility class provides tools to display easily some dynamic notifications using the notifier plugin.

Author:
Yohann Chastagnier

Method Summary
 Message addError(String message, Object... parameters)
           
 Message addInfo(String message, Object... parameters)
           
 Message addSevere(String message, Object... parameters)
           
 Message addSuccess(String message, Object... parameters)
           
 Message addWarning(String message, Object... parameters)
           
static WebMessager getInstance()
           
 ResourceLocator getResourceLocator(String propertyFileBaseName)
          Gets the resource locator from the given property file and by taking into account of the current known language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WebMessager getInstance()

getResourceLocator

public ResourceLocator getResourceLocator(String propertyFileBaseName)
Gets the resource locator from the given property file and by taking into account of the current known language.

Parameters:
propertyFileBaseName -
Returns:
the aimed resource locator instance.

addSevere

public Message addSevere(String message,
                         Object... parameters)
See Also:
NotifierUtil.addSevere(String, Object...)

addError

public Message addError(String message,
                        Object... parameters)
See Also:
NotifierUtil.addError(String, Object...)

addWarning

public Message addWarning(String message,
                          Object... parameters)
See Also:
NotifierUtil.addWarning(String, Object...)

addSuccess

public Message addSuccess(String message,
                          Object... parameters)
See Also:
NotifierUtil.addSuccess(String, Object...)

addInfo

public Message addInfo(String message,
                       Object... parameters)
See Also:
NotifierUtil.addInfo(String, Object...)


Copyright © 2016 Silverpeas. All Rights Reserved.