org.exoplatform.services.wsrp.utils
Class Utils

java.lang.Object
  extended by org.exoplatform.services.wsrp.utils.Utils

public class Utils
extends Object

Author:
Mestrallet Benjamin benjmestrallet@users.sourceforge.net

Constructor Summary
Utils()
           
 
Method Summary
static String changeUrlTypeFromJSRPortletToWSRP(String type)
           
static String changeUrlTypeFromWSRPToJSRPortlet(String type)
           
static org.exoplatform.services.wsrp.type.LocalizedString getLocalizedString(String value, String lang)
           
static org.exoplatform.services.wsrp.type.LocalizedString getLocalizedString(String value, String lang, String rn)
           
static Map<String,String[]> getMapParametersFromNamedStringArray(org.exoplatform.services.wsrp.type.NamedString[] array)
          Convert from NamedString[] to Map.
static org.exoplatform.services.wsrp.type.NamedString[] getNamedStringArrayParametersFromMap(Map<String,String[]> params, boolean selectOnlyNonWSRP)
          Convert from input.getRenderParameters() to interactionRequest.setFormParameters(NamedString[]).
static org.exoplatform.services.wsrp.type.NamedString getNamesString(String name, String value)
           
static String getStringFromLocalizedString(org.exoplatform.services.wsrp.type.LocalizedString ls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getStringFromLocalizedString

public static String getStringFromLocalizedString(org.exoplatform.services.wsrp.type.LocalizedString ls)

getLocalizedString

public static org.exoplatform.services.wsrp.type.LocalizedString getLocalizedString(String value,
                                                                                    String lang,
                                                                                    String rn)

getLocalizedString

public static org.exoplatform.services.wsrp.type.LocalizedString getLocalizedString(String value,
                                                                                    String lang)

getNamesString

public static org.exoplatform.services.wsrp.type.NamedString getNamesString(String name,
                                                                            String value)

changeUrlTypeFromJSRPortletToWSRP

public static String changeUrlTypeFromJSRPortletToWSRP(String type)

changeUrlTypeFromWSRPToJSRPortlet

public static String changeUrlTypeFromWSRPToJSRPortlet(String type)

getNamedStringArrayParametersFromMap

public static org.exoplatform.services.wsrp.type.NamedString[] getNamedStringArrayParametersFromMap(Map<String,String[]> params,
                                                                                                    boolean selectOnlyNonWSRP)
Convert from input.getRenderParameters() to interactionRequest.setFormParameters(NamedString[]).

Parameters:
parameters - Map
boolean - value to store only those parameters which starting with "wsrp-" prefix
Returns:

getMapParametersFromNamedStringArray

public static Map<String,String[]> getMapParametersFromNamedStringArray(org.exoplatform.services.wsrp.type.NamedString[] array)
Convert from NamedString[] to Map.

Parameters:
NamedString[] -
Returns:
Map


Copyright © 2009 eXo Platform SAS. All Rights Reserved.