1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 * 9 * http://www.apache.org/licenses/LICENSE-2.010 * 11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 */17packageorg.apache.jetspeed.profiler.impl;
1819import org.apache.commons.logging.Log;
20import org.apache.commons.logging.LogFactory;
21import org.apache.jetspeed.layout.PortletActionSecurityBehavior;
22import org.apache.jetspeed.pipeline.PipelineException;
23import org.apache.jetspeed.pipeline.valve.AbstractValve;
24import org.apache.jetspeed.pipeline.valve.Valve;
25import org.apache.jetspeed.pipeline.valve.ValveContext;
26import org.apache.jetspeed.request.RequestContext;
2728/***29 * ProfilerValveImpl30 * 31 * @author <a href="mailto:taylor@apache.org">David Sean Taylor </a>32 * @version $Id: ProfilerValveImpl.java 388733 2006-03-25 09:03:58Z rwatler $33 */34publicclassCreatePageValveImplextendsAbstractValve implements Valve
35 {
36protected Log log = LogFactory.getLog(CreatePageValveImpl.class);
3738private PortletActionSecurityBehavior securityBehavior;
3940/***41 * CreatePageValveImpl - constructor42 *43 * @param securityBehavior the behavior to create new page for new user44 */45publicCreatePageValveImpl(PortletActionSecurityBehavior behavior)
46 {
47this.securityBehavior = behavior;
48 }
495051/*52 * (non-Javadoc)53 * 54 * @see org.apache.jetspeed.pipeline.valve.Valve#invoke(org.apache.jetspeed.request.RequestContext,55 * org.apache.jetspeed.pipeline.valve.ValveContext)56 */57publicvoid invoke( RequestContext request, ValveContext context ) throws PipelineException
58 {
59 securityBehavior.createNewPageOnEdit(request);
60 context.invokeNext(request);
61 }
6263 }