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() |
Tuple |
getClassTypeFieldName(long classTypeId,
String fieldName,
Locale locale)
Deprecated.
As of 7.0.0
|
List<Tuple> |
getClassTypeFieldNames(long classTypeId,
Locale locale,
int start,
int end)
Deprecated.
As of 7.0.0
|
int |
getClassTypeFieldNamesCount(long classTypeId,
Locale locale)
Deprecated.
As of 7.0.0
|
ClassTypeReader |
getClassTypeReader() |
Map<Long,String> |
getClassTypes(long[] groupIds,
Locale locale)
Deprecated.
As of 7.0.0
|
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay) |
protected Group |
getGroup(LiferayPortletRequest liferayPortletRequest) |
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.
As of 7.0.0
|
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
|
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, 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>
@Deprecated public Tuple getClassTypeFieldName(long classTypeId, String fieldName, Locale locale) throws Exception
getClassTypeFieldName
in interface AssetRendererFactory<T>
Exception
@Deprecated public List<Tuple> getClassTypeFieldNames(long classTypeId, Locale locale, int start, int end) throws Exception
getClassTypeFieldNames
in interface AssetRendererFactory<T>
Exception
@Deprecated public int getClassTypeFieldNamesCount(long classTypeId, Locale locale) throws Exception
getClassTypeFieldNamesCount
in interface AssetRendererFactory<T>
Exception
public ClassTypeReader getClassTypeReader()
getClassTypeReader
in interface AssetRendererFactory<T>
@Deprecated public Map<Long,String> getClassTypes(long[] groupIds, Locale locale) throws Exception
getClassTypes
in interface AssetRendererFactory<T>
Exception
public String getIconCssClass()
getIconCssClass
in interface AssetRendererFactory<T>
@Deprecated public String getIconPath(PortletRequest portletRequest)
getIconPath
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>
@Deprecated public String getTypeName(Locale locale, boolean hasSubtypes)
getTypeName(Locale)
getTypeName
in interface AssetRendererFactory<T>
public String getTypeName(Locale locale, long subtypeId)
getTypeName
in interface AssetRendererFactory<T>
@Deprecated public PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws PortalException
getURLAdd
in interface AssetRendererFactory<T>
PortalException
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
@Deprecated public boolean hasClassTypeFieldNames(long classTypeId, Locale locale) throws Exception
hasClassTypeFieldNames
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)