com.liferay.portlet.documentlibrary.asset
Class DLFileEntryAssetRendererFactory
java.lang.Object
com.liferay.portlet.asset.model.BaseAssetRendererFactory
com.liferay.portlet.documentlibrary.asset.DLFileEntryAssetRendererFactory
- All Implemented Interfaces:
- AssetRendererFactory
public class DLFileEntryAssetRendererFactory
- extends BaseAssetRendererFactory
Method Summary |
AssetRenderer |
getAssetRenderer(long classPK,
int type)
|
String |
getClassName()
|
List<Tuple> |
getClassTypeFieldNames(long classTypeId,
Locale locale,
int start,
int end)
|
int |
getClassTypeFieldNamesCount(long classTypeId,
Locale locale)
|
Map<Long,String> |
getClassTypes(long[] groupIds,
Locale locale)
|
protected String |
getIconPath(ThemeDisplay themeDisplay)
|
String |
getType()
|
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 |
hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId)
|
boolean |
isLinkable()
|
Methods inherited from class com.liferay.portlet.asset.model.BaseAssetRendererFactory |
getAssetEntry, getAssetEntry, getAssetRenderer, getAssetRenderer, getClassNameId, getControlPanelPlid, getDDMStructureFieldNames, getIconPath, getPortletId, hasClassTypeFieldNames, isActive, isCategorizable, isListable, isSelectable, setClassName, setPortletId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
DLFileEntryAssetRendererFactory
public DLFileEntryAssetRendererFactory()
getAssetRenderer
public AssetRenderer getAssetRenderer(long classPK,
int type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getClassName
public String getClassName()
getClassTypeFieldNames
public List<Tuple> getClassTypeFieldNames(long classTypeId,
Locale locale,
int start,
int end)
throws Exception
- Specified by:
getClassTypeFieldNames
in interface AssetRendererFactory
- Overrides:
getClassTypeFieldNames
in class BaseAssetRendererFactory
- Throws:
Exception
getClassTypeFieldNamesCount
public int getClassTypeFieldNamesCount(long classTypeId,
Locale locale)
throws Exception
- Specified by:
getClassTypeFieldNamesCount
in interface AssetRendererFactory
- Overrides:
getClassTypeFieldNamesCount
in class BaseAssetRendererFactory
- Throws:
Exception
getClassTypes
public Map<Long,String> getClassTypes(long[] groupIds,
Locale locale)
throws Exception
- Specified by:
getClassTypes
in interface AssetRendererFactory
- Overrides:
getClassTypes
in class BaseAssetRendererFactory
- Throws:
Exception
getType
public String getType()
getTypeName
public String getTypeName(Locale locale,
boolean hasSubtypes)
- Specified by:
getTypeName
in interface AssetRendererFactory
- Overrides:
getTypeName
in class BaseAssetRendererFactory
getURLAdd
public PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
- Specified by:
getURLAdd
in interface AssetRendererFactory
- Overrides:
getURLAdd
in class BaseAssetRendererFactory
getURLView
public PortletURL getURLView(LiferayPortletResponse liferayPortletResponse,
WindowState windowState)
- Specified by:
getURLView
in interface AssetRendererFactory
- Overrides:
getURLView
in class BaseAssetRendererFactory
hasAddPermission
public boolean hasAddPermission(PermissionChecker permissionChecker,
long groupId,
long classTypeId)
throws Exception
- Specified by:
hasAddPermission
in interface AssetRendererFactory
- Overrides:
hasAddPermission
in class BaseAssetRendererFactory
- Throws:
Exception
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId)
throws Exception
- Specified by:
hasPermission
in interface AssetRendererFactory
- Overrides:
hasPermission
in class BaseAssetRendererFactory
- Throws:
Exception
isLinkable
public boolean isLinkable()
- Specified by:
isLinkable
in interface AssetRendererFactory
- Overrides:
isLinkable
in class BaseAssetRendererFactory
getIconPath
protected String getIconPath(ThemeDisplay themeDisplay)
- Overrides:
getIconPath
in class BaseAssetRendererFactory