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 Wilberforce (7.0.x)
|
List<Tuple> |
getClassTypeFieldNames(long classTypeId,
Locale locale,
int start,
int end)
Deprecated.
As of Wilberforce (7.0.x)
|
int |
getClassTypeFieldNamesCount(long classTypeId,
Locale locale)
Deprecated.
As of Wilberforce (7.0.x)
|
ClassTypeReader |
getClassTypeReader() |
Map<Long,String> |
getClassTypes(long[] groupIds,
Locale locale)
Deprecated.
As of Wilberforce (7.0.x)
|
protected long |
getControlPanelPlid(ThemeDisplay themeDisplay) |
protected Group |
getGroup(LiferayPortletRequest liferayPortletRequest) |
String |
getIconCssClass() |
String |
getIconPath(javax.portlet.PortletRequest portletRequest)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
String |
getPortletId() |
String |
getSubtypeTitle(Locale locale) |
String |
getTypeName(Locale locale) |
String |
getTypeName(Locale locale,
boolean hasSubtypes)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getTypeName(Locale) |
String |
getTypeName(Locale locale,
long subtypeId) |
javax.portlet.PortletURL |
getURLAdd(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
Deprecated.
As of Wilberforce (7.0.x)
|
javax.portlet.PortletURL |
getURLAdd(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
long classTypeId) |
javax.portlet.PortletURL |
getURLView(LiferayPortletResponse liferayPortletResponse,
javax.portlet.WindowState windowState) |
boolean |
hasAddPermission(PermissionChecker permissionChecker,
long groupId,
long classTypeId) |
boolean |
hasClassTypeFieldNames(long classTypeId,
Locale locale)
Deprecated.
As of Wilberforce (7.0.x)
|
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(javax.portlet.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 javax.portlet.PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws PortalException
getURLAdd
in interface AssetRendererFactory<T>
PortalException
public javax.portlet.PortletURL getURLAdd(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, long classTypeId) throws PortalException
getURLAdd
in interface AssetRendererFactory<T>
PortalException
public javax.portlet.PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, javax.portlet.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)