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

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

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

JetspeedNavigationalStateComponent

Version:
$Id: JetspeedNavigationalStateComponent.java 225609 2005-07-27 20:28:07Z weaver $
Author:
David Sean Taylor

Field Summary
private  org.springframework.beans.factory.BeanFactory beanFactory
           
private static org.apache.commons.logging.Log log
           
private  String navBeanName
           
private  HashMap supportedPortletModes
           
private  HashMap supportedWindowStates
           
private  String urlBeanName
           
 
Constructor Summary
JetspeedNavigationalStateComponent(String navBeanName, String urlBeanName, PortalContext portalContext)
           
 
Method Summary
 org.apache.jetspeed.container.state.NavigationalState create()
           create
 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

supportedPortletModes

private final HashMap supportedPortletModes

supportedWindowStates

private final HashMap supportedWindowStates

log

private static final org.apache.commons.logging.Log log

beanFactory

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

JetspeedNavigationalStateComponent

public JetspeedNavigationalStateComponent(String navBeanName,
                                          String urlBeanName,
                                          PortalContext portalContext)
                                   throws ClassNotFoundException
Parameters:
navBeanName - name of the bean implementing Navigational State instances
urlBeanName - name of the bean implementing Portal URL instances
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
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


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