org.apache.jetspeed.portlets.site
Class PortalSiteManager

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.apache.portals.bridges.common.GenericServletPortlet
          extended by org.apache.portals.bridges.velocity.GenericVelocityPortlet
              extended by org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
                  extended by org.apache.jetspeed.portlets.site.PortalSiteManager
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig, SupportsHeaderPhase

public class PortalSiteManager
extends AbstractDojoVelocityPortlet

Manage the Portal Site

Version:
$Id: $
Author:
David Sean Taylor

Field Summary
static java.lang.String ALL_SECURITY_REFS
           
protected  PageManager castorPageManager
           
protected  DecorationFactory decorationFactory
           
static java.lang.String FOLDERS
           
static java.lang.String JSROOT
           
protected  org.apache.commons.logging.Log log
           
protected  PageManager pageManager
           
protected  PortletRegistry registry
           
protected static java.lang.String SESSION_FOLDERS
           
protected static java.lang.String SESSION_ROOT
           
 
Fields inherited from class org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
headerPage
 
Fields inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
PORTLET_BRIDGE_CONTEXT
 
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE
 
Constructor Summary
PortalSiteManager()
           
 
Method Summary
protected  java.lang.String determineRootFolder(javax.portlet.RenderRequest request)
           
protected  java.lang.String determineuserTree(javax.portlet.RenderRequest request)
           
 void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  void includeHeaderContent(HeaderResource headerResource)
           
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse actionResponse)
           
 Folder retrieveFolders(javax.portlet.RenderRequest request, java.lang.String root)
           
 
Methods inherited from class org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
doHeader, include, include
 
Methods inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
doCustom, doHelp, doPreferencesEdit, getContext, getContext, render, setupPreferencesEdit
 
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet
getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log

pageManager

protected PageManager pageManager

registry

protected PortletRegistry registry

decorationFactory

protected DecorationFactory decorationFactory

SESSION_FOLDERS

protected static final java.lang.String SESSION_FOLDERS
See Also:
Constant Field Values

SESSION_ROOT

protected static final java.lang.String SESSION_ROOT
See Also:
Constant Field Values

FOLDERS

public static final java.lang.String FOLDERS
See Also:
Constant Field Values

JSROOT

public static final java.lang.String JSROOT
See Also:
Constant Field Values

ALL_SECURITY_REFS

public static final java.lang.String ALL_SECURITY_REFS
See Also:
Constant Field Values

castorPageManager

protected PageManager castorPageManager
Constructor Detail

PortalSiteManager

public PortalSiteManager()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class AbstractDojoVelocityPortlet
Throws:
javax.portlet.PortletException

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   java.io.IOException
Overrides:
doView in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

determineRootFolder

protected java.lang.String determineRootFolder(javax.portlet.RenderRequest request)

determineuserTree

protected java.lang.String determineuserTree(javax.portlet.RenderRequest request)

retrieveFolders

public Folder retrieveFolders(javax.portlet.RenderRequest request,
                              java.lang.String root)
                       throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

includeHeaderContent

protected void includeHeaderContent(HeaderResource headerResource)
Overrides:
includeHeaderContent in class AbstractDojoVelocityPortlet

doEdit

public void doEdit(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   java.io.IOException
Overrides:
doEdit in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse actionResponse)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
java.io.IOException


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