public abstract class BaseAssetRenderer<T> extends Object implements AssetRenderer<T>
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT, TEMPLATE_PREVIEW
Constructor and Description |
---|
BaseAssetRenderer() |
Modifier and Type | Method and Description |
---|---|
AssetRendererFactory<T> |
getAssetRendererFactory() |
int |
getAssetRendererType() |
String[] |
getAvailableLanguageIds() |
protected long |
getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) |
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay) |
DDMFormValuesReader |
getDDMFormValuesReader() |
String |
getDiscussionPath() |
String |
getIconCssClass() |
protected Locale |
getLocale(javax.portlet.PortletRequest portletRequest) |
String |
getNewName(String oldName,
String token) |
String |
getSearchSummary(Locale locale) |
int |
getStatus() |
String |
getSummary() |
String[] |
getSupportedConversions() |
String |
getThumbnailPath(javax.portlet.PortletRequest portletRequest) |
String |
getURLDownload(ThemeDisplay themeDisplay) |
javax.portlet.PortletURL |
getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.portlet.WindowState windowState,
javax.portlet.PortletURL redirectURL) |
javax.portlet.PortletURL |
getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.portlet.WindowState windowState,
String redirect) |
javax.portlet.PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
javax.portlet.PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
javax.portlet.WindowState windowState,
javax.portlet.PortletURL redirectURL) |
javax.portlet.PortletURL |
getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
javax.portlet.WindowState windowState,
String redirect) |
javax.portlet.PortletURL |
getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLImagePreview(javax.portlet.PortletRequest portletRequest) |
String |
getUrlTitle() |
String |
getUrlTitle(Locale locale) |
String |
getURLView(LiferayPortletResponse liferayPortletResponse,
javax.portlet.WindowState windowState) |
javax.portlet.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 |
getURLViewInContext(ThemeDisplay themeDisplay,
String noSuchEntryRedirect) |
protected String |
getURLViewInContext(ThemeDisplay themeDisplay,
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() |
void |
setAssetRendererType(int assetRendererType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssetObject, getAssetObject, getDefaultLanguageId, getGroupId, getURLEdit, getURLViewUsages, getUserId, getUserName, getUuid, isCategorizable
getClassName, getClassPK, getSummary, getTitle, include
public AssetRendererFactory<T> getAssetRendererFactory()
getAssetRendererFactory
in interface AssetRenderer<T>
public int getAssetRendererType()
getAssetRendererType
in interface AssetRenderer<T>
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface AssetRenderer<T>
public DDMFormValuesReader getDDMFormValuesReader()
getDDMFormValuesReader
in interface AssetRenderer<T>
public String getDiscussionPath()
getDiscussionPath
in interface AssetRenderer<T>
public String getIconCssClass() throws PortalException
getIconCssClass
in interface Renderer
PortalException
public String getNewName(String oldName, String token)
getNewName
in interface AssetRenderer<T>
public String getSearchSummary(Locale locale)
getSearchSummary
in interface AssetRenderer<T>
public int getStatus()
getStatus
in interface AssetRenderer<T>
public String getSummary()
getSummary
in interface AssetRenderer<T>
public String[] getSupportedConversions()
getSupportedConversions
in interface AssetRenderer<T>
public String getThumbnailPath(javax.portlet.PortletRequest portletRequest) throws Exception
getThumbnailPath
in interface AssetRenderer<T>
Exception
public String getURLDownload(ThemeDisplay themeDisplay)
getURLDownload
in interface AssetRenderer<T>
public javax.portlet.PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, javax.portlet.WindowState windowState, javax.portlet.PortletURL redirectURL) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLEdit(javax.servlet.http.HttpServletRequest httpServletRequest, javax.portlet.WindowState windowState, String redirect) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState, javax.portlet.PortletURL redirectURL) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState, String redirect) throws Exception
getURLEdit
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLExport
in interface AssetRenderer<T>
Exception
public String getURLImagePreview(javax.portlet.PortletRequest portletRequest) throws Exception
getURLImagePreview
in interface AssetRenderer<T>
Exception
public String getUrlTitle()
getUrlTitle
in interface AssetRenderer<T>
public String getUrlTitle(Locale locale)
getUrlTitle
in interface AssetRenderer<T>
public String getURLView(LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState) throws Exception
getURLView
in interface AssetRenderer<T>
Exception
public javax.portlet.PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception
getURLViewDiffs
in interface AssetRenderer<T>
Exception
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception
getURLViewInContext
in interface AssetRenderer<T>
Exception
public String getURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect) throws Exception
getURLViewInContext
in interface AssetRenderer<T>
Exception
public String getViewInContextMessage()
getViewInContextMessage
in interface AssetRenderer<T>
public boolean hasEditPermission(PermissionChecker permissionChecker) throws PortalException
hasEditPermission
in interface AssetRenderer<T>
PortalException
public boolean hasViewPermission(PermissionChecker permissionChecker) throws PortalException
hasViewPermission
in interface AssetRenderer<T>
PortalException
public boolean isCommentable()
isCommentable
in interface AssetRenderer<T>
public boolean isConvertible()
isConvertible
in interface AssetRenderer<T>
public boolean isDisplayable()
isDisplayable
in interface AssetRenderer<T>
public boolean isLocalizable()
isLocalizable
in interface AssetRenderer<T>
public boolean isPreviewInContext()
isPreviewInContext
in interface AssetRenderer<T>
public boolean isPrintable()
isPrintable
in interface AssetRenderer<T>
public boolean isRatable()
isRatable
in interface AssetRenderer<T>
public void setAssetRendererType(int assetRendererType)
protected long getControlPanelPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException
PortalException
protected long getControlPanelPlid(ThemeDisplay themeDisplay) throws PortalException
PortalException
protected Locale getLocale(javax.portlet.PortletRequest portletRequest)
protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue)
protected String getURLViewInContext(ThemeDisplay themeDisplay, String noSuchEntryRedirect, String path, String primaryKeyParameterName, long primaryKeyParameterValue)