Liferay 7.0-ce-b4

com.liferay.portlet.asset.model
Interface AssetRendererFactory<T>

All Known Implementing Classes:
BaseAssetRendererFactory

public interface AssetRendererFactory<T>


Field Summary
static int TYPE_LATEST
           
static int TYPE_LATEST_APPROVED
           
 
Method Summary
 AssetEntry getAssetEntry(long assetEntryId)
           
 AssetEntry getAssetEntry(String classNameId, long classPK)
           
 AssetRenderer<T> getAssetRenderer(long classPK)
           
 AssetRenderer<T> getAssetRenderer(long classPK, int type)
           
 AssetRenderer<T> getAssetRenderer(long groupId, String urlTitle)
           
 String getClassName()
           
 long getClassNameId()
           
 Tuple getClassTypeFieldName(long classTypeId, String fieldName, Locale locale)
          Deprecated. As of 7.0.0, see ClassTypeReader
 List<Tuple> getClassTypeFieldNames(long classTypeId, Locale locale, int start, int end)
          Deprecated. As of 7.0.0, see ClassTypeReader
 int getClassTypeFieldNamesCount(long classTypeId, Locale locale)
          Deprecated. As of 7.0.0, see ClassTypeReader
 ClassTypeReader getClassTypeReader()
           
 Map<Long,String> getClassTypes(long[] groupIds, Locale locale)
          Deprecated. As of 7.0.0, see ClassTypeReader
 String getIconCssClass()
           
 String getIconPath(PortletRequest portletRequest)
          Deprecated. As of 7.0.0, with no direct replacement
 String getPortletId()
           
 String getSubtypeTitle(Locale locale)
           
 String getType()
           
 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. As of 7.0.0, replaced by getURLAdd(LiferayPortletRequest, LiferayPortletResponse, long)
 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. As of 7.0.0, see ClassTypeReader
 boolean hasPermission(PermissionChecker permissionChecker, long entryClassPK, String actionId)
           
 boolean isActive(long companyId)
           
 boolean isCategorizable()
           
 boolean isLinkable()
           
 boolean isListable(long classPK)
           
 boolean isSearchable()
           
 boolean isSelectable()
           
 boolean isSupportsClassTypes()
           
 void setClassName(String className)
           
 void setPortletId(String portletId)
           
 

Field Detail

TYPE_LATEST

static final int TYPE_LATEST
See Also:
Constant Field Values

TYPE_LATEST_APPROVED

static final int TYPE_LATEST_APPROVED
See Also:
Constant Field Values
Method Detail

getAssetEntry

AssetEntry getAssetEntry(long assetEntryId)
                         throws PortalException
Throws:
PortalException

getAssetEntry

AssetEntry getAssetEntry(String classNameId,
                         long classPK)
                         throws PortalException
Throws:
PortalException

getAssetRenderer

AssetRenderer<T> getAssetRenderer(long classPK)
                                  throws PortalException
Throws:
PortalException

getAssetRenderer

AssetRenderer<T> getAssetRenderer(long classPK,
                                  int type)
                                  throws PortalException
Throws:
PortalException

getAssetRenderer

AssetRenderer<T> getAssetRenderer(long groupId,
                                  String urlTitle)
                                  throws PortalException
Throws:
PortalException

getClassName

String getClassName()

getClassNameId

long getClassNameId()

getClassTypeFieldName

@Deprecated
Tuple getClassTypeFieldName(long classTypeId,
                                       String fieldName,
                                       Locale locale)
                            throws Exception
Deprecated. As of 7.0.0, see ClassTypeReader

Throws:
Exception

getClassTypeFieldNames

@Deprecated
List<Tuple> getClassTypeFieldNames(long classTypeId,
                                              Locale locale,
                                              int start,
                                              int end)
                                   throws Exception
Deprecated. As of 7.0.0, see ClassTypeReader

Throws:
Exception

getClassTypeFieldNamesCount

@Deprecated
int getClassTypeFieldNamesCount(long classTypeId,
                                           Locale locale)
                                throws Exception
Deprecated. As of 7.0.0, see ClassTypeReader

Throws:
Exception

getClassTypeReader

ClassTypeReader getClassTypeReader()

getClassTypes

@Deprecated
Map<Long,String> getClassTypes(long[] groupIds,
                                          Locale locale)
                               throws Exception
Deprecated. As of 7.0.0, see ClassTypeReader

Throws:
Exception

getIconCssClass

String getIconCssClass()

getIconPath

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


getPortletId

String getPortletId()

getSubtypeTitle

String getSubtypeTitle(Locale locale)

getType

String getType()

getTypeName

String getTypeName(Locale locale)

getTypeName

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


getTypeName

String getTypeName(Locale locale,
                   long subtypeId)

getURLAdd

@Deprecated
PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest,
                                LiferayPortletResponse liferayPortletResponse)
                     throws PortalException
Deprecated. As of 7.0.0, replaced by getURLAdd(LiferayPortletRequest, LiferayPortletResponse, long)

Throws:
PortalException

getURLAdd

PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest,
                     LiferayPortletResponse liferayPortletResponse,
                     long classTypeId)
                     throws PortalException
Throws:
PortalException

getURLView

PortletURL getURLView(LiferayPortletResponse liferayPortletResponse,
                      WindowState windowState)
                      throws PortalException
Throws:
PortalException

hasAddPermission

boolean hasAddPermission(PermissionChecker permissionChecker,
                         long groupId,
                         long classTypeId)
                         throws Exception
Throws:
Exception

hasClassTypeFieldNames

@Deprecated
boolean hasClassTypeFieldNames(long classTypeId,
                                          Locale locale)
                               throws Exception
Deprecated. As of 7.0.0, see ClassTypeReader

Throws:
Exception

hasPermission

boolean hasPermission(PermissionChecker permissionChecker,
                      long entryClassPK,
                      String actionId)
                      throws Exception
Throws:
Exception

isActive

boolean isActive(long companyId)

isCategorizable

boolean isCategorizable()

isLinkable

boolean isLinkable()

isListable

boolean isListable(long classPK)

isSearchable

boolean isSearchable()

isSelectable

boolean isSelectable()

isSupportsClassTypes

boolean isSupportsClassTypes()

setClassName

void setClassName(String className)

setPortletId

void setPortletId(String portletId)

Liferay 7.0-ce-b4