public abstract class BaseAssetRendererFactory<T> extends Object implements AssetRendererFactory<T>
TYPE_LATEST, TYPE_LATEST_APPROVED
Constructor and Description |
---|
BaseAssetRendererFactory() |
Modifier and Type | Method and Description |
---|---|
AssetEntry |
getAssetEntry(long assetEntryId) |
AssetEntry |
getAssetEntry(String className,
long classPK) |
AssetRenderer<T> |
getAssetRenderer(long classPK) |
AssetRenderer<T> |
getAssetRenderer(long groupId,
String urlTitle) |
AssetRenderer<T> |
getAssetRenderer(T entry,
int type) |
String |
getClassName() |
long |
getClassNameId() |
ClassTypeReader |
getClassTypeReader() |
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay) |
protected Group |
getGroup(LiferayPortletRequest liferayPortletRequest) |
String |
getIconCssClass() |
String |
getPortletId() |
String |
getSubtypeTitle(Locale locale) |
String |
getTypeName(Locale locale) |
String |
getTypeName(Locale locale,
long subtypeId) |
PortletURL |
getURLAdd(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
long classTypeId) |
PortletURL |
getURLView(LiferayPortletResponse liferayPortletResponse,
WindowState windowState) |
boolean |
hasAddPermission(PermissionChecker permissionChecker,
long groupId,
long classTypeId) |
boolean |
hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId) |
boolean |
isActive(long companyId) |
boolean |
isCategorizable() |
boolean |
isLinkable() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssetRenderer, getClassSimpleName, getType
public AssetEntry getAssetEntry(long assetEntryId) throws PortalException
getAssetEntry
in interface AssetRendererFactory<T>
PortalException
public AssetEntry getAssetEntry(String className, long classPK) throws PortalException
getAssetEntry
in interface AssetRendererFactory<T>
PortalException
public AssetRenderer<T> getAssetRenderer(long classPK) throws PortalException
getAssetRenderer
in interface AssetRendererFactory<T>
PortalException
public AssetRenderer<T> getAssetRenderer(long groupId, String urlTitle) throws PortalException
getAssetRenderer
in interface AssetRendererFactory<T>
PortalException
public AssetRenderer<T> getAssetRenderer(T entry, int type) throws PortalException
getAssetRenderer
in interface AssetRendererFactory<T>
PortalException
public String getClassName()
getClassName
in interface AssetRendererFactory<T>
public long getClassNameId()
getClassNameId
in interface AssetRendererFactory<T>
public ClassTypeReader getClassTypeReader()
getClassTypeReader
in interface AssetRendererFactory<T>
public String getIconCssClass()
getIconCssClass
in interface AssetRendererFactory<T>
public String getPortletId()
getPortletId
in interface AssetRendererFactory<T>
public String getSubtypeTitle(Locale locale)
getSubtypeTitle
in interface AssetRendererFactory<T>
public String getTypeName(Locale locale)
getTypeName
in interface AssetRendererFactory<T>
public String getTypeName(Locale locale, long subtypeId)
getTypeName
in interface AssetRendererFactory<T>
public PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, long classTypeId) throws PortalException
getURLAdd
in interface AssetRendererFactory<T>
PortalException
public PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState) throws PortalException
getURLView
in interface AssetRendererFactory<T>
PortalException
public boolean hasAddPermission(PermissionChecker permissionChecker, long groupId, long classTypeId) throws Exception
hasAddPermission
in interface AssetRendererFactory<T>
Exception
public boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId) throws Exception
hasPermission
in interface AssetRendererFactory<T>
Exception
public boolean isActive(long companyId)
isActive
in interface AssetRendererFactory<T>
public boolean isCategorizable()
isCategorizable
in interface AssetRendererFactory<T>
public boolean isLinkable()
isLinkable
in interface AssetRendererFactory<T>
public boolean isSearchable()
isSearchable
in interface AssetRendererFactory<T>
public boolean isSelectable()
isSelectable
in interface AssetRendererFactory<T>
public boolean isSupportsClassTypes()
isSupportsClassTypes
in interface AssetRendererFactory<T>
public void setClassName(String className)
setClassName
in interface AssetRendererFactory<T>
public void setPortletId(String portletId)
setPortletId
in interface AssetRendererFactory<T>
protected long getControlPanelPlid(ThemeDisplay themeDisplay) throws PortalException
PortalException
protected Group getGroup(LiferayPortletRequest liferayPortletRequest)
protected void setCategorizable(boolean categorizable)
protected void setLinkable(boolean linkable)
protected void setSearchable(boolean searchable)
protected void setSelectable(boolean selectable)
protected void setSupportsClassTypes(boolean supportsClassTypes)
protected Tuple toTuple(ClassTypeField classTypeField)