org.apache.jetspeed.portlets.site
Class PortalSiteManager
java.lang.Object
javax.portlet.GenericPortlet
org.apache.portals.bridges.common.GenericServletPortlet
org.apache.portals.bridges.velocity.GenericVelocityPortlet
org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
org.apache.jetspeed.portlets.site.PortalSiteManager
- All Implemented Interfaces:
- javax.portlet.Portlet, javax.portlet.PortletConfig, org.apache.jetspeed.portlet.SupportsHeaderPhase
public class PortalSiteManager
- extends org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
Manage the Portal Site
- Version:
- $Id: $
- Author:
- David Sean Taylor
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 |
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 |
log
protected final org.apache.commons.logging.Log log
pageManager
protected org.apache.jetspeed.page.PageManager pageManager
registry
protected org.apache.jetspeed.components.portletregistry.PortletRegistry registry
decorationFactory
protected org.apache.jetspeed.decoration.DecorationFactory decorationFactory
SESSION_FOLDERS
protected static final String SESSION_FOLDERS
- See Also:
- Constant Field Values
SESSION_ROOT
protected static final String SESSION_ROOT
- See Also:
- Constant Field Values
FOLDERS
public static final String FOLDERS
- See Also:
- Constant Field Values
JSROOT
public static final String JSROOT
- See Also:
- Constant Field Values
ALL_SECURITY_REFS
public static final String ALL_SECURITY_REFS
- See Also:
- Constant Field Values
castorPageManager
protected org.apache.jetspeed.page.PageManager castorPageManager
PortalSiteManager
public PortalSiteManager()
init
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
- Specified by:
init
in interface javax.portlet.Portlet
- Overrides:
init
in class org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
- Throws:
javax.portlet.PortletException
doView
public void doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Overrides:
doView
in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
- Throws:
javax.portlet.PortletException
IOException
determineRootFolder
protected String determineRootFolder(javax.portlet.RenderRequest request)
determineuserTree
protected String determineuserTree(javax.portlet.RenderRequest request)
retrieveFolders
public org.apache.jetspeed.om.folder.Folder retrieveFolders(javax.portlet.RenderRequest request,
String root)
throws javax.portlet.PortletException
- Throws:
javax.portlet.PortletException
includeHeaderContent
protected void includeHeaderContent(org.apache.jetspeed.headerresource.HeaderResource headerResource)
- Overrides:
includeHeaderContent
in class org.apache.portals.gems.dojo.AbstractDojoVelocityPortlet
doEdit
public void doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Overrides:
doEdit
in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
- Throws:
javax.portlet.PortletException
IOException
processAction
public void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse actionResponse)
throws javax.portlet.PortletException,
IOException
- Specified by:
processAction
in interface javax.portlet.Portlet
- Overrides:
processAction
in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
- Throws:
javax.portlet.PortletException
IOException
fileExt
private String fileExt(String fileName)
getTempFolder
private String getTempFolder(javax.portlet.ActionRequest request)
copyInputStream
private static final void copyInputStream(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
unzipfile
private boolean unzipfile(String file,
String destination,
String sepreator)
createPath
private void createPath(String filePath)
importFolders
private org.apache.jetspeed.om.folder.Folder importFolders(org.apache.jetspeed.om.folder.Folder srcFolder,
String userName,
String destination)
throws org.apache.jetspeed.exception.JetspeedException
- Throws:
org.apache.jetspeed.exception.JetspeedException
lookupPage
private org.apache.jetspeed.om.page.Page lookupPage(String path)
lookupLink
private org.apache.jetspeed.om.page.Link lookupLink(String path)
lookupFolder
private org.apache.jetspeed.om.folder.Folder lookupFolder(String path)
getRealPath
private String getRealPath(String path)
cleanUserFolder
private boolean cleanUserFolder(String userName)
deleteDir
private boolean deleteDir(File dir)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.