public abstract class BaseAssetRenderer<T> extends Object implements AssetRenderer<T>
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT, TEMPLATE_PREVIEW| Constructor and Description |
|---|
BaseAssetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
AssetRendererFactory<T> |
getAssetRendererFactory() |
int |
getAssetRendererType() |
String[] |
getAvailableLanguageIds() |
protected long |
getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) |
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay) |
DDMFormValuesReader |
getDDMFormValuesReader() |
String |
getDiscussionPath() |
String |
getIconCssClass() |
protected Locale |
getLocale(PortletRequest portletRequest) |
String |
getNewName(String oldName,
String token) |
String |
getSearchSummary(Locale locale) |
int |
getStatus() |
String |
getSummary() |
String[] |
getSupportedConversions() |
String |
getThumbnailPath(PortletRequest portletRequest) |
String |
getURLDownload(ThemeDisplay themeDisplay) |
PortletURL |
getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest,
WindowState windowState,
PortletURL redirectURL) |
PortletURL |
getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest,
WindowState windowState,
String redirect) |
PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
WindowState windowState,
PortletURL redirectURL) |
PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
WindowState windowState,
String redirect) |
PortletURL |
getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLImagePreview(PortletRequest portletRequest) |
String |
getUrlTitle() |
String |
getUrlTitle(Locale locale) |
String |
getURLView(LiferayPortletResponse liferayPortletResponse,
WindowState windowState) |
PortletURL |
getURLViewDiffs(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect) |
protected String |
getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
String noSuchEntryRedirect,
String path,
String primaryKeyParameterName,
long primaryKeyParameterValue) |
String |
getViewInContextMessage() |
boolean |
hasEditPermission(PermissionChecker permissionChecker) |
boolean |
hasViewPermission(PermissionChecker permissionChecker) |
boolean |
isCommentable() |
boolean |
isConvertible() |
boolean |
isDisplayable() |
boolean |
isLocalizable() |
boolean |
isPreviewInContext() |
boolean |
isPrintable() |
boolean |
isRatable() |
String |
renderActions(RenderRequest renderRequest,
RenderResponse renderResponse) |
void |
setAssetRendererType(int assetRendererType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAssetObject, getAssetObject, getDefaultLanguageId, getGroupId, getURLEdit, getURLViewUsages, getUserId, getUserName, getUuid, isCategorizablegetClassName, getClassPK, getSummary, getTitle, includepublic AssetRendererFactory<T> getAssetRendererFactory()
getAssetRendererFactory in interface AssetRenderer<T>public int getAssetRendererType()
getAssetRendererType in interface AssetRenderer<T>public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface AssetRenderer<T>public DDMFormValuesReader getDDMFormValuesReader()
getDDMFormValuesReader in interface AssetRenderer<T>public String getDiscussionPath()
getDiscussionPath in interface AssetRenderer<T>public String getIconCssClass()
throws PortalException
getIconCssClass in interface RendererPortalExceptionpublic String getNewName(String oldName,
String token)
getNewName in interface AssetRenderer<T>public String getSearchSummary(Locale locale)
getSearchSummary in interface AssetRenderer<T>public int getStatus()
getStatus in interface AssetRenderer<T>public String getSummary()
getSummary in interface AssetRenderer<T>public String[] getSupportedConversions()
getSupportedConversions in interface AssetRenderer<T>public String getThumbnailPath(PortletRequest portletRequest) throws Exception
getThumbnailPath in interface AssetRenderer<T>Exceptionpublic String getURLDownload(ThemeDisplay themeDisplay)
getURLDownload in interface AssetRenderer<T>public PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, PortletURL redirectURL) throws Exception
getURLEdit in interface AssetRenderer<T>Exceptionpublic PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, String redirect) throws Exception
getURLEdit in interface AssetRenderer<T>Exceptionpublic PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLEdit in interface AssetRenderer<T>Exceptionpublic PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) throws Exception
getURLEdit in interface AssetRenderer<T>Exceptionpublic PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, String redirect) throws Exception
getURLEdit in interface AssetRenderer<T>Exceptionpublic PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLExport in interface AssetRenderer<T>Exceptionpublic String getURLImagePreview(PortletRequest portletRequest) throws Exception
getURLImagePreview in interface AssetRenderer<T>Exceptionpublic String getUrlTitle()
getUrlTitle in interface AssetRenderer<T>public String getUrlTitle(Locale locale)
getUrlTitle in interface AssetRenderer<T>public String getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState) throws Exception
getURLView in interface AssetRenderer<T>Exceptionpublic PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLViewDiffs in interface AssetRenderer<T>Exceptionpublic String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception
getURLViewInContext in interface AssetRenderer<T>Exceptionpublic String getViewInContextMessage()
getViewInContextMessage in interface AssetRenderer<T>public boolean hasEditPermission(PermissionChecker permissionChecker) throws PortalException
hasEditPermission in interface AssetRenderer<T>PortalExceptionpublic boolean hasViewPermission(PermissionChecker permissionChecker) throws PortalException
hasViewPermission in interface AssetRenderer<T>PortalExceptionpublic boolean isCommentable()
isCommentable in interface AssetRenderer<T>public boolean isConvertible()
isConvertible in interface AssetRenderer<T>public boolean isDisplayable()
isDisplayable in interface AssetRenderer<T>public boolean isLocalizable()
isLocalizable in interface AssetRenderer<T>public boolean isPreviewInContext()
isPreviewInContext in interface AssetRenderer<T>public boolean isPrintable()
isPrintable in interface AssetRenderer<T>public boolean isRatable()
isRatable in interface AssetRenderer<T>public String renderActions(RenderRequest renderRequest, RenderResponse renderResponse) throws Exception
Exceptionpublic void setAssetRendererType(int assetRendererType)
protected long getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException
PortalExceptionprotected long getControlPanelPlid(ThemeDisplay themeDisplay) throws PortalException
PortalExceptionprotected Locale getLocale(PortletRequest portletRequest)
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue)