Package com.liferay.asset.kernel.model
Class BaseAssetRenderer<T>
Object
com.liferay.asset.kernel.model.BaseAssetRenderer<T>
- All Implemented Interfaces:
AssetRenderer<T>
,Renderer
- Direct Known Subclasses:
BaseJSPAssetRenderer
- Author:
- Jorge Ferrer, Sergio González
-
Field Summary
Fields inherited from interface com.liferay.asset.kernel.model.AssetRenderer
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT, TEMPLATE_PREVIEW
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
String[]
protected long
getControlPanelPlid
(LiferayPortletRequest liferayPortletRequest) protected long
getControlPanelPlid
(ThemeDisplay themeDisplay) protected Locale
getLocale
(PortletRequest portletRequest) getNewName
(String oldName, String token) getSearchSummary
(Locale locale) int
String[]
getThumbnailPath
(PortletRequest portletRequest) getURLDownload
(ThemeDisplay themeDisplay) getURLEdit
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) getURLEdit
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, String redirect) getURLEdit
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) getURLEdit
(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, String redirect) getURLEdit
(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, PortletURL redirectURL) getURLExport
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) getURLImagePreview
(PortletRequest portletRequest) getURLShare
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) getUrlTitle
(Locale locale) getURLView
(LiferayPortletResponse liferayPortletResponse, WindowState windowState) getURLViewDiffs
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) getURLViewInContext
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) protected String
getURLViewInContext
(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue) getURLViewInContext
(ThemeDisplay themeDisplay, String noSuchEntryRedirect) protected String
getURLViewInContext
(ThemeDisplay themeDisplay, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue) boolean
hasEditPermission
(PermissionChecker permissionChecker) boolean
hasViewPermission
(PermissionChecker permissionChecker) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAssetRendererType
(int assetRendererType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.asset.kernel.model.AssetRenderer
getAssetObject, getAssetObject, getDefaultLanguageId, getGroupId, getURLEdit, getURLViewUsages, getUserId, getUserName, getUuid, isCategorizable
Methods inherited from interface com.liferay.asset.kernel.model.Renderer
getClassName, getClassPK, getSummary, getTitle, include
-
Constructor Details
-
BaseAssetRenderer
public BaseAssetRenderer()
-
-
Method Details
-
getAssetRendererFactory
- Specified by:
getAssetRendererFactory
in interfaceAssetRenderer<T>
-
getAssetRendererType
public int getAssetRendererType()- Specified by:
getAssetRendererType
in interfaceAssetRenderer<T>
-
getAvailableLanguageIds
- Specified by:
getAvailableLanguageIds
in interfaceAssetRenderer<T>
-
getDDMFormValuesReader
- Specified by:
getDDMFormValuesReader
in interfaceAssetRenderer<T>
-
getDiscussionPath
- Specified by:
getDiscussionPath
in interfaceAssetRenderer<T>
-
getIconCssClass
- Specified by:
getIconCssClass
in interfaceRenderer
- Throws:
PortalException
-
getNewName
- Specified by:
getNewName
in interfaceAssetRenderer<T>
-
getSearchSummary
- Specified by:
getSearchSummary
in interfaceAssetRenderer<T>
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceAssetRenderer<T>
-
getSummary
- Specified by:
getSummary
in interfaceAssetRenderer<T>
-
getSupportedConversions
- Specified by:
getSupportedConversions
in interfaceAssetRenderer<T>
-
getThumbnailPath
- Specified by:
getThumbnailPath
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLDownload
- Specified by:
getURLDownload
in interfaceAssetRenderer<T>
-
getURLEdit
public PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, PortletURL redirectURL) throws Exception - Specified by:
getURLEdit
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, String redirect) throws Exception - Specified by:
getURLEdit
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Specified by:
getURLEdit
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) throws Exception - Specified by:
getURLEdit
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, String redirect) throws Exception - Specified by:
getURLEdit
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLExport
public PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Specified by:
getURLExport
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLImagePreview
- Specified by:
getURLImagePreview
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getUrlTitle
- Specified by:
getUrlTitle
in interfaceAssetRenderer<T>
-
getUrlTitle
- Specified by:
getUrlTitle
in interfaceAssetRenderer<T>
-
getURLView
public String getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState) throws Exception - Specified by:
getURLView
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLViewDiffs
public PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Specified by:
getURLViewDiffs
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLViewInContext
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception - Specified by:
getURLViewInContext
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getURLViewInContext
public String getURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect) throws Exception - Specified by:
getURLViewInContext
in interfaceAssetRenderer<T>
- Throws:
Exception
-
getViewInContextMessage
- Specified by:
getViewInContextMessage
in interfaceAssetRenderer<T>
-
hasEditPermission
- Specified by:
hasEditPermission
in interfaceAssetRenderer<T>
- Throws:
PortalException
-
hasViewPermission
- Specified by:
hasViewPermission
in interfaceAssetRenderer<T>
- Throws:
PortalException
-
isCommentable
public boolean isCommentable()- Specified by:
isCommentable
in interfaceAssetRenderer<T>
-
isConvertible
public boolean isConvertible()- Specified by:
isConvertible
in interfaceAssetRenderer<T>
-
isDisplayable
public boolean isDisplayable()- Specified by:
isDisplayable
in interfaceAssetRenderer<T>
-
isLocalizable
public boolean isLocalizable()- Specified by:
isLocalizable
in interfaceAssetRenderer<T>
-
isPreviewInContext
public boolean isPreviewInContext()- Specified by:
isPreviewInContext
in interfaceAssetRenderer<T>
-
isPrintable
public boolean isPrintable()- Specified by:
isPrintable
in interfaceAssetRenderer<T>
-
isRatable
public boolean isRatable()- Specified by:
isRatable
in interfaceAssetRenderer<T>
-
setAssetRendererType
public void setAssetRendererType(int assetRendererType) -
getControlPanelPlid
protected long getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException - Throws:
PortalException
-
getControlPanelPlid
- Throws:
PortalException
-
getLocale
-
getURLViewInContext
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue) -
getURLViewInContext
protected String getURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue)
-