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 Wilberforce (7.0.x), 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 Judson (7.1.x), with no direct replacement
|
String |
getIconCssClass() |
String |
getIconPath(javax.portlet.PortletRequest portletRequest)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
protected Locale |
getLocale(javax.portlet.PortletRequest portletRequest) |
String |
getNewName(String oldName,
String token) |
String |
getPreviewPath(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
String |
getSearchSummary(Locale locale) |
int |
getStatus() |
String |
getSummary() |
String |
getSummary(Locale locale)
Deprecated.
As of Wilberforce (7.0.x), replaced by
Renderer.getSummary(PortletRequest, PortletResponse) |
String[] |
getSupportedConversions() |
String |
getThumbnailPath(javax.portlet.PortletRequest portletRequest) |
String |
getURLDownload(ThemeDisplay themeDisplay) |
javax.portlet.PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
javax.portlet.PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
javax.portlet.WindowState windowState,
javax.portlet.PortletURL redirectURL) |
javax.portlet.PortletURL |
getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLImagePreview(javax.portlet.PortletRequest portletRequest) |
String |
getUrlTitle() |
String |
getUrlTitle(Locale locale) |
String |
getURLView(LiferayPortletResponse liferayPortletResponse,
javax.portlet.WindowState windowState) |
javax.portlet.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(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse) |
void |
setAddToPagePreferences(javax.portlet.PortletPreferences portletPreferences,
String portletId,
ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), 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(javax.portlet.PortletRequest portletRequest)
getIconPath
in interface Renderer
public String getNewName(String oldName, String token)
getNewName
in interface AssetRenderer<T>
@Deprecated public String getPreviewPath(javax.portlet.PortletRequest portletRequest, javax.portlet.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(javax.portlet.PortletRequest portletRequest) throws Exception
getThumbnailPath
in interface AssetRenderer<T>
Exception
public String getURLDownload(ThemeDisplay themeDisplay)
getURLDownload
in interface AssetRenderer<T>
public javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState, javax.portlet.PortletURL redirectURL) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLExport
in interface AssetRenderer<T>
Exception
public String getURLImagePreview(javax.portlet.PortletRequest portletRequest) throws Exception
getURLImagePreview
in interface AssetRenderer<T>
Exception
public String getUrlTitle()
getUrlTitle
in interface AssetRenderer<T>
public String getUrlTitle(Locale locale)
getUrlTitle
in interface AssetRenderer<T>
public String getURLView(LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState) throws Exception
getURLView
in interface AssetRenderer<T>
Exception
public javax.portlet.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(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse) throws Exception
Exception
@Deprecated public void setAddToPagePreferences(javax.portlet.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(javax.portlet.PortletRequest portletRequest)
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue)