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 |
---|---|
String |
getAddToPagePortletId()
Deprecated.
As of 7.0.0, with no direct replacement
|
AssetRendererFactory<T> |
getAssetRendererFactory() |
int |
getAssetRendererType() |
String[] |
getAvailableLanguageIds() |
protected long |
getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) |
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay) |
DDMFormValuesReader |
getDDMFormValuesReader() |
String |
getDiscussionPath() |
Date |
getDisplayDate()
Deprecated.
As of 7.0.0, with no direct replacement
|
String |
getIconCssClass() |
String |
getIconPath(PortletRequest portletRequest)
Deprecated.
As of 7.0.0, with no direct replacement
|
protected Locale |
getLocale(PortletRequest portletRequest) |
String |
getNewName(String oldName,
String token) |
String |
getPreviewPath(PortletRequest portletRequest,
PortletResponse portletResponse)
Deprecated.
As of 7.0.0, with no direct replacement
|
String |
getSearchSummary(Locale locale) |
int |
getStatus() |
String |
getSummary() |
String |
getSummary(Locale locale)
Deprecated.
As of 7.0.0, replaced by
Renderer.getSummary(PortletRequest,
PortletResponse) |
String[] |
getSupportedConversions() |
String |
getThumbnailPath(PortletRequest portletRequest) |
String |
getURLDownload(ThemeDisplay themeDisplay) |
PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
WindowState windowState,
PortletURL redirectURL) |
PortletURL |
getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLImagePreview(PortletRequest portletRequest) |
String |
getUrlTitle() |
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 |
setAddToPagePreferences(PortletPreferences portletPreferences,
String portletId,
ThemeDisplay themeDisplay)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
setAssetRendererType(int assetRendererType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssetObject, getGroupId, getUserId, getUserName, getUuid, isCategorizable
getClassName, getClassPK, getSummary, getTitle, include
@Deprecated public String getAddToPagePortletId() throws Exception
getAddToPagePortletId
in interface AssetRenderer<T>
Exception
public 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>
@Deprecated public Date getDisplayDate()
getDisplayDate
in interface AssetRenderer<T>
public String getIconCssClass() throws PortalException
getIconCssClass
in interface Renderer
PortalException
@Deprecated public String getIconPath(PortletRequest portletRequest)
getIconPath
in interface Renderer
public String getNewName(String oldName, String token)
getNewName
in interface AssetRenderer<T>
@Deprecated public String getPreviewPath(PortletRequest portletRequest, PortletResponse portletResponse) throws Exception
getPreviewPath
in interface AssetRenderer<T>
Exception
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>
@Deprecated public String getSummary(Locale locale)
Renderer.getSummary(PortletRequest,
PortletResponse)
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>
Exception
public String getURLDownload(ThemeDisplay themeDisplay)
getURLDownload
in interface AssetRenderer<T>
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLExport
in interface AssetRenderer<T>
Exception
public String getURLImagePreview(PortletRequest portletRequest) throws Exception
getURLImagePreview
in interface AssetRenderer<T>
Exception
public String getUrlTitle()
getUrlTitle
in interface AssetRenderer<T>
public String getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState) throws Exception
getURLView
in interface AssetRenderer<T>
Exception
public PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLViewDiffs
in interface AssetRenderer<T>
Exception
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception
getURLViewInContext
in interface AssetRenderer<T>
Exception
public String getViewInContextMessage()
getViewInContextMessage
in interface AssetRenderer<T>
public boolean hasEditPermission(PermissionChecker permissionChecker) throws PortalException
hasEditPermission
in interface AssetRenderer<T>
PortalException
public boolean hasViewPermission(PermissionChecker permissionChecker) throws PortalException
hasViewPermission
in interface AssetRenderer<T>
PortalException
public 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
Exception
@Deprecated public void setAddToPagePreferences(PortletPreferences portletPreferences, String portletId, ThemeDisplay themeDisplay) throws Exception
setAddToPagePreferences
in interface AssetRenderer<T>
Exception
public void setAssetRendererType(int assetRendererType)
protected long getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException
PortalException
protected long getControlPanelPlid(ThemeDisplay themeDisplay) throws PortalException
PortalException
protected Locale getLocale(PortletRequest portletRequest)
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue)