org.apache.jetspeed.profiler.impl
Class CreateUserTemplatePagesValveImpl

java.lang.Object
  extended by org.apache.jetspeed.pipeline.valve.AbstractValve
      extended by org.apache.jetspeed.profiler.impl.ProfilerValveImpl
          extended by org.apache.jetspeed.profiler.impl.CreateUserTemplatePagesValveImpl
All Implemented Interfaces:
PageProfilerValve, org.apache.jetspeed.pipeline.valve.Valve

public class CreateUserTemplatePagesValveImpl
extends ProfilerValveImpl

CreateUserTemplatePagesValveImpl Create User Pages from template folder on first login feature The CreateUserTemplatePagesValveImpl creates a new user's home page from the user template folder.

Version:
$Id: CreateUserTemplatePagesValveImpl.java 555324 2007-07-11 16:23:56Z ate $
Author:
Woonsan Ko

Field Summary
protected  String defaultTemplateFolder
           
private static org.apache.commons.logging.Log log
           
protected  org.apache.jetspeed.page.PageManager pageManager
           
static String USER_TEMPLATE_FOLDER_REQUEST_ATTR_KEY
           
 
Fields inherited from class org.apache.jetspeed.profiler.impl.ProfilerValveImpl
PORTAL_SITE_REQUEST_CONTEXT_ATTR_KEY, PORTAL_SITE_SESSION_CONTEXT_ATTR_KEY, PROFILED_PAGE_CONTEXT_ATTR_KEY
 
Fields inherited from interface org.apache.jetspeed.pipeline.valve.PageProfilerValve
PROFILE_LOCATOR_REQUEST_ATTR_KEY, PROFILE_LOCATORS_PER_PRINCIPAL
 
Constructor Summary
CreateUserTemplatePagesValveImpl(org.apache.jetspeed.profiler.Profiler profiler, org.apache.jetspeed.portalsite.PortalSite portalSite, boolean requestFallback, boolean useHistoryPageManager, org.apache.jetspeed.page.PageManager pageManager)
          CreateUserTemplatePagesValveImpl - constructor
CreateUserTemplatePagesValveImpl(org.apache.jetspeed.profiler.Profiler profiler, org.apache.jetspeed.portalsite.PortalSite portalSite, boolean requestFallback, org.apache.jetspeed.page.PageManager pageManager)
          CreateUserTemplatePagesValveImpl - constructor
CreateUserTemplatePagesValveImpl(org.apache.jetspeed.profiler.Profiler profiler, org.apache.jetspeed.portalsite.PortalSite portalSite, org.apache.jetspeed.page.PageManager pageManager)
          CreateUserTemplatePagesValveImpl - constructor
 
Method Summary
private  boolean createUserFolderPages(org.apache.jetspeed.request.RequestContext request)
           
 void invoke(org.apache.jetspeed.request.RequestContext request, org.apache.jetspeed.pipeline.valve.ValveContext context)
           
 void setDefaultTemplateFolder(String defaultTemplateFolder)
           
 
Methods inherited from class org.apache.jetspeed.profiler.impl.ProfilerValveImpl
getPageActionAccess, hasPipelineChanged, toString
 
Methods inherited from class org.apache.jetspeed.pipeline.valve.AbstractValve
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.pipeline.valve.Valve
initialize
 

Field Detail

log

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

USER_TEMPLATE_FOLDER_REQUEST_ATTR_KEY

public static final String USER_TEMPLATE_FOLDER_REQUEST_ATTR_KEY
See Also:
Constant Field Values

pageManager

protected org.apache.jetspeed.page.PageManager pageManager

defaultTemplateFolder

protected String defaultTemplateFolder
Constructor Detail

CreateUserTemplatePagesValveImpl

public CreateUserTemplatePagesValveImpl(org.apache.jetspeed.profiler.Profiler profiler,
                                        org.apache.jetspeed.portalsite.PortalSite portalSite,
                                        boolean requestFallback,
                                        boolean useHistoryPageManager,
                                        org.apache.jetspeed.page.PageManager pageManager)
CreateUserTemplatePagesValveImpl - constructor

Parameters:
profiler - profiler component reference
portalSite - portal site component reference
requestFallback - flag to enable root folder fallback
useHistory - flag to enable selection of last visited folder page
pageManager - pageManagerComponent reference

CreateUserTemplatePagesValveImpl

public CreateUserTemplatePagesValveImpl(org.apache.jetspeed.profiler.Profiler profiler,
                                        org.apache.jetspeed.portalsite.PortalSite portalSite,
                                        boolean requestFallback,
                                        org.apache.jetspeed.page.PageManager pageManager)
CreateUserTemplatePagesValveImpl - constructor

Parameters:
profiler - profiler component reference
portalSite - portal site component reference
requestFallback - flag to enable root folder fallback
pageManager - pageManagerComponent reference

CreateUserTemplatePagesValveImpl

public CreateUserTemplatePagesValveImpl(org.apache.jetspeed.profiler.Profiler profiler,
                                        org.apache.jetspeed.portalsite.PortalSite portalSite,
                                        org.apache.jetspeed.page.PageManager pageManager)
CreateUserTemplatePagesValveImpl - constructor

Parameters:
profiler - profiler component reference
portalSite - portal site component reference
pageManager - pageManagerComponent reference
Method Detail

setDefaultTemplateFolder

public void setDefaultTemplateFolder(String defaultTemplateFolder)

invoke

public void invoke(org.apache.jetspeed.request.RequestContext request,
                   org.apache.jetspeed.pipeline.valve.ValveContext context)
            throws org.apache.jetspeed.pipeline.PipelineException
Specified by:
invoke in interface org.apache.jetspeed.pipeline.valve.Valve
Overrides:
invoke in class ProfilerValveImpl
Throws:
org.apache.jetspeed.pipeline.PipelineException
See Also:
Valve.invoke(org.apache.jetspeed.request.RequestContext, org.apache.jetspeed.pipeline.valve.ValveContext)

createUserFolderPages

private boolean createUserFolderPages(org.apache.jetspeed.request.RequestContext request)
                               throws Exception
Throws:
Exception


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