1
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
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 }