Liferay 6.1.2-ce-ga3

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, DDLRecordAssetRendererFactory, DLFileEntryAssetRendererFactory, JournalArticleAssetRendererFactory, LayoutRevisionAssetRendererFactory, MBCategoryAssetRendererFactory, MBMessageAssetRendererFactory, UserAssetRendererFactory, 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
 AssetEntry getAssetEntry(long assetEntryId)
           
 AssetEntry getAssetEntry(String className, long classPK)
           
 AssetRenderer getAssetRenderer(long classPK)
           
 AssetRenderer getAssetRenderer(long groupId, String urlTitle)
           
 long getClassNameId()
           
 Map<Long,String> getClassTypes(long[] groupId, Locale locale)
           
protected  long getControlPanelPlid(ThemeDisplay themeDisplay)
           
 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 isCategorizable()
           
 boolean isLinkable()
           
 boolean isSelectable()
           
 void setClassName(String className)
           
 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

getAssetEntry

public AssetEntry getAssetEntry(long assetEntryId)
                         throws PortalException,
                                SystemException
Specified by:
getAssetEntry in interface AssetRendererFactory
Throws:
PortalException
SystemException

getAssetEntry

public AssetEntry getAssetEntry(String className,
                                long classPK)
                         throws PortalException,
                                SystemException
Specified by:
getAssetEntry in interface AssetRendererFactory
Throws:
PortalException
SystemException

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

getClassTypes

public Map<Long,String> getClassTypes(long[] groupId,
                                      Locale locale)
                               throws Exception
Specified by:
getClassTypes in interface AssetRendererFactory
Throws:
Exception

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)
                     throws PortalException,
                            SystemException
Specified by:
getURLAdd in interface AssetRendererFactory
Throws:
PortalException
SystemException

hasPermission

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

isCategorizable

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

isLinkable

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

isSelectable

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

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface AssetRendererFactory

setPortletId

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

getControlPanelPlid

protected long getControlPanelPlid(ThemeDisplay themeDisplay)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getIconPath

protected String getIconPath(ThemeDisplay themeDisplay)

Liferay 6.1.2-ce-ga3