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

View Source

Author:
Julio Camarero, Juan Fernández

Field Summary
 
Fields inherited from interface com.liferay.portlet.asset.model.AssetRenderer
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT
 
Constructor Summary
DLFileEntryAssetRenderer(com.liferay.portlet.documentlibrary.model.DLFileEntry entry)
           
 
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.lang.String getTitle()
           
 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()
           
 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, getIconPath, getUrlTitle, getViewInContextMessage, 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.portlet.documentlibrary.model.DLFileEntry entry)
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()

getTitle

public java.lang.String getTitle()

getURLEdit

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

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()

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