|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.frameworks.portletcontainer.portalframework.Helper
public final class Helper
Helper class that contains utility functions to use in portal framework.
| Method Summary | |
|---|---|
static void |
appendParams(Map<String,String[]> dest,
Map<String,String[]> src)
Appends params from source to destination map so that params with the same name weren't replaced by each other but appended to a list. |
static PortletInfo |
createPortletInfo(PortalFramework framework,
String plt)
Creates PortletInfo object for a given portlet and fills most of necessary fields. |
static int |
getActionType(String v)
Converts action type from string representation to an integer constant. |
static javax.portlet.PortletMode |
getPortletMode(String v,
Collection<javax.portlet.PortletMode> pms)
Converts portlet mode from string representation to an PortletMode class instance. |
static javax.portlet.WindowState |
getWindowState(String v,
Collection<javax.portlet.WindowState> wss)
Converts window state from string representation to an WindowState class instance. |
static void |
parseParams(javax.servlet.http.HttpServletRequest httpRequest,
String[] portalParamNames,
String[] portalParamNames2,
HashMap<String,String[]> portalParams,
HashMap<String,String[]> portletParams,
HashMap<String,String[]> propertyParams)
Distinguishes portal service parameters from portlet parameters. |
static void |
separatePublicParams(Map<String,String[]> portletRenderParams,
Map<String,String[]> publicRenderParams,
List<String> publicParams)
Distinguishes public parameters from within all public ones basing on public parameter list. |
static String |
string0(String[] strings)
Returns from a string array a string with index 0, if array is null, returns null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void parseParams(javax.servlet.http.HttpServletRequest httpRequest,
String[] portalParamNames,
String[] portalParamNames2,
HashMap<String,String[]> portalParams,
HashMap<String,String[]> portletParams,
HashMap<String,String[]> propertyParams)
httpRequest - http servlet requestportalParamNames - list of names of parameters that are used by the portal frameworkportalParamNames2 - list of names of parameters that are used by a portalportalParams - portal service paramsportletParams - portlet paramspropertyParams - property paramspublic static int getActionType(String v)
v - string representation of an action type
public static javax.portlet.PortletMode getPortletMode(String v,
Collection<javax.portlet.PortletMode> pms)
v - string representation of a portlet modepms - collection of portlet modes that are allowed at a moment
public static javax.portlet.WindowState getWindowState(String v,
Collection<javax.portlet.WindowState> wss)
v - string representation of a window statewss - collection of window states that are allowed at a moment
public static PortletInfo createPortletInfo(PortalFramework framework,
String plt)
framework - PortalFramework instanceplt - portlet name
public static void appendParams(Map<String,String[]> dest,
Map<String,String[]> src)
dest - destination mapsrc - source mappublic static String string0(String[] strings)
strings - string array
public static void separatePublicParams(Map<String,String[]> portletRenderParams,
Map<String,String[]> publicRenderParams,
List<String> publicParams)
portletRenderParams - all paramspublicRenderParams - destination map for public paramspublicParams - public parameters names list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||