com.liferay.portlet.documentlibrary.asset
Class DLFileEntryAssetRenderer

java.lang.Object
  extended by com.liferay.portlet.asset.model.BaseAssetRenderer
      extended by com.liferay.portlet.documentlibrary.asset.DLFileEntryAssetRenderer
All Implemented Interfaces:
com.liferay.portlet.asset.model.AssetRenderer

public class DLFileEntryAssetRenderer
extends com.liferay.portlet.asset.model.BaseAssetRenderer

Author:
Julio Camarero, Juan Fernández, Sergio González

Field Summary
 
Fields inherited from interface com.liferay.portlet.asset.model.AssetRenderer
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT
 
Constructor Summary
DLFileEntryAssetRenderer(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
           
 
Method Summary
 long getClassPK()
           
 java.lang.String getDiscussionPath()
           
 long getGroupId()
           
protected  java.lang.String getIconPath(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getSummary(java.util.Locale locale)
           
 java.lang.String getTitle(java.util.Locale locale)
           
 javax.portlet.PortletURL getURLEdit(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
           
 javax.portlet.PortletURL getURLExport(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
           
 java.lang.String getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, java.lang.String noSuchEntryRedirect)
           
 long getUserId()
           
 java.lang.String getUuid()
           
 boolean hasEditPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 boolean hasViewPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 boolean isConvertible()
           
 boolean isPrintable()
           
 java.lang.String render(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse, java.lang.String template)
           
 
Methods inherited from class com.liferay.portlet.asset.model.BaseAssetRenderer
getAvailableLocales, getControlPanelPlid, getControlPanelPlid, getIconPath, getUrlTitle, getURLView, getURLViewInContext, getViewInContextMessage, isDisplayable, isLocalizable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryAssetRenderer

public DLFileEntryAssetRenderer(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
                                com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
Method Detail

getClassPK

public long getClassPK()

getDiscussionPath

public java.lang.String getDiscussionPath()
Specified by:
getDiscussionPath in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getDiscussionPath in class com.liferay.portlet.asset.model.BaseAssetRenderer

getGroupId

public long getGroupId()

getSummary

public java.lang.String getSummary(java.util.Locale locale)

getTitle

public java.lang.String getTitle(java.util.Locale locale)

getURLEdit

public javax.portlet.PortletURL getURLEdit(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                           com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
                                    throws java.lang.Exception
Specified by:
getURLEdit in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLEdit in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
java.lang.Exception

getURLExport

public javax.portlet.PortletURL getURLExport(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                             com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
Specified by:
getURLExport in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLExport in class com.liferay.portlet.asset.model.BaseAssetRenderer

getURLViewInContext

public java.lang.String getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                            com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
                                            java.lang.String noSuchEntryRedirect)
Specified by:
getURLViewInContext in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLViewInContext in class com.liferay.portlet.asset.model.BaseAssetRenderer

getUserId

public long getUserId()

getUuid

public java.lang.String getUuid()

hasEditPermission

public boolean hasEditPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
hasEditPermission in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
hasEditPermission in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasViewPermission

public boolean hasViewPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
hasViewPermission in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
hasViewPermission in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

isConvertible

public boolean isConvertible()
Specified by:
isConvertible in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
isConvertible in class com.liferay.portlet.asset.model.BaseAssetRenderer

isPrintable

public boolean isPrintable()
Specified by:
isPrintable in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
isPrintable in class com.liferay.portlet.asset.model.BaseAssetRenderer

render

public java.lang.String render(javax.portlet.RenderRequest renderRequest,
                               javax.portlet.RenderResponse renderResponse,
                               java.lang.String template)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getIconPath

protected java.lang.String getIconPath(com.liferay.portal.theme.ThemeDisplay themeDisplay)
Overrides:
getIconPath in class com.liferay.portlet.asset.model.BaseAssetRenderer