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.exception.PortalException;
18  import com.liferay.portal.kernel.exception.SystemException;
19  import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
20  import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
21  import com.liferay.portal.security.permission.PermissionChecker;
22  
23  import javax.portlet.PortletURL;
24  
25  /**
26   * <a href="BaseAssetRenderer.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Jorge Ferrer
29   */
30  public abstract class BaseAssetRenderer implements AssetRenderer {
31  
32      public String[] getAvailableLocales() {
33          return _EMPTY_ARRAY;
34      }
35  
36      public String getDiscussionPath() {
37          return null;
38      }
39  
40      public PortletURL getURLEdit(
41              LiferayPortletRequest liferayPortletRequest,
42              LiferayPortletResponse liferayPortletResponse)
43          throws Exception {
44  
45          return null;
46      }
47  
48      public PortletURL getURLExport(
49              LiferayPortletRequest liferayPortletRequest,
50              LiferayPortletResponse liferayPortletResponse)
51          throws Exception {
52  
53          return null;
54      }
55  
56      public String getUrlTitle() {
57          return null;
58      }
59  
60      public String getURLViewInContext(
61              LiferayPortletRequest liferayPortletRequest,
62              LiferayPortletResponse liferayPortletResponse,
63              String noSuchEntryRedirect)
64          throws Exception {
65  
66          return null;
67      }
68  
69      public String getViewInContextMessage() {
70          return "view-in-context";
71      }
72  
73      @SuppressWarnings("unused")
74      public boolean hasEditPermission(PermissionChecker permissionChecker)
75          throws PortalException, SystemException {
76  
77          return false;
78      }
79  
80      @SuppressWarnings("unused")
81      public boolean hasViewPermission(PermissionChecker permissionChecker)
82          throws PortalException, SystemException {
83  
84          return true;
85      }
86  
87      public boolean isConvertible() {
88          return false;
89      }
90  
91      public boolean isLocalizable() {
92          return false;
93      }
94  
95      public boolean isPrintable() {
96          return false;
97      }
98  
99      private static final String[] _EMPTY_ARRAY = new String[0];
100 
101 }