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.asset.model;
16  
17  import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
18  import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
19  
20  import javax.portlet.PortletURL;
21  
22  /**
23   * <a href="BaseAssetRendererFactory.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Jorge Ferrer
26   */
27  public abstract class BaseAssetRendererFactory implements AssetRendererFactory {
28  
29      public AssetRenderer getAssetRenderer(long groupId, String urlTitle)
30          throws Exception {
31  
32          return null;
33      }
34  
35      public long getClassNameId() {
36          return _classNameId;
37      }
38  
39      public String getPortletId() {
40          return _portletId;
41      }
42  
43      public PortletURL getURLAdd(
44              LiferayPortletRequest liferayPortletRequest,
45              LiferayPortletResponse liferayPortletResponse)
46          throws Exception {
47  
48          return null;
49      }
50  
51      public boolean isSelectable() {
52          return true;
53      }
54  
55      public void setClassNameId(long classNameId) {
56          _classNameId = classNameId;
57      }
58  
59      public void setPortletId(String portletId) {
60          _portletId = portletId;
61      }
62  
63      private long _classNameId;
64      private String _portletId;
65  
66  }