com.liferay.portlet.documentlibrary.asset
Class DLFileEntryAssetRenderer
java.lang.Object
com.liferay.portlet.asset.model.BaseAssetRenderer
com.liferay.portlet.documentlibrary.asset.DLFileEntryAssetRenderer
- All Implemented Interfaces:
- AssetRenderer
public class DLFileEntryAssetRenderer
- extends BaseAssetRenderer
Methods inherited from class com.liferay.portlet.asset.model.BaseAssetRenderer |
getAvailableLocales, getControlPanelPlid, getControlPanelPlid, getIconPath, getSearchSummary, getURLEdit, getUrlTitle, getURLView, getURLViewInContext, getViewInContextMessage, isDisplayable, isLocalizable, isPreviewInContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFileEntryAssetRenderer
public DLFileEntryAssetRenderer(FileEntry fileEntry,
FileVersion fileVersion)
getClassPK
public long getClassPK()
getDiscussionPath
public String getDiscussionPath()
- Specified by:
getDiscussionPath
in interface AssetRenderer
- Overrides:
getDiscussionPath
in class BaseAssetRenderer
getGroupId
public long getGroupId()
getSummary
public String getSummary(Locale locale)
getTitle
public String getTitle(Locale locale)
getURLEdit
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
throws Exception
- Specified by:
getURLEdit
in interface AssetRenderer
- Overrides:
getURLEdit
in class BaseAssetRenderer
- Throws:
Exception
getURLExport
public PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
- Specified by:
getURLExport
in interface AssetRenderer
- Overrides:
getURLExport
in class BaseAssetRenderer
getURLViewInContext
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect)
- Specified by:
getURLViewInContext
in interface AssetRenderer
- Overrides:
getURLViewInContext
in class BaseAssetRenderer
getUserId
public long getUserId()
getUserName
public String getUserName()
getUuid
public String getUuid()
hasEditPermission
public boolean hasEditPermission(PermissionChecker permissionChecker)
throws PortalException,
SystemException
- Specified by:
hasEditPermission
in interface AssetRenderer
- Overrides:
hasEditPermission
in class BaseAssetRenderer
- Throws:
PortalException
SystemException
hasViewPermission
public boolean hasViewPermission(PermissionChecker permissionChecker)
throws PortalException,
SystemException
- Specified by:
hasViewPermission
in interface AssetRenderer
- Overrides:
hasViewPermission
in class BaseAssetRenderer
- Throws:
PortalException
SystemException
isConvertible
public boolean isConvertible()
- Specified by:
isConvertible
in interface AssetRenderer
- Overrides:
isConvertible
in class BaseAssetRenderer
isPrintable
public boolean isPrintable()
- Specified by:
isPrintable
in interface AssetRenderer
- Overrides:
isPrintable
in class BaseAssetRenderer
render
public String render(RenderRequest renderRequest,
RenderResponse renderResponse,
String template)
throws Exception
- Throws:
Exception
getIconPath
protected String getIconPath(ThemeDisplay themeDisplay)
- Overrides:
getIconPath
in class BaseAssetRenderer