Liferay 7.0-ce-b4

com.liferay.portlet.asset.model
Class BaseAssetRendererFactory<T>

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

public abstract class BaseAssetRendererFactory<T>
extends Object
implements AssetRendererFactory<T>


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<T> getAssetRenderer(long classPK)
           
 AssetRenderer<T> getAssetRenderer(long groupId, String urlTitle)
           
 String getClassName()
           
 long getClassNameId()
           
 Tuple getClassTypeFieldName(long classTypeId, String fieldName, Locale locale)
          Deprecated. 
 List<Tuple> getClassTypeFieldNames(long classTypeId, Locale locale, int start, int end)
          Deprecated. 
 int getClassTypeFieldNamesCount(long classTypeId, Locale locale)
          Deprecated. 
 ClassTypeReader getClassTypeReader()
           
 Map<Long,String> getClassTypes(long[] groupIds, Locale locale)
          Deprecated. 
protected  long getControlPanelPlid(ThemeDisplay themeDisplay)
           
 String getIconCssClass()
           
 String getIconPath(PortletRequest portletRequest)
          Deprecated. As of 7.0.0, with no direct replacement
 String getPortletId()
           
 String getSubtypeTitle(Locale locale)
           
 String getTypeName(Locale locale)
           
 String getTypeName(Locale locale, boolean hasSubtypes)
          Deprecated. As of 7.0.0, replaced by getTypeName(Locale)
 String getTypeName(Locale locale, long subtypeId)
           
 PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
          Deprecated. 
 PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, long classTypeId)
           
 PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState)
           
 boolean hasAddPermission(PermissionChecker permissionChecker, long groupId, long classTypeId)
           
 boolean hasClassTypeFieldNames(long classTypeId, Locale locale)
          Deprecated. 
 boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId)
           
 boolean isActive(long companyId)
           
 boolean isCategorizable()
           
 boolean isLinkable()
           
 boolean isListable(long classPK)
           
 boolean isSearchable()
           
 boolean isSelectable()
           
 boolean isSupportsClassTypes()
           
protected  void setCategorizable(boolean categorizable)
           
 void setClassName(String className)
           
protected  void setLinkable(boolean linkable)
           
 void setPortletId(String portletId)
           
protected  void setSearchable(boolean searchable)
           
protected  void setSelectable(boolean selectable)
           
protected  void setSupportsClassTypes(boolean supportsClassTypes)
           
protected  Tuple toTuple(ClassTypeField classTypeField)
           
 
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, getType
 

Constructor Detail

BaseAssetRendererFactory

public BaseAssetRendererFactory()
Method Detail

getAssetEntry

public AssetEntry getAssetEntry(long assetEntryId)
                         throws PortalException
Specified by:
getAssetEntry in interface AssetRendererFactory<T>
Throws:
PortalException

getAssetEntry

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

getAssetRenderer

public AssetRenderer<T> getAssetRenderer(long classPK)
                                  throws PortalException
Specified by:
getAssetRenderer in interface AssetRendererFactory<T>
Throws:
PortalException

getAssetRenderer

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

getClassName

public String getClassName()
Specified by:
getClassName in interface AssetRendererFactory<T>

getClassNameId

public long getClassNameId()
Specified by:
getClassNameId in interface AssetRendererFactory<T>

getClassTypeFieldName

@Deprecated
public Tuple getClassTypeFieldName(long classTypeId,
                                              String fieldName,
                                              Locale locale)
                            throws Exception
Deprecated. 

Specified by:
getClassTypeFieldName in interface AssetRendererFactory<T>
Throws:
Exception

getClassTypeFieldNames

@Deprecated
public List<Tuple> getClassTypeFieldNames(long classTypeId,
                                                     Locale locale,
                                                     int start,
                                                     int end)
                                   throws Exception
Deprecated. 

Specified by:
getClassTypeFieldNames in interface AssetRendererFactory<T>
Throws:
Exception

getClassTypeFieldNamesCount

@Deprecated
public int getClassTypeFieldNamesCount(long classTypeId,
                                                  Locale locale)
                                throws Exception
Deprecated. 

Specified by:
getClassTypeFieldNamesCount in interface AssetRendererFactory<T>
Throws:
Exception

getClassTypeReader

public ClassTypeReader getClassTypeReader()
Specified by:
getClassTypeReader in interface AssetRendererFactory<T>

getClassTypes

@Deprecated
public Map<Long,String> getClassTypes(long[] groupIds,
                                                 Locale locale)
                               throws Exception
Deprecated. 

Specified by:
getClassTypes in interface AssetRendererFactory<T>
Throws:
Exception

getIconCssClass

public String getIconCssClass()
Specified by:
getIconCssClass in interface AssetRendererFactory<T>

getIconPath

@Deprecated
public String getIconPath(PortletRequest portletRequest)
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getIconPath in interface AssetRendererFactory<T>

getPortletId

public String getPortletId()
Specified by:
getPortletId in interface AssetRendererFactory<T>

getSubtypeTitle

public String getSubtypeTitle(Locale locale)
Specified by:
getSubtypeTitle in interface AssetRendererFactory<T>

getTypeName

public String getTypeName(Locale locale)
Specified by:
getTypeName in interface AssetRendererFactory<T>

getTypeName

@Deprecated
public String getTypeName(Locale locale,
                                     boolean hasSubtypes)
Deprecated. As of 7.0.0, replaced by getTypeName(Locale)

Specified by:
getTypeName in interface AssetRendererFactory<T>

getTypeName

public String getTypeName(Locale locale,
                          long subtypeId)
Specified by:
getTypeName in interface AssetRendererFactory<T>

getURLAdd

@Deprecated
public PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest,
                                       LiferayPortletResponse liferayPortletResponse)
                     throws PortalException
Deprecated. 

Specified by:
getURLAdd in interface AssetRendererFactory<T>
Throws:
PortalException

getURLAdd

public PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest,
                            LiferayPortletResponse liferayPortletResponse,
                            long classTypeId)
                     throws PortalException
Specified by:
getURLAdd in interface AssetRendererFactory<T>
Throws:
PortalException

getURLView

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

hasAddPermission

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

hasClassTypeFieldNames

@Deprecated
public boolean hasClassTypeFieldNames(long classTypeId,
                                                 Locale locale)
                               throws Exception
Deprecated. 

Specified by:
hasClassTypeFieldNames in interface AssetRendererFactory<T>
Throws:
Exception

hasPermission

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

isActive

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

isCategorizable

public boolean isCategorizable()
Specified by:
isCategorizable in interface AssetRendererFactory<T>

isLinkable

public boolean isLinkable()
Specified by:
isLinkable in interface AssetRendererFactory<T>

isListable

public boolean isListable(long classPK)
Specified by:
isListable in interface AssetRendererFactory<T>

isSearchable

public boolean isSearchable()
Specified by:
isSearchable in interface AssetRendererFactory<T>

isSelectable

public boolean isSelectable()
Specified by:
isSelectable in interface AssetRendererFactory<T>

isSupportsClassTypes

public boolean isSupportsClassTypes()
Specified by:
isSupportsClassTypes in interface AssetRendererFactory<T>

setClassName

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

setPortletId

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

getControlPanelPlid

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

setCategorizable

protected void setCategorizable(boolean categorizable)

setLinkable

protected void setLinkable(boolean linkable)

setSearchable

protected void setSearchable(boolean searchable)

setSelectable

protected void setSelectable(boolean selectable)

setSupportsClassTypes

protected void setSupportsClassTypes(boolean supportsClassTypes)

toTuple

protected Tuple toTuple(ClassTypeField classTypeField)

Liferay 7.0-ce-b4