Package com.liferay.asset.kernel.model
Interface AssetRenderer<T>
- All Superinterfaces:
Renderer
- All Known Implementing Classes:
BaseAssetRenderer
,BaseJSPAssetRenderer
- Author:
- Jorge Ferrer, Juan Fernández
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault T
getAssetObject
(long versionClassPK) int
String[]
default String
long
getNewName
(String oldName, String token) getSearchSummary
(Locale locale) int
String[]
getThumbnailPath
(PortletRequest portletRequest) getURLDownload
(ThemeDisplay themeDisplay) getURLEdit
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) default PortletURL
getURLEdit
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, String redirect) getURLEdit
(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) default PortletURL
getURLEdit
(javax.servlet.http.HttpServletRequest httpServletRequest) default PortletURL
getURLEdit
(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, String redirect) default PortletURL
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) getURLViewInContext
(ThemeDisplay themeDisplay, String noSuchEntryRedirect) default String
getURLViewUsages
(javax.servlet.http.HttpServletRequest httpServletRequest) long
getUuid()
boolean
hasEditPermission
(PermissionChecker permissionChecker) boolean
hasViewPermission
(PermissionChecker permissionChecker) default boolean
isCategorizable
(long groupId) boolean
boolean
boolean
boolean
boolean
boolean
boolean
Methods inherited from interface com.liferay.asset.kernel.model.Renderer
getClassName, getClassPK, getIconCssClass, getSummary, getTitle, include
-
Field Details
-
TEMPLATE_ABSTRACT
- See Also:
-
TEMPLATE_FULL_CONTENT
- See Also:
-
TEMPLATE_PREVIEW
- See Also:
-
-
Method Details
-
getAssetObject
T getAssetObject() -
getAssetObject
-
getAssetRendererFactory
AssetRendererFactory<T> getAssetRendererFactory() -
getAssetRendererType
int getAssetRendererType() -
getAvailableLanguageIds
- Throws:
Exception
-
getDDMFormValuesReader
DDMFormValuesReader getDDMFormValuesReader() -
getDefaultLanguageId
- Throws:
Exception
-
getDiscussionPath
String getDiscussionPath() -
getGroupId
long getGroupId() -
getNewName
-
getSearchSummary
-
getStatus
int getStatus() -
getSummary
String getSummary() -
getSupportedConversions
String[] getSupportedConversions() -
getThumbnailPath
- Throws:
Exception
-
getURLDownload
-
getURLEdit
default PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getURLEdit
default PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, PortletURL redirectURL) throws Exception - Throws:
Exception
-
getURLEdit
default PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, WindowState windowState, String redirect) throws Exception - Throws:
Exception
-
getURLEdit
PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Throws:
Exception
-
getURLEdit
PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL) throws Exception - Throws:
Exception
-
getURLEdit
default PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, String redirect) throws Exception - Throws:
Exception
-
getURLExport
PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Throws:
Exception
-
getURLImagePreview
- Throws:
Exception
-
getUrlTitle
String getUrlTitle() -
getUrlTitle
-
getURLView
String getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState) throws Exception - Throws:
Exception
-
getURLViewDiffs
PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception - Throws:
Exception
-
getURLViewInContext
String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception - Throws:
Exception
-
getURLViewInContext
- Throws:
Exception
-
getURLViewUsages
default String getURLViewUsages(javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception - Throws:
Exception
-
getUserId
long getUserId() -
getUserName
String getUserName() -
getUuid
String getUuid() -
getViewInContextMessage
String getViewInContextMessage() -
hasEditPermission
- Throws:
PortalException
-
hasViewPermission
- Throws:
PortalException
-
isCategorizable
default boolean isCategorizable(long groupId) -
isCommentable
boolean isCommentable() -
isConvertible
boolean isConvertible() -
isDisplayable
boolean isDisplayable() -
isLocalizable
boolean isLocalizable() -
isPreviewInContext
boolean isPreviewInContext() -
isPrintable
boolean isPrintable() -
isRatable
boolean isRatable()
-