com.silverpeas.portlets.portal
Class DesktopMessages

java.lang.Object
  extended by com.silverpeas.portlets.portal.DesktopMessages

public class DesktopMessages
extends Object

DesktopMessages is used to get the localized messages from DesktopMessages.properties


Constructor Summary
DesktopMessages()
           
 
Method Summary
static String getLocalizedString(String key)
           
static String getLocalizedString(String key, Object[] tokens)
           
static DesktopMessages init(String language)
          This method has to be called at each HTTP Request performed related to portlet management.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopMessages

public DesktopMessages()
Method Detail

init

public static DesktopMessages init(String language)
This method has to be called at each HTTP Request performed related to portlet management.

Parameters:
language - the language of the user. If no one is passed, default platform language is taken.
Returns:

getLocalizedString

public static String getLocalizedString(String key)

getLocalizedString

public static String getLocalizedString(String key,
                                        Object[] tokens)


Copyright © 2016 Silverpeas. All Rights Reserved.