Liferay 6.0.5

com.liferay.portlet.asset.model
Class BaseAssetRendererFactory

java.lang.Object
  extended by com.liferay.portlet.asset.model.BaseAssetRendererFactory
All Implemented Interfaces:
AssetRendererFactory
Direct Known Subclasses:
BlogsEntryAssetRendererFactory, BookmarksEntryAssetRendererFactory, CalEventAssetRendererFactory, DLFileEntryAssetRendererFactory, IGImageAssetRendererFactory, JournalArticleAssetRendererFactory, MBMessageAssetRendererFactory, WikiPageAssetRendererFactory

public abstract class BaseAssetRendererFactory
extends Object
implements AssetRendererFactory


Field Summary
 
Fields inherited from interface com.liferay.portlet.asset.model.AssetRendererFactory
TYPE_LATEST, TYPE_LATEST_APPROVED
 
Constructor Summary
BaseAssetRendererFactory()
           
 
Method Summary
 AssetRenderer getAssetRenderer(long classPK)
           
 AssetRenderer getAssetRenderer(long groupId, String urlTitle)
           
 long getClassNameId()
           
 String getIconPath(PortletRequest portletRequest)
           
protected  String getIconPath(ThemeDisplay themeDisplay)
           
 String getPortletId()
           
 PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId)
           
 boolean isSelectable()
           
 void setClassNameId(long classNameId)
           
 void setPortletId(String portletId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.asset.model.AssetRendererFactory
getAssetRenderer, getClassName, getType
 

Constructor Detail

BaseAssetRendererFactory

public BaseAssetRendererFactory()
Method Detail

getAssetRenderer

public AssetRenderer getAssetRenderer(long classPK)
                               throws PortalException,
                                      SystemException
Specified by:
getAssetRenderer in interface AssetRendererFactory
Throws:
PortalException
SystemException

getAssetRenderer

public AssetRenderer getAssetRenderer(long groupId,
                                      String urlTitle)
                               throws PortalException,
                                      SystemException
Specified by:
getAssetRenderer in interface AssetRendererFactory
Throws:
PortalException
SystemException

getClassNameId

public long getClassNameId()
Specified by:
getClassNameId in interface AssetRendererFactory

getIconPath

public String getIconPath(PortletRequest portletRequest)
Specified by:
getIconPath in interface AssetRendererFactory

getPortletId

public String getPortletId()
Specified by:
getPortletId in interface AssetRendererFactory

getURLAdd

public PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest,
                            LiferayPortletResponse liferayPortletResponse)
Specified by:
getURLAdd in interface AssetRendererFactory

hasPermission

public boolean hasPermission(PermissionChecker permissionChecker,
                             long classPK,
                             String actionId)
                      throws Exception
Specified by:
hasPermission in interface AssetRendererFactory
Throws:
Exception

isSelectable

public boolean isSelectable()
Specified by:
isSelectable in interface AssetRendererFactory

setClassNameId

public void setClassNameId(long classNameId)
Specified by:
setClassNameId in interface AssetRendererFactory

setPortletId

public void setPortletId(String portletId)
Specified by:
setPortletId in interface AssetRendererFactory

getIconPath

protected String getIconPath(ThemeDisplay themeDisplay)

Liferay 6.0.5