org.apache.pluto.driver.services.portal
Class PortletWindowConfig

java.lang.Object
  extended by org.apache.pluto.driver.services.portal.PortletWindowConfig

public class PortletWindowConfig
extends Object

Configuration of a portlet window on the portal page.


Constructor Summary
PortletWindowConfig()
          No-arg constructor.
 
Method Summary
static String createPortletId(String contextPath, String portletName, String metaInfo)
          Creates the portlet ID from context path and portlet name.
static PortletWindowConfig fromId(String portletWindowId)
           
 String getContextPath()
           
 String getId()
           
 String getMetaInfo()
           
 String getPortletName()
           
static String parseContextPath(String portletId)
          Parses out the portlet context path from the portlet ID.
static String parseMetaInfo(String portletId)
           
static String parsePortletName(String portletId)
          Parses out the portlet context path from the portlet ID.
 void setContextPath(String contextPath)
           
 void setMetaInfo(String metaInfo)
           
 void setPortletName(String portletName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletWindowConfig

public PortletWindowConfig()
No-arg constructor.

Method Detail

getId

public String getId()

getContextPath

public String getContextPath()

setContextPath

public void setContextPath(String contextPath)

getPortletName

public String getPortletName()

setPortletName

public void setPortletName(String portletName)

getMetaInfo

public String getMetaInfo()

setMetaInfo

public void setMetaInfo(String metaInfo)

createPortletId

public static String createPortletId(String contextPath,
                                     String portletName,
                                     String metaInfo)
                              throws NullPointerException,
                                     IllegalArgumentException
Creates the portlet ID from context path and portlet name. The portlet ID is constructed by concatinating the context path and the portlet name using a dot ('.'). The method checks that the portlet name parameter does not have a dot. This check is not done for the portlet ID.

Parameters:
contextPath - the portlet context path.
portletName - the portlet name.
Throws:
IllegalArgumentException - if the portletName has a dot
NullPointerException - if the portlet Name or context path is null.

parseContextPath

public static String parseContextPath(String portletId)
Parses out the portlet context path from the portlet ID.

Parameters:
portletId - the portlet ID to parse.
Returns:
the portlet context path.

parsePortletName

public static String parsePortletName(String portletId)
Parses out the portlet context path from the portlet ID.

Parameters:
portletId - the portlet ID to parse.
Returns:
the portlet context path.

parseMetaInfo

public static String parseMetaInfo(String portletId)

fromId

public static PortletWindowConfig fromId(String portletWindowId)


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.