com.javaplant.portlet
Class PortletUtils

java.lang.Object
  extended bycom.javaplant.portlet.PortletUtils

public class PortletUtils
extends java.lang.Object

Author:
Brad Smith Date: Aug 14, 2005

Constructor Summary
PortletUtils()
           
 
Method Summary
static java.lang.String createWWWFormURLEncoded(java.lang.String s)
           
static PortletConfiguration getPortletConfiguration(javax.portlet.PortletContext portletContext, javax.portlet.PortletConfig portletConfig)
           
static boolean isUserInRole(java.lang.String role, javax.portlet.PortletRequest request)
           
static PortletForm populatePortletForm(PortletForm portletForm, javax.portlet.PortletRequest request)
           
static java.lang.String showInitParams(javax.portlet.PortletConfig config)
          Generates a report displaying the <init-param>'s for this this portlet (from portlet.xml).
static boolean validateJspViewFragment(javax.portlet.PortletContext portletContext, java.lang.String jspFragmentName, java.lang.String jspFragmentURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletUtils

public PortletUtils()
Method Detail

populatePortletForm

public static final PortletForm populatePortletForm(PortletForm portletForm,
                                                    javax.portlet.PortletRequest request)
                                             throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

getPortletConfiguration

public static final PortletConfiguration getPortletConfiguration(javax.portlet.PortletContext portletContext,
                                                                 javax.portlet.PortletConfig portletConfig)
                                                          throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

validateJspViewFragment

public static final boolean validateJspViewFragment(javax.portlet.PortletContext portletContext,
                                                    java.lang.String jspFragmentName,
                                                    java.lang.String jspFragmentURI)
                                             throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

createWWWFormURLEncoded

public static final java.lang.String createWWWFormURLEncoded(java.lang.String s)

isUserInRole

public static final boolean isUserInRole(java.lang.String role,
                                         javax.portlet.PortletRequest request)

showInitParams

public static final java.lang.String showInitParams(javax.portlet.PortletConfig config)
Generates a report displaying the <init-param>'s for this this portlet (from portlet.xml).

Parameters:
config -
Returns:
String containing generated report of portlet configuration.