2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portlet;
\r
17 import com.liferay.portal.kernel.portlet.LiferayPortletURL;
\r
19 import javax.portlet.PortletRequest;
\r
21 import javax.servlet.http.HttpServletRequest;
\r
24 * @author Brian Wing Shun Chan
\r
26 public class PortletURLFactoryImpl implements PortletURLFactory {
\r
28 public LiferayPortletURL create(
\r
29 HttpServletRequest request, String portletName, long plid,
\r
32 return new PortletURLImpl(request, portletName, plid, lifecycle);
\r
35 public LiferayPortletURL create(
\r
36 PortletRequest portletRequest, String portletName, long plid,
\r
39 return new PortletURLImpl(portletRequest, portletName, plid, lifecycle);
\r
42 public LiferayPortletURL create(
\r
43 HttpServletRequest request, String portletName, long plid,
\r
44 String lifecycle, boolean isSearch) {
\r
46 return new PortletURLImpl(request, portletName, plid, lifecycle, isSearch);
\r