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