Liferay 6.2.0

com.liferay.portlet.asset.model
Interface AssetRendererFactory

All Known Implementing Classes:
BaseAssetRendererFactory, BlogsEntryAssetRendererFactory, BookmarksEntryAssetRendererFactory, BookmarksFolderAssetRendererFactory, DDLRecordAssetRendererFactory, DLFileEntryAssetRendererFactory, DLFolderAssetRendererFactory, JournalArticleAssetRendererFactory, JournalFolderAssetRendererFactory, LayoutRevisionAssetRendererFactory, MBCategoryAssetRendererFactory, MBDiscussionAssetRendererFactory, MBMessageAssetRendererFactory, UserAssetRendererFactory, WikiPageAssetRendererFactory

public interface AssetRendererFactory


Field Summary
static int TYPE_LATEST
           
static int TYPE_LATEST_APPROVED
           
 
Method Summary
abstract  AssetEntry getAssetEntry(long assetEntryId)
           
abstract  AssetEntry getAssetEntry(String classNameId, long classPK)
           
abstract  AssetRenderer getAssetRenderer(long classPK)
           
abstract  AssetRenderer getAssetRenderer(long classPK, int type)
           
abstract  AssetRenderer getAssetRenderer(long groupId, String urlTitle)
           
abstract  String getClassName()
           
abstract  long getClassNameId()
           
abstract  List<Tuple> getClassTypeFieldNames(long classTypeId, Locale locale, int start, int end)
           
abstract  int getClassTypeFieldNamesCount(long classTypeId, Locale locale)
           
abstract  Map<Long,String> getClassTypes(long[] groupIds, Locale locale)
           
abstract  String getIconPath(PortletRequest portletRequest)
           
abstract  String getPortletId()
           
abstract  String getType()
           
abstract  String getTypeName(Locale locale, boolean hasSubtypes)
           
abstract  PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
abstract  PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState)
           
abstract  boolean hasAddPermission(PermissionChecker permissionChecker, long groupId, long classTypeId)
           
abstract  boolean hasClassTypeFieldNames(long classTypeId, Locale locale)
           
abstract  boolean hasPermission(PermissionChecker permissionChecker, long entryClassPK, String actionId)
           
abstract  boolean isActive(long companyId)
           
abstract  boolean isCategorizable()
           
abstract  boolean isLinkable()
           
abstract  boolean isListable(long classPK)
           
abstract  boolean isSelectable()
           
abstract  void setClassName(String className)
           
abstract  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,
                                SystemException
Throws:
PortalException
SystemException

getAssetEntry

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

getAssetRenderer

AssetRenderer getAssetRenderer(long classPK)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getAssetRenderer

AssetRenderer getAssetRenderer(long classPK,
                               int type)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getAssetRenderer

AssetRenderer getAssetRenderer(long groupId,
                               String urlTitle)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getClassName

String getClassName()

getClassNameId

long getClassNameId()

getClassTypeFieldNames

List<Tuple> getClassTypeFieldNames(long classTypeId,
                                   Locale locale,
                                   int start,
                                   int end)
                                   throws Exception
Throws:
Exception

getClassTypeFieldNamesCount

int getClassTypeFieldNamesCount(long classTypeId,
                                Locale locale)
                                throws Exception
Throws:
Exception

getClassTypes

Map<Long,String> getClassTypes(long[] groupIds,
                               Locale locale)
                               throws Exception
Throws:
Exception

getIconPath

String getIconPath(PortletRequest portletRequest)

getPortletId

String getPortletId()

getType

String getType()

getTypeName

String getTypeName(Locale locale,
                   boolean hasSubtypes)

getURLAdd

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

getURLView

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

hasAddPermission

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

hasClassTypeFieldNames

boolean hasClassTypeFieldNames(long classTypeId,
                               Locale locale)
                               throws Exception
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)
                   throws SystemException
Throws:
SystemException

isSelectable

boolean isSelectable()

setClassName

void setClassName(String className)

setPortletId

void setPortletId(String portletId)

Liferay 6.2.0