com.liferay.portlet.asset.model
Class BaseAssetRenderer
java.lang.Object
com.liferay.portlet.asset.model.BaseAssetRenderer
- All Implemented Interfaces:
- AssetRenderer
public abstract class BaseAssetRenderer
- extends Object
- implements AssetRenderer
Method Summary |
String |
getAddToPagePortletId()
|
AssetRendererFactory |
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)
|
String |
getDiscussionPath()
|
Date |
getDisplayDate()
|
String |
getIconPath(PortletRequest portletRequest)
|
protected String |
getIconPath(ThemeDisplay themeDisplay)
|
String |
getNewName(String oldName,
String token)
|
String |
getPreviewPath(PortletRequest portletRequest,
PortletResponse PortletResponse)
|
String |
getSearchSummary(Locale locale)
|
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()
|
PortletURL |
getURLView(LiferayPortletResponse liferayPortletResponse,
WindowState windowState)
|
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 |
isConvertible()
|
boolean |
isDisplayable()
|
boolean |
isLocalizable()
|
boolean |
isPreviewInContext()
|
boolean |
isPrintable()
|
String |
renderActions(RenderRequest renderRequest,
RenderResponse renderResponse)
|
void |
setAddToPagePreferences(PortletPreferences preferences,
String portletId,
ThemeDisplay themeDisplay)
|
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
public String getAddToPagePortletId()
throws Exception
- Specified by:
getAddToPagePortletId
in interface AssetRenderer
- Throws:
Exception
getAssetRendererFactory
public AssetRendererFactory getAssetRendererFactory()
getAssetRendererType
public int getAssetRendererType()
- Specified by:
getAssetRendererType
in interface AssetRenderer
getAvailableLanguageIds
public String[] getAvailableLanguageIds()
- Specified by:
getAvailableLanguageIds
in interface AssetRenderer
getAvailableLocales
public String[] getAvailableLocales()
- Deprecated. As of 6.2.0, replaced by
getAvailableLanguageIds()
- Specified by:
getAvailableLocales
in interface AssetRenderer
getDiscussionPath
public String getDiscussionPath()
- Specified by:
getDiscussionPath
in interface AssetRenderer
getDisplayDate
public Date getDisplayDate()
- Specified by:
getDisplayDate
in interface AssetRenderer
getIconPath
public String getIconPath(PortletRequest portletRequest)
- Specified by:
getIconPath
in interface AssetRenderer
getNewName
public String getNewName(String oldName,
String token)
- Specified by:
getNewName
in interface AssetRenderer
getPreviewPath
public String getPreviewPath(PortletRequest portletRequest,
PortletResponse PortletResponse)
throws Exception
- Specified by:
getPreviewPath
in interface AssetRenderer
- Throws:
Exception
getSearchSummary
public String getSearchSummary(Locale locale)
- Specified by:
getSearchSummary
in interface AssetRenderer
getThumbnailPath
public String getThumbnailPath(PortletRequest portletRequest)
throws Exception
- Specified by:
getThumbnailPath
in interface AssetRenderer
- Throws:
Exception
getURLDownload
public String getURLDownload(ThemeDisplay themeDisplay)
- Specified by:
getURLDownload
in interface AssetRenderer
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
getURLEdit
in interface AssetRenderer
- Throws:
Exception
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
WindowState windowState,
PortletURL redirectURL)
throws Exception
- Specified by:
getURLEdit
in interface AssetRenderer
- Throws:
Exception
getURLExport
public PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
getURLExport
in interface AssetRenderer
- Throws:
Exception
getURLImagePreview
public String getURLImagePreview(PortletRequest portletRequest)
throws Exception
- Specified by:
getURLImagePreview
in interface AssetRenderer
- Throws:
Exception
getUrlTitle
public String getUrlTitle()
- Specified by:
getUrlTitle
in interface AssetRenderer
getURLView
public PortletURL getURLView(LiferayPortletResponse liferayPortletResponse,
WindowState windowState)
throws Exception
- Specified by:
getURLView
in interface AssetRenderer
- Throws:
Exception
getURLViewInContext
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect)
throws Exception
- Specified by:
getURLViewInContext
in interface AssetRenderer
- Throws:
Exception
getViewInContextMessage
public String getViewInContextMessage()
- Specified by:
getViewInContextMessage
in interface AssetRenderer
hasEditPermission
public boolean hasEditPermission(PermissionChecker permissionChecker)
throws PortalException,
SystemException
- Specified by:
hasEditPermission
in interface AssetRenderer
- Throws:
PortalException
SystemException
hasViewPermission
public boolean hasViewPermission(PermissionChecker permissionChecker)
throws PortalException,
SystemException
- Specified by:
hasViewPermission
in interface AssetRenderer
- Throws:
PortalException
SystemException
isConvertible
public boolean isConvertible()
- Specified by:
isConvertible
in interface AssetRenderer
isDisplayable
public boolean isDisplayable()
- Specified by:
isDisplayable
in interface AssetRenderer
isLocalizable
public boolean isLocalizable()
- Specified by:
isLocalizable
in interface AssetRenderer
isPreviewInContext
public boolean isPreviewInContext()
- Specified by:
isPreviewInContext
in interface AssetRenderer
isPrintable
public boolean isPrintable()
- Specified by:
isPrintable
in interface AssetRenderer
renderActions
public String renderActions(RenderRequest renderRequest,
RenderResponse renderResponse)
throws Exception
- Throws:
Exception
setAddToPagePreferences
public void setAddToPagePreferences(PortletPreferences preferences,
String portletId,
ThemeDisplay themeDisplay)
throws Exception
- Specified by:
setAddToPagePreferences
in interface AssetRenderer
- Throws:
Exception
setAssetRendererType
public void setAssetRendererType(int assetRendererType)
getControlPanelPlid
protected long getControlPanelPlid(LiferayPortletRequest liferayPortletRequest)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getControlPanelPlid
protected long getControlPanelPlid(ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getIconPath
protected String getIconPath(ThemeDisplay themeDisplay)
getURLViewInContext
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
String noSuchEntryRedirect,
String path,
String primaryKeyParameterName,
long primaryKeyParameterValue)