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 TypeMethodDescriptionintString[]protected longgetControlPanelPlid(LiferayPortletRequest liferayPortletRequest) protected longgetControlPanelPlid(ThemeDisplay themeDisplay) protected LocalegetLocale(PortletRequest portletRequest) getNewName(String oldName, String token) getSearchSummary(Locale locale) intString[]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 StringgetURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue) getURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect) protected StringgetURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue) booleanhasEditPermission(PermissionChecker permissionChecker) booleanhasViewPermission(PermissionChecker permissionChecker) booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAssetRendererType(int assetRendererType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.asset.kernel.model.AssetRenderer
getAssetObject, getAssetObject, getDefaultLanguageId, getGroupId, getURLEdit, getURLViewUsages, getUserId, getUserName, getUuid, isCategorizableMethods inherited from interface com.liferay.asset.kernel.model.Renderer
getClassName, getClassPK, getSummary, getTitle, include
-
Constructor Details
-
BaseAssetRenderer
public BaseAssetRenderer()
-
-
Method Details
-
getAssetRendererFactory
- Specified by:
getAssetRendererFactoryin interfaceAssetRenderer<T>
-
getAssetRendererType
public int getAssetRendererType()- Specified by:
getAssetRendererTypein interfaceAssetRenderer<T>
-
getAvailableLanguageIds
- Specified by:
getAvailableLanguageIdsin interfaceAssetRenderer<T>
-
getDDMFormValuesReader
- Specified by:
getDDMFormValuesReaderin interfaceAssetRenderer<T>
-
getDiscussionPath
- Specified by:
getDiscussionPathin interfaceAssetRenderer<T>
-
getIconCssClass
- Specified by:
getIconCssClassin interfaceRenderer- Throws:
PortalException
-
getNewName
- Specified by:
getNewNamein interfaceAssetRenderer<T>
-
getSearchSummary
- Specified by:
getSearchSummaryin interfaceAssetRenderer<T>
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceAssetRenderer<T>
-
getSummary
- Specified by:
getSummaryin interfaceAssetRenderer<T>
-
getSupportedConversions
- Specified by:
getSupportedConversionsin interfaceAssetRenderer<T>
-
getThumbnailPath
- Specified by:
getThumbnailPathin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLDownload
- Specified by:
getURLDownloadin interfaceAssetRenderer<T>
-
getURLEdit
public PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, PortletURL redirectURL) throws Exception - Specified by:
getURLEditin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, String redirect) throws Exception - Specified by:
getURLEditin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Specified by:
getURLEditin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) throws Exception - Specified by:
getURLEditin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, String redirect) throws Exception - Specified by:
getURLEditin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLExport
public PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Specified by:
getURLExportin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLImagePreview
- Specified by:
getURLImagePreviewin interfaceAssetRenderer<T>- Throws:
Exception
-
getUrlTitle
- Specified by:
getUrlTitlein interfaceAssetRenderer<T>
-
getUrlTitle
- Specified by:
getUrlTitlein interfaceAssetRenderer<T>
-
getURLView
public String getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState) throws Exception - Specified by:
getURLViewin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLViewDiffs
public PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Specified by:
getURLViewDiffsin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLViewInContext
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception - Specified by:
getURLViewInContextin interfaceAssetRenderer<T>- Throws:
Exception
-
getURLViewInContext
public String getURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect) throws Exception - Specified by:
getURLViewInContextin interfaceAssetRenderer<T>- Throws:
Exception
-
getViewInContextMessage
- Specified by:
getViewInContextMessagein interfaceAssetRenderer<T>
-
hasEditPermission
- Specified by:
hasEditPermissionin interfaceAssetRenderer<T>- Throws:
PortalException
-
hasViewPermission
- Specified by:
hasViewPermissionin interfaceAssetRenderer<T>- Throws:
PortalException
-
isCommentable
public boolean isCommentable()- Specified by:
isCommentablein interfaceAssetRenderer<T>
-
isConvertible
public boolean isConvertible()- Specified by:
isConvertiblein interfaceAssetRenderer<T>
-
isDisplayable
public boolean isDisplayable()- Specified by:
isDisplayablein interfaceAssetRenderer<T>
-
isLocalizable
public boolean isLocalizable()- Specified by:
isLocalizablein interfaceAssetRenderer<T>
-
isPreviewInContext
public boolean isPreviewInContext()- Specified by:
isPreviewInContextin interfaceAssetRenderer<T>
-
isPrintable
public boolean isPrintable()- Specified by:
isPrintablein interfaceAssetRenderer<T>
-
isRatable
public boolean isRatable()- Specified by:
isRatablein 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)
-