Liferay 6.2-ce-ga5

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, BookmarksFolderAssetRendererFactory, DDLRecordAssetRendererFactory, DLFileEntryAssetRendererFactory, DLFolderAssetRendererFactory, JournalArticleAssetRendererFactory, JournalFolderAssetRendererFactory, 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()
           
 List<Tuple> getClassTypeFieldNames(long classTypeId, Locale locale, int start, int end)
           
 int getClassTypeFieldNamesCount(long classTypeId, Locale locale)
           
 Map<Long,String> getClassTypes(long[] groupId, Locale locale)
           
protected  long getControlPanelPlid(ThemeDisplay themeDisplay)
           
protected  List<Tuple> getDDMStructureFieldNames(DDMStructure ddmStructure, Locale locale)
           
 String getIconPath(PortletRequest portletRequest)
           
protected  String getIconPath(ThemeDisplay themeDisplay)
           
 String getPortletId()
           
 String getTypeName(Locale locale, boolean hasSubtypes)
           
 PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState)
           
 boolean hasAddPermission(PermissionChecker permissionChecker, long groupId, long classTypeId)
           
 boolean hasClassTypeFieldNames(long classTypeId, Locale locale)
           
 boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId)
           
 boolean isActive(long companyId)
           
 boolean isCategorizable()
           
 boolean isLinkable()
           
 boolean isListable(long classPK)
           
 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

getClassTypeFieldNames

public List<Tuple> getClassTypeFieldNames(long classTypeId,
                                          Locale locale,
                                          int start,
                                          int end)
                                   throws Exception
Specified by:
getClassTypeFieldNames in interface AssetRendererFactory
Throws:
Exception

getClassTypeFieldNamesCount

public int getClassTypeFieldNamesCount(long classTypeId,
                                       Locale locale)
                                throws Exception
Specified by:
getClassTypeFieldNamesCount in interface AssetRendererFactory
Throws:
Exception

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

getTypeName

public String getTypeName(Locale locale,
                          boolean hasSubtypes)
Specified by:
getTypeName in interface AssetRendererFactory

getURLAdd

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

getURLView

public PortletURL getURLView(LiferayPortletResponse liferayPortletResponse,
                             WindowState windowState)
                      throws PortalException,
                             SystemException
Specified by:
getURLView in interface AssetRendererFactory
Throws:
PortalException
SystemException

hasAddPermission

public boolean hasAddPermission(PermissionChecker permissionChecker,
                                long groupId,
                                long classTypeId)
                         throws Exception
Specified by:
hasAddPermission in interface AssetRendererFactory
Throws:
Exception

hasClassTypeFieldNames

public boolean hasClassTypeFieldNames(long classTypeId,
                                      Locale locale)
                               throws Exception
Specified by:
hasClassTypeFieldNames in interface AssetRendererFactory
Throws:
Exception

hasPermission

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

isActive

public boolean isActive(long companyId)
Specified by:
isActive in interface AssetRendererFactory

isCategorizable

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

isLinkable

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

isListable

public boolean isListable(long classPK)
                   throws SystemException
Specified by:
isListable in interface AssetRendererFactory
Throws:
SystemException

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

getDDMStructureFieldNames

protected List<Tuple> getDDMStructureFieldNames(DDMStructure ddmStructure,
                                                Locale locale)
                                         throws Exception
Throws:
Exception

getIconPath

protected String getIconPath(ThemeDisplay themeDisplay)

Liferay 6.2-ce-ga5