public interface IPortletInfo extends IComponentData, IView
Portlet descriptor information defined as:
Modifier and Type | Field and Description |
---|---|
static int |
PCA_TYPE_NONE |
static int |
PCA_TYPE_RESTFUL |
static int |
PCA_TYPE_SESSION |
static int |
STATUS_DISABLED
Portlet status DISABLED
|
static int |
STATUS_ENABLED
Portlet status ENABLED
|
static int |
STATUS_HIDDEN
Portlet status HIDDEN
|
PROP_DESCRIPTION, PROP_NAME, PROP_TYPE, PROP_URI
Modifier and Type | Method and Description |
---|---|
void |
clear()
Called during shutdown to cleanup retained objects
|
String |
getAlias()
Returns alias for this portlet type
|
String |
getAttrValue(String name)
Returns value of the attribute with the given name.
|
String |
getBaseTypeName()
Returns base type name for the Portlet/DBO
|
String |
getBeanClassName()
Returns the portlet bean class name.
|
String |
getBundleName()
Returns portlet bundle name.
|
String |
getCaption()
Returns the portlet caption.
|
String |
getCategory()
Returns the portlet category name
|
Set<String> |
getContentTypes()
Returns supported content types by the portlet.
|
IPortletControllerInfo |
getControllerInfo()
Returns portlet controller info
|
DateFormat |
getDateFormatForProperty(IContext context,
String propertyName)
Utility method that retrieves the date pattern needed to parse or format a
portlet property that represents a Date or Calendar.
|
String |
getDestroySP()
Deprecated.
|
String |
getHelpPage()
Deprecated.
|
int |
getPropertyCount(int propertyType)
Returns total number of properties of the given type
|
IPortletPropertyGroupInfo |
getPropertyGroupInfo(String name)
Returns property group info object for the given group name
|
Iterator<IPortletPropertyGroupInfo> |
getPropertyGroupInfos()
Returns property group infos.
|
IPortletPropertyInfo |
getPropertyInfo(String propertyName)
Returns property information for the property with the given name
|
Iterator<IPortletPropertyInfo> |
getPropertyInfos()
Returns the portlet property infos as an iterator of
IPortletPropertyInfo . |
Iterator<IPortletPropertyInfo> |
getPropertyInfos(int propertyType)
Returns the portlet property infos as an iterator of
IPortletPropertyInfo . |
Iterator<IPortletPropertyInfo> |
getPropertyInfos(IPortletPropertyListFilter filter)
The same as
getPropertyInfos(int) but allows to specify a custom filter for the properties. |
String[] |
getRequiredComponents() |
Class<? extends ResourceBundle> |
getResourceBundleClass()
Returns portlet resource bundle
|
int |
getStatus()
Returns the portlet run-time status.
|
String |
getThingFactoryClassName()
Returns thing factory class name
|
String |
getTitle()
Returns the portlet title
|
String |
getTitleBarClassName()
Deprecated.
|
boolean |
getTwoPassRenderingSupported()
Deprecated.
|
IThingID |
getTypeID()
Returns the portlet type thing id.
|
String |
getTypeName()
Returns the portlet name.
|
String |
getVersion()
Returns the portlet version string.
|
IThingID |
getXTypeID()
Returns the portlet xtype id
|
IPortletXTypeInfo |
getXTypeInfo()
Returns XType information if portlet is a DBO.
|
boolean |
hasBeanClass()
Deprecated.
|
boolean |
isAclFree()
Returns true is the portlet is marked as ACL free
|
boolean |
isJSR168() |
boolean |
isPublishableAsStandalone() |
boolean |
isPublishableInFBE()
Deprecated.
|
boolean |
isPublishableInVE()
Deprecated.
|
boolean |
isPublishRequired()
Deprecated.
|
boolean |
isResizable()
Deprecated.
|
boolean |
isSystemPortlet()
Deprecated.
|
boolean |
isTemplateOnlyPortlet()
Deprecated.
|
boolean |
isTwoPassModeSwitchDisabled()
Deprecated.
|
void |
setAttrValue(String name,
String value)
Sets a new value of the attribute.
|
void |
setStatus(int status)
Sets the portlet new run-time status.
|
getComponent, getComponentClassName, getConfig, getConfigFile, getConfigStream, getEnabled, getProperties, getURI, setComponent, setComponentClassName, setConfig, setConfigFile, setConfigStream, setEnabled, setProperties
getProperties, getProperty, getPropertyNames, getURI
static final int STATUS_ENABLED
static final int STATUS_HIDDEN
static final int STATUS_DISABLED
static final int PCA_TYPE_NONE
static final int PCA_TYPE_SESSION
static final int PCA_TYPE_RESTFUL
String getTypeName()
null
or empty string.IThingID getTypeID()
IThingID getXTypeID()
String getCaption()
String getTitle()
String getCategory()
String getVersion()
String getBeanClassName()
IPortletBean
interface.@Deprecated boolean hasBeanClass()
@Deprecated String getTitleBarClassName()
@Deprecated boolean getTwoPassRenderingSupported()
@Deprecated boolean isTwoPassModeSwitchDisabled()
@Deprecated String getHelpPage()
@Deprecated boolean isTemplateOnlyPortlet()
@Deprecated boolean isSystemPortlet()
@Deprecated boolean isPublishableInVE()
@Deprecated boolean isPublishableInFBE()
boolean isPublishableAsStandalone()
@Deprecated boolean isPublishRequired()
Iterator<IPortletPropertyInfo> getPropertyInfos()
IPortletPropertyInfo
.Iterator<IPortletPropertyInfo> getPropertyInfos(int propertyType)
IPortletPropertyInfo
. A mask can
be specified with to filter properties by type.propertyType
- the mask with the propety types that you'd like to get backint getPropertyCount(int propertyType)
propertyType
- the type of the propertiesIterator<IPortletPropertyInfo> getPropertyInfos(IPortletPropertyListFilter filter)
getPropertyInfos(int)
but allows to specify a custom filter for the properties.filter
- the filter implementationgetPropertyInfos(int)
Iterator<IPortletPropertyGroupInfo> getPropertyGroupInfos()
IPortletPropertyGroupInfo
IPortletPropertyGroupInfo getPropertyGroupInfo(String name)
name
- group nameIPortletPropertyInfo getPropertyInfo(String propertyName)
propertyName
- the name of the propertyString getAttrValue(String name)
name
- the name of the attribute.void setAttrValue(String name, String value)
name
- the name of the attribute to set the valuevalue
- the new valueint getStatus()
STATUS_ENABLED
,
STATUS_HIDDEN
,
STATUS_DISABLED
void setStatus(int status)
status
- new portlet statusgetStatus()
Set<String> getContentTypes()
String getBundleName()
IPortletControllerInfo getControllerInfo()
String getBaseTypeName()
String getThingFactoryClassName()
@Deprecated String getDestroySP()
String getAlias()
boolean isAclFree()
@Deprecated boolean isResizable()
Class<? extends ResourceBundle> getResourceBundleClass()
String[] getRequiredComponents()
boolean isJSR168()
DateFormat getDateFormatForProperty(IContext context, String propertyName) throws PortalException
context
- the current portal user contextpropertyName
- the property to retrieve the pattern forSimpleDateFormat
PortalException
IPortletXTypeInfo getXTypeInfo()
void clear()