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="BaseAssetRenderer.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Jorge Ferrer
26   */
27  public abstract class BaseAssetRenderer implements AssetRenderer {
28  
29      public String[] getAvailableLocales() {
30          return _EMPTY_ARRAY;
31      }
32  
33      public String getDiscussionPath() {
34          return null;
35      }
36  
37      public PortletURL getURLEdit(
38              LiferayPortletRequest liferayPortletRequest,
39              LiferayPortletResponse liferayPortletResponse)
40          throws Exception {
41  
42          return null;
43      }
44  
45      public PortletURL getURLExport(
46              LiferayPortletRequest liferayPortletRequest,
47              LiferayPortletResponse liferayPortletResponse)
48          throws Exception {
49  
50          return null;
51      }
52  
53      public String getUrlTitle() {
54          return null;
55      }
56  
57      public String getURLViewInContext(
58              LiferayPortletRequest liferayPortletRequest,
59              LiferayPortletResponse liferayPortletResponse,
60              String noSuchEntryRedirect)
61          throws Exception {
62  
63          return null;
64      }
65  
66      public String getViewInContextMessage() {
67          return "view-in-context";
68      }
69  
70      public boolean isConvertible() {
71          return false;
72      }
73  
74      public boolean isLocalizable() {
75          return false;
76      }
77  
78      public boolean isPrintable() {
79          return false;
80      }
81  
82      private static final String[] _EMPTY_ARRAY = new String[0];
83  
84  }