com.liferay.portlet.documentlibrary.asset
Class DLFileEntryAssetRendererFactory

java.lang.Object
  extended by com.liferay.portlet.asset.model.BaseAssetRendererFactory
      extended by com.liferay.portlet.documentlibrary.asset.DLFileEntryAssetRendererFactory
All Implemented Interfaces:
com.liferay.portlet.asset.model.AssetRendererFactory

public class DLFileEntryAssetRendererFactory
extends com.liferay.portlet.asset.model.BaseAssetRendererFactory

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

Field Summary
static java.lang.String CLASS_NAME
           
static java.lang.String TYPE
           
 
Fields inherited from interface com.liferay.portlet.asset.model.AssetRendererFactory
TYPE_LATEST, TYPE_LATEST_APPROVED
 
Constructor Summary
DLFileEntryAssetRendererFactory()
           
 
Method Summary
 com.liferay.portlet.asset.model.AssetRenderer getAssetRenderer(long classPK, int type)
           
 java.lang.String getClassName()
           
 java.util.Map<java.lang.Long,java.lang.String> getClassTypes(long[] groupIds, java.util.Locale locale)
           
protected  java.lang.String getIconPath(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getType()
           
 javax.portlet.PortletURL getURLAdd(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
           
 boolean hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker, long classPK, java.lang.String actionId)
           
 boolean isLinkable()
           
 
Methods inherited from class com.liferay.portlet.asset.model.BaseAssetRendererFactory
getAssetEntry, getAssetEntry, getAssetRenderer, getAssetRenderer, getClassNameId, getControlPanelPlid, getIconPath, getPortletId, isCategorizable, isSelectable, setClassNameId, setPortletId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

DLFileEntryAssetRendererFactory

public DLFileEntryAssetRendererFactory()
Method Detail

getAssetRenderer

public com.liferay.portlet.asset.model.AssetRenderer getAssetRenderer(long classPK,
                                                                      int type)
                                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getClassName

public java.lang.String getClassName()

getClassTypes

public java.util.Map<java.lang.Long,java.lang.String> getClassTypes(long[] groupIds,
                                                                    java.util.Locale locale)
                                                             throws java.lang.Exception
Specified by:
getClassTypes in interface com.liferay.portlet.asset.model.AssetRendererFactory
Overrides:
getClassTypes in class com.liferay.portlet.asset.model.BaseAssetRendererFactory
Throws:
java.lang.Exception

getType

public java.lang.String getType()

getURLAdd

public javax.portlet.PortletURL getURLAdd(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                          com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
                                   throws com.liferay.portal.kernel.exception.PortalException,
                                          com.liferay.portal.kernel.exception.SystemException
Specified by:
getURLAdd in interface com.liferay.portlet.asset.model.AssetRendererFactory
Overrides:
getURLAdd in class com.liferay.portlet.asset.model.BaseAssetRendererFactory
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasPermission

public boolean hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
                             long classPK,
                             java.lang.String actionId)
                      throws java.lang.Exception
Specified by:
hasPermission in interface com.liferay.portlet.asset.model.AssetRendererFactory
Overrides:
hasPermission in class com.liferay.portlet.asset.model.BaseAssetRendererFactory
Throws:
java.lang.Exception

isLinkable

public boolean isLinkable()
Specified by:
isLinkable in interface com.liferay.portlet.asset.model.AssetRendererFactory
Overrides:
isLinkable in class com.liferay.portlet.asset.model.BaseAssetRendererFactory

getIconPath

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