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