com.liferay.portlet.asset.model
Class BaseAssetRendererFactory

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

public abstract class BaseAssetRendererFactory
extends java.lang.Object
implements AssetRendererFactory

Author:
Jorge Ferrer, Juan Fernández, Raymond Augé, Sergio González

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(java.lang.String className, long classPK)
           
 AssetRenderer getAssetRenderer(long classPK)
           
 AssetRenderer getAssetRenderer(long groupId, java.lang.String urlTitle)
           
 long getClassNameId()
           
 java.util.List<Tuple> getClassTypeFieldNames(long classTypeId, java.util.Locale locale, int start, int end)
           
 int getClassTypeFieldNamesCount(long classTypeId, java.util.Locale locale)
           
 java.util.Map<java.lang.Long,java.lang.String> getClassTypes(long[] groupId, java.util.Locale locale)
           
protected  long getControlPanelPlid(ThemeDisplay themeDisplay)
           
protected  java.util.List<Tuple> getDDMStructureFieldNames(DDMStructure ddmStructure, java.util.Locale locale)
           
 java.lang.String getIconPath(javax.portlet.PortletRequest portletRequest)
           
protected  java.lang.String getIconPath(ThemeDisplay themeDisplay)
           
 java.lang.String getPortletId()
           
 java.lang.String getTypeName(java.util.Locale locale, boolean hasSubtypes)
           
 javax.portlet.PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 javax.portlet.PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState)
           
 boolean hasClassTypeFieldNames(long classTypeId, java.util.Locale locale)
           
 boolean hasPermission(PermissionChecker permissionChecker, long classPK, java.lang.String actionId)
           
 boolean isActive(long companyId)
           
 boolean isCategorizable()
           
 boolean isLinkable()
           
 boolean isSelectable()
           
 void setClassName(java.lang.String className)
           
 void setPortletId(java.lang.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(java.lang.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,
                                      java.lang.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 java.util.List<Tuple> getClassTypeFieldNames(long classTypeId,
                                                    java.util.Locale locale,
                                                    int start,
                                                    int end)
                                             throws java.lang.Exception
Specified by:
getClassTypeFieldNames in interface AssetRendererFactory
Throws:
java.lang.Exception

getClassTypeFieldNamesCount

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

getClassTypes

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

getIconPath

public java.lang.String getIconPath(javax.portlet.PortletRequest portletRequest)
Specified by:
getIconPath in interface AssetRendererFactory

getPortletId

public java.lang.String getPortletId()
Specified by:
getPortletId in interface AssetRendererFactory

getTypeName

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

getURLAdd

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

getURLView

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

hasClassTypeFieldNames

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

hasPermission

public boolean hasPermission(PermissionChecker permissionChecker,
                             long classPK,
                             java.lang.String actionId)
                      throws java.lang.Exception
Specified by:
hasPermission in interface AssetRendererFactory
Throws:
java.lang.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

isSelectable

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

setClassName

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

setPortletId

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

getControlPanelPlid

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

getDDMStructureFieldNames

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

getIconPath

protected java.lang.String getIconPath(ThemeDisplay themeDisplay)