org.apache.jetspeed.portal
Class PortletURIManager

java.lang.Object
  extended byorg.apache.jetspeed.portal.PortletURIManager

public class PortletURIManager
extends java.lang.Object

Handles providing URIs to Portlet interface providers.

The URIs are based on the individual actions such as Edit/Max. Editing a portlet allows you to preview it and perform certain actions such as subscribing to it or adding it to your Mozilla sidebar. Maximizing a portlet allows you to view this portlet at full screen.

The following HTTP parameters are used to allow Jetspeed to figure out what to render:

        name: fetches the name from the portlet registry and then adds some more info:
            - url: the URL on which this portlet is based
            - parameter-{NAME]:  allows the client to add params to a Portlet
            - metainfo-[NAME}: allows the client to supply the title or description
              of the Portlet
    

Version:
$Id: PortletURIManager.java,v 1.40 2004/02/23 04:05:35 jford Exp $
Author:
Kevin A. Burton, Santiago Gala

Constructor Summary
PortletURIManager()
           
 
Method Summary
static PortletEntry getEntry(org.apache.turbine.util.ParameterParser params)
           Given a ParameterParser, get a PortletEntry.
static org.apache.turbine.util.DynamicURI getPortletEditURI(Portlet portlet, org.apache.turbine.util.RunData data)
          Get a URI for viewing this portlet by itself.
static org.apache.turbine.util.DynamicURI getPortletMaxURI(RegistryEntry entry, org.apache.turbine.util.RunData data)
          Get a URL for viewing this URL full screen.
static org.apache.turbine.util.DynamicURI getPortletMaxURI(java.lang.String name, org.apache.turbine.util.RunData data)
          Get a PortletURI by it's name and rundata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletURIManager

public PortletURIManager()
Method Detail

getPortletMaxURI

public static org.apache.turbine.util.DynamicURI getPortletMaxURI(java.lang.String name,
                                                                  org.apache.turbine.util.RunData data)
Get a PortletURI by it's name and rundata

See Also:
getPortletMaxURI( RegistryEntry, RunData)

getPortletEditURI

public static org.apache.turbine.util.DynamicURI getPortletEditURI(Portlet portlet,
                                                                   org.apache.turbine.util.RunData data)
Get a URI for viewing this portlet by itself. This is the only method that will work if the user has disabled cookies.


getPortletMaxURI

public static org.apache.turbine.util.DynamicURI getPortletMaxURI(RegistryEntry entry,
                                                                  org.apache.turbine.util.RunData data)
Get a URL for viewing this URL full screen. This is the only method that will work if the user has disabled cookies.


getEntry

public static final PortletEntry getEntry(org.apache.turbine.util.ParameterParser params)

Given a ParameterParser, get a PortletEntry. This is used so that when you have a URI created from PortletURIManager you can get back the PortletEntry that created it originally.

Return null if we aren't able to figure out the PortletEntry



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.