1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.profiler.impl;
18
19 import org.apache.commons.logging.Log;
20 import org.apache.commons.logging.LogFactory;
21 import org.apache.jetspeed.layout.PortletActionSecurityBehavior;
22 import org.apache.jetspeed.pipeline.PipelineException;
23 import org.apache.jetspeed.pipeline.valve.AbstractValve;
24 import org.apache.jetspeed.pipeline.valve.Valve;
25 import org.apache.jetspeed.pipeline.valve.ValveContext;
26 import org.apache.jetspeed.request.RequestContext;
27
28 /***
29 * ProfilerValveImpl
30 *
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 */
34 public class CreatePageValveImpl extends AbstractValve implements Valve
35 {
36 protected Log log = LogFactory.getLog(CreatePageValveImpl.class);
37
38 private PortletActionSecurityBehavior securityBehavior;
39
40 /***
41 * CreatePageValveImpl - constructor
42 *
43 * @param securityBehavior the behavior to create new page for new user
44 */
45 public CreatePageValveImpl(PortletActionSecurityBehavior behavior)
46 {
47 this.securityBehavior = behavior;
48 }
49
50
51
52
53
54
55
56
57 public void invoke( RequestContext request, ValveContext context ) throws PipelineException
58 {
59 securityBehavior.createNewPageOnEdit(request);
60 context.invokeNext(request);
61 }
62
63 }