com.liferay.portlet.asset.model
Class BaseAssetRenderer<T>
java.lang.Object
com.liferay.portlet.asset.model.BaseAssetRenderer<T>
- All Implemented Interfaces:
- AssetRenderer<T>, Renderer
- Direct Known Subclasses:
- BaseJSPAssetRenderer
public abstract class BaseAssetRenderer<T>
- extends Object
- implements AssetRenderer<T>
|
Method Summary |
String |
getAddToPagePortletId()
Deprecated. As of 7.0.0, with no direct replacement |
AssetRendererFactory<T> |
getAssetRendererFactory()
|
int |
getAssetRendererType()
|
String[] |
getAvailableLanguageIds()
|
String[] |
getAvailableLocales()
Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds() |
protected long |
getControlPanelPlid(LiferayPortletRequest liferayPortletRequest)
|
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay)
|
DDMFormValuesReader |
getDDMFormValuesReader()
|
String |
getDiscussionPath()
|
Date |
getDisplayDate()
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAssetRenderer
public BaseAssetRenderer()
getAddToPagePortletId
@Deprecated
public String getAddToPagePortletId()
throws Exception
- Deprecated. As of 7.0.0, with no direct replacement
- Specified by:
getAddToPagePortletId in interface AssetRenderer<T>
- Throws:
Exception
getAssetRendererFactory
public AssetRendererFactory<T> getAssetRendererFactory()
- Specified by:
getAssetRendererFactory in interface AssetRenderer<T>
getAssetRendererType
public int getAssetRendererType()
- Specified by:
getAssetRendererType in interface AssetRenderer<T>
getAvailableLanguageIds
public String[] getAvailableLanguageIds()
- Specified by:
getAvailableLanguageIds in interface AssetRenderer<T>
getAvailableLocales
@Deprecated
public String[] getAvailableLocales()
- Deprecated. As of 6.2.0, replaced by
getAvailableLanguageIds()
- Specified by:
getAvailableLocales in interface AssetRenderer<T>
getDDMFormValuesReader
public DDMFormValuesReader getDDMFormValuesReader()
- Specified by:
getDDMFormValuesReader in interface AssetRenderer<T>
getDiscussionPath
public String getDiscussionPath()
- Specified by:
getDiscussionPath in interface AssetRenderer<T>
getDisplayDate
public Date getDisplayDate()
- Specified by:
getDisplayDate in interface AssetRenderer<T>
getIconCssClass
public String getIconCssClass()
throws PortalException
- Specified by:
getIconCssClass in interface Renderer
- Throws:
PortalException
getIconPath
@Deprecated
public String getIconPath(PortletRequest portletRequest)
- Deprecated. As of 7.0.0, with no direct replacement
- Specified by:
getIconPath in interface Renderer
getNewName
public String getNewName(String oldName,
String token)
- Specified by:
getNewName in interface AssetRenderer<T>
getPreviewPath
@Deprecated
public String getPreviewPath(PortletRequest portletRequest,
PortletResponse PortletResponse)
throws Exception
- Deprecated. As of 7.0.0, with no direct replacement
- Specified by:
getPreviewPath in interface AssetRenderer<T>
- Throws:
Exception
getSearchSummary
public String getSearchSummary(Locale locale)
- Specified by:
getSearchSummary in interface AssetRenderer<T>
getStatus
public int getStatus()
- Specified by:
getStatus in interface AssetRenderer<T>
getSummary
public String getSummary()
- Specified by:
getSummary in interface AssetRenderer<T>
getSummary
@Deprecated
public String getSummary(Locale locale)
- Deprecated. As of 7.0.0, replaced by
Renderer.getSummary(PortletRequest,
PortletResponse)
- Specified by:
getSummary in interface AssetRenderer<T>
getSupportedConversions
public String[] getSupportedConversions()
- Specified by:
getSupportedConversions in interface AssetRenderer<T>
getThumbnailPath
public String getThumbnailPath(PortletRequest portletRequest)
throws Exception
- Specified by:
getThumbnailPath in interface AssetRenderer<T>
- Throws:
Exception
getURLDownload
public String getURLDownload(ThemeDisplay themeDisplay)
- Specified by:
getURLDownload in interface AssetRenderer<T>
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
getURLEdit in interface AssetRenderer<T>
- Throws:
Exception
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
WindowState windowState,
PortletURL redirectURL)
throws Exception
- Specified by:
getURLEdit in interface AssetRenderer<T>
- Throws:
Exception
getURLExport
public PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
getURLExport in interface AssetRenderer<T>
- Throws:
Exception
getURLImagePreview
public String getURLImagePreview(PortletRequest portletRequest)
throws Exception
- Specified by:
getURLImagePreview in interface AssetRenderer<T>
- Throws:
Exception
getUrlTitle
public String getUrlTitle()
- Specified by:
getUrlTitle in interface AssetRenderer<T>
getURLView
public String getURLView(LiferayPortletResponse liferayPortletResponse,
WindowState windowState)
throws Exception
- Specified by:
getURLView in interface AssetRenderer<T>
- Throws:
Exception
getURLViewDiffs
public PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
getURLViewDiffs in interface AssetRenderer<T>
- Throws:
Exception
getURLViewInContext
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect)
throws Exception
- Specified by:
getURLViewInContext in interface AssetRenderer<T>
- Throws:
Exception
getViewInContextMessage
public String getViewInContextMessage()
- Specified by:
getViewInContextMessage in interface AssetRenderer<T>
hasEditPermission
public boolean hasEditPermission(PermissionChecker permissionChecker)
throws PortalException
- Specified by:
hasEditPermission in interface AssetRenderer<T>
- Throws:
PortalException
hasViewPermission
public boolean hasViewPermission(PermissionChecker permissionChecker)
throws PortalException
- Specified by:
hasViewPermission in interface AssetRenderer<T>
- Throws:
PortalException
isCommentable
public boolean isCommentable()
- Specified by:
isCommentable in interface AssetRenderer<T>
isConvertible
public boolean isConvertible()
- Specified by:
isConvertible in interface AssetRenderer<T>
isDisplayable
public boolean isDisplayable()
- Specified by:
isDisplayable in interface AssetRenderer<T>
isLocalizable
public boolean isLocalizable()
- Specified by:
isLocalizable in interface AssetRenderer<T>
isPreviewInContext
public boolean isPreviewInContext()
- Specified by:
isPreviewInContext in interface AssetRenderer<T>
isPrintable
public boolean isPrintable()
- Specified by:
isPrintable in interface AssetRenderer<T>
isRatable
public boolean isRatable()
- Specified by:
isRatable in interface AssetRenderer<T>
renderActions
public String renderActions(RenderRequest renderRequest,
RenderResponse renderResponse)
throws Exception
- Throws:
Exception
setAddToPagePreferences
@Deprecated
public void setAddToPagePreferences(PortletPreferences portletPreferences,
String portletId,
ThemeDisplay themeDisplay)
throws Exception
- Deprecated. As of 7.0.0, with no direct replacement
- Specified by:
setAddToPagePreferences in interface AssetRenderer<T>
- Throws:
Exception
setAssetRendererType
public void setAssetRendererType(int assetRendererType)
getControlPanelPlid
protected long getControlPanelPlid(LiferayPortletRequest liferayPortletRequest)
throws PortalException
- Throws:
PortalException
getControlPanelPlid
protected long getControlPanelPlid(ThemeDisplay themeDisplay)
throws PortalException
- Throws:
PortalException
getLocale
protected Locale getLocale(PortletRequest portletRequest)
getURLViewInContext
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
String noSuchEntryRedirect,
String path,
String primaryKeyParameterName,
long primaryKeyParameterValue)