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 import javax.portlet.RenderRequest;
25 import javax.portlet.RenderResponse;
26
27
32 public interface AssetRenderer {
33
34 public static final String TEMPLATE_ABSTRACT = "abstract";
35
36 public static final String TEMPLATE_FULL_CONTENT = "full_content";
37
38 public String[] getAvailableLocales() throws Exception;
39
40 public long getClassPK();
41
42 public String getDiscussionPath();
43
44 public long getGroupId();
45
46 public String getSummary();
47
48 public String getTitle();
49
50 public PortletURL getURLEdit(
51 LiferayPortletRequest liferayPortletRequest,
52 LiferayPortletResponse liferayPortletResponse)
53 throws Exception;
54
55 public PortletURL getURLExport(
56 LiferayPortletRequest liferayPortletRequest,
57 LiferayPortletResponse liferayPortletResponse)
58 throws Exception;
59
60 public String getUrlTitle();
61
62 public String getURLViewInContext(
63 LiferayPortletRequest liferayPortletRequest,
64 LiferayPortletResponse liferayPortletResponse,
65 String noSuchEntryRedirect)
66 throws Exception;
67
68 public long getUserId();
69
70 public String getViewInContextMessage();
71
72 public boolean hasEditPermission(PermissionChecker permissionChecker)
73 throws PortalException, SystemException;
74
75 public boolean hasViewPermission(PermissionChecker permissionChecker)
76 throws PortalException, SystemException;
77
78 public boolean isConvertible();
79
80 public boolean isLocalizable();
81
82 public boolean isPrintable();
83
84 public String render(
85 RenderRequest renderRequest, RenderResponse renderResponse,
86 String template)
87 throws Exception;
88
89 }