| EventRequestFactory.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 */
14
15 package com.liferay.portlet;
16
17 import com.liferay.portal.model.Portlet;
18
19 import javax.portlet.PortletContext;
20 import javax.portlet.PortletMode;
21 import javax.portlet.PortletPreferences;
22 import javax.portlet.WindowState;
23
24 import javax.servlet.http.HttpServletRequest;
25
26 /**
27 * <a href="EventRequestFactory.java.html"><b><i>View Source</i></b></a>
28 *
29 * @author Brian Wing Shun Chan
30 */
31 public class EventRequestFactory {
32
33 public static EventRequestImpl create(
34 HttpServletRequest request, Portlet portlet,
35 InvokerPortlet invokerPortlet, PortletContext portletContext,
36 WindowState windowState, PortletMode portletMode,
37 PortletPreferences preferences, long plid)
38 throws Exception {
39
40 EventRequestImpl eventRequestImpl = new EventRequestImpl();
41
42 eventRequestImpl.init(
43 request, portlet, invokerPortlet, portletContext, windowState,
44 portletMode, preferences, plid);
45
46 return eventRequestImpl;
47 }
48
49 }