001
014
015 package com.liferay.portlet.asset.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.security.permission.PermissionChecker;
021 import com.liferay.portal.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
061 @Deprecated
062 public String[] getAvailableLocales() throws Exception;
063
064 public DDMFormValuesReader getDDMFormValuesReader();
065
066 public String getDiscussionPath();
067
068 public Date getDisplayDate();
069
070 public long getGroupId();
071
072 public String getNewName(String oldName, String token);
073
074
077 @Deprecated
078 public String getPreviewPath(
079 PortletRequest portletRequest, PortletResponse portletResponse)
080 throws Exception;
081
082 public String getSearchSummary(Locale locale);
083
084 public int getStatus();
085
086 public String getSummary();
087
088
092 @Deprecated
093 public String getSummary(Locale locale);
094
095 public String[] getSupportedConversions();
096
097 public String getThumbnailPath(PortletRequest portletRequest)
098 throws Exception;
099
100 public String getURLDownload(ThemeDisplay themeDisplay);
101
102 public PortletURL getURLEdit(
103 LiferayPortletRequest liferayPortletRequest,
104 LiferayPortletResponse liferayPortletResponse)
105 throws Exception;
106
107 public PortletURL getURLEdit(
108 LiferayPortletRequest liferayPortletRequest,
109 LiferayPortletResponse liferayPortletResponse,
110 WindowState windowState, PortletURL redirectURL)
111 throws Exception;
112
113 public PortletURL getURLExport(
114 LiferayPortletRequest liferayPortletRequest,
115 LiferayPortletResponse liferayPortletResponse)
116 throws Exception;
117
118 public String getURLImagePreview(PortletRequest portletRequest)
119 throws Exception;
120
121 public String getUrlTitle();
122
123 public String getURLView(
124 LiferayPortletResponse liferayPortletResponse,
125 WindowState windowState)
126 throws Exception;
127
128 public PortletURL getURLViewDiffs(
129 LiferayPortletRequest liferayPortletRequest,
130 LiferayPortletResponse liferayPortletResponse)
131 throws Exception;
132
133 public String getURLViewInContext(
134 LiferayPortletRequest liferayPortletRequest,
135 LiferayPortletResponse liferayPortletResponse,
136 String noSuchEntryRedirect)
137 throws Exception;
138
139 public long getUserId();
140
141 public String getUserName();
142
143 public String getUuid();
144
145 public String getViewInContextMessage();
146
147 public boolean hasEditPermission(PermissionChecker permissionChecker)
148 throws PortalException;
149
150 public boolean hasViewPermission(PermissionChecker permissionChecker)
151 throws PortalException;
152
153 public boolean isCommentable();
154
155 public boolean isConvertible();
156
157 public boolean isDisplayable();
158
159 public boolean isLocalizable();
160
161 public boolean isPreviewInContext();
162
163 public boolean isPrintable();
164
165 public boolean isRatable();
166
167
170 @Deprecated
171 public void setAddToPagePreferences(
172 PortletPreferences portletPreferences, String portletId,
173 ThemeDisplay themeDisplay)
174 throws Exception;
175
176 }