org.apache.jetspeed.container.state.impl
Class JetspeedNavigationalStateComponent

java.lang.Object
  extended by org.apache.jetspeed.container.state.impl.JetspeedNavigationalStateComponent
All Implemented Interfaces:
org.apache.jetspeed.container.state.NavigationalStateComponent, org.springframework.beans.factory.BeanFactoryAware

public class JetspeedNavigationalStateComponent
extends Object
implements org.apache.jetspeed.container.state.NavigationalStateComponent, org.springframework.beans.factory.BeanFactoryAware

JetspeedNavigationalStateComponent

Version:
$Id: JetspeedNavigationalStateComponent.java 517124 2007-03-12 08:10:25Z ate $
Author:
David Sean Taylor

Field Summary
private  org.springframework.beans.factory.BeanFactory beanFactory
           
private  String desktopUrlBeanName
           
private  String navBeanName
           
private  Map supportedPortletModes
           
private  Map supportedWindowStates
           
private  String urlBeanName
           
 
Constructor Summary
JetspeedNavigationalStateComponent(String navBeanName, String urlBeanName, org.apache.jetspeed.PortalContext portalContext, String desktopUrlBeanName)
           
 
Method Summary
 org.apache.jetspeed.container.state.NavigationalState create()
           create
 org.apache.jetspeed.container.url.PortalURL createDesktopURL(javax.servlet.http.HttpServletRequest request, String characterEncoding)
           
 org.apache.jetspeed.container.url.PortalURL createURL(javax.servlet.http.HttpServletRequest request, String characterEncoding)
           createURL
 javax.portlet.PortletMode lookupPortletMode(String name)
           
 javax.portlet.WindowState lookupWindowState(String name)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

navBeanName

private final String navBeanName

urlBeanName

private final String urlBeanName

desktopUrlBeanName

private final String desktopUrlBeanName

supportedPortletModes

private final Map supportedPortletModes

supportedWindowStates

private final Map supportedWindowStates

beanFactory

private org.springframework.beans.factory.BeanFactory beanFactory
Constructor Detail

JetspeedNavigationalStateComponent

public JetspeedNavigationalStateComponent(String navBeanName,
                                          String urlBeanName,
                                          org.apache.jetspeed.PortalContext portalContext,
                                          String desktopUrlBeanName)
                                   throws ClassNotFoundException
Parameters:
navBeanName - name of the bean implementing Navigational State instances
urlBeanName - name of the bean implementing Portal URL instances
navCodecBeanName - name of the bean implementing Navigational State Codec instance
Throws:
ClassNotFoundException - if navClassName or urlClassName do not exist.
Method Detail

create

public org.apache.jetspeed.container.state.NavigationalState create()
                                                             throws org.apache.jetspeed.container.state.FailedToCreateNavStateException

create

Specified by:
create in interface org.apache.jetspeed.container.state.NavigationalStateComponent
Returns:
@throws FailedToCreateNavStateException if the nav state could not be created. Under normal circumstances, this should not happen.
Throws:
org.apache.jetspeed.container.state.FailedToCreateNavStateException
See Also:
org.apache.jetspeed.container.state.NavigationalStateComponent#create(org.apache.jetspeed.request.RequestContext)

createURL

public org.apache.jetspeed.container.url.PortalURL createURL(javax.servlet.http.HttpServletRequest request,
                                                             String characterEncoding)

createURL

Specified by:
createURL in interface org.apache.jetspeed.container.state.NavigationalStateComponent
Parameters:
context -
Returns:
See Also:
org.apache.jetspeed.container.state.NavigationalStateComponent#createURL(org.apache.jetspeed.request.RequestContext)

lookupWindowState

public javax.portlet.WindowState lookupWindowState(String name)
Specified by:
lookupWindowState in interface org.apache.jetspeed.container.state.NavigationalStateComponent

lookupPortletMode

public javax.portlet.PortletMode lookupPortletMode(String name)
Specified by:
lookupPortletMode in interface org.apache.jetspeed.container.state.NavigationalStateComponent

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

createDesktopURL

public org.apache.jetspeed.container.url.PortalURL createDesktopURL(javax.servlet.http.HttpServletRequest request,
                                                                    String characterEncoding)
Specified by:
createDesktopURL in interface org.apache.jetspeed.container.state.NavigationalStateComponent


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.