001
014
015 package com.liferay.asset.kernel.model;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
019 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
020 import com.liferay.portal.kernel.security.permission.PermissionChecker;
021 import com.liferay.portal.kernel.theme.ThemeDisplay;
022
023 import java.util.Date;
024 import java.util.Locale;
025
026 import javax.portlet.PortletPreferences;
027 import javax.portlet.PortletRequest;
028 import javax.portlet.PortletResponse;
029 import javax.portlet.PortletURL;
030 import javax.portlet.WindowState;
031
032
036 public interface AssetRenderer<T> extends Renderer {
037
038 public static final String TEMPLATE_ABSTRACT = "abstract";
039
040 public static final String TEMPLATE_FULL_CONTENT = "full_content";
041
042 public static final String TEMPLATE_PREVIEW = "preview";
043
044
047 @Deprecated
048 public String getAddToPagePortletId() throws Exception;
049
050 public T getAssetObject();
051
052 public AssetRendererFactory<T> getAssetRendererFactory();
053
054 public int getAssetRendererType();
055
056 public String[] getAvailableLanguageIds() throws Exception;
057
058 public DDMFormValuesReader getDDMFormValuesReader();
059
060 public String getDiscussionPath();
061
062
065 @Deprecated
066 public Date getDisplayDate();
067
068 public long getGroupId();
069
070 public String getNewName(String oldName, String token);
071
072
075 @Deprecated
076 public String getPreviewPath(
077 PortletRequest portletRequest, PortletResponse portletResponse)
078 throws Exception;
079
080 public String getSearchSummary(Locale locale);
081
082 public int getStatus();
083
084 public String getSummary();
085
086
090 @Deprecated
091 public String getSummary(Locale locale);
092
093 public String[] getSupportedConversions();
094
095 public String getThumbnailPath(PortletRequest portletRequest)
096 throws Exception;
097
098 public String getURLDownload(ThemeDisplay themeDisplay);
099
100 public PortletURL getURLEdit(
101 LiferayPortletRequest liferayPortletRequest,
102 LiferayPortletResponse liferayPortletResponse)
103 throws Exception;
104
105 public PortletURL getURLEdit(
106 LiferayPortletRequest liferayPortletRequest,
107 LiferayPortletResponse liferayPortletResponse,
108 WindowState windowState, PortletURL redirectURL)
109 throws Exception;
110
111 public PortletURL getURLExport(
112 LiferayPortletRequest liferayPortletRequest,
113 LiferayPortletResponse liferayPortletResponse)
114 throws Exception;
115
116 public String getURLImagePreview(PortletRequest portletRequest)
117 throws Exception;
118
119 public String getUrlTitle();
120
121 public String getURLView(
122 LiferayPortletResponse liferayPortletResponse,
123 WindowState windowState)
124 throws Exception;
125
126 public PortletURL getURLViewDiffs(
127 LiferayPortletRequest liferayPortletRequest,
128 LiferayPortletResponse liferayPortletResponse)
129 throws Exception;
130
131 public String getURLViewInContext(
132 LiferayPortletRequest liferayPortletRequest,
133 LiferayPortletResponse liferayPortletResponse,
134 String noSuchEntryRedirect)
135 throws Exception;
136
137 public long getUserId();
138
139 public String getUserName();
140
141 public String getUuid();
142
143 public String getViewInContextMessage();
144
145 public boolean hasEditPermission(PermissionChecker permissionChecker)
146 throws PortalException;
147
148 public boolean hasViewPermission(PermissionChecker permissionChecker)
149 throws PortalException;
150
151 public boolean isCommentable();
152
153 public boolean isConvertible();
154
155 public boolean isDisplayable();
156
157 public boolean isLocalizable();
158
159 public boolean isPreviewInContext();
160
161 public boolean isPrintable();
162
163 public boolean isRatable();
164
165
168 @Deprecated
169 public void setAddToPagePreferences(
170 PortletPreferences portletPreferences, String portletId,
171 ThemeDisplay themeDisplay)
172 throws Exception;
173
174 }