|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletConfig
The PortletConfig interface provides the portlet with its configuration. The configuration holds information about the portlet that is valid for all users. The configuration is retrieved from the portlet definition in the deployment descriptor. The portlet can only read the configuration data.
The configuration information contains the portlet name, the portlet initialization parameters, the portlet resource bundle and the portlet application context.
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String[]> | getContainerRuntimeOptions()
Returns the container runtime options and values for this portlet. |
java.lang.String | getDefaultNamespace()
Returns the default namespace for events and public render parameters. |
java.lang.String | getInitParameter(java.lang.String name)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. |
java.util.Enumeration<java.lang.String> | getInitParameterNames()
Returns the names of the portlet initialization parameters as an Enumeration of String objects, or an empty Enumeration if the portlet has no initialization parameters. |
PortletContext | getPortletContext()
Returns the PortletContext of the portlet application the portlet is in. |
java.lang.String | getPortletName()
Returns the name of the portlet. |
java.util.Enumeration<javax.xml.namespace.QName> | getProcessingEventQNames()
Returns the QNames of the processing events supported by the portlet as an Enumeration of QName objects, or an empty Enumeration if the portlet has not defined any processing events. |
java.util.Enumeration<java.lang.String> | getPublicRenderParameterNames()
Returns the names of the public render parameters supported by the portlet as an Enumeration of String objects, or an empty Enumeration if the portlet has not defined public render parameters. |
java.util.Enumeration<javax.xml.namespace.QName> | getPublishingEventQNames()
Returns the QNames of the publishing events supported by the portlet as an Enumeration of QName objects, or an empty Enumeration if the portlet has not defined any publishing events. |
java.util.ResourceBundle | getResourceBundle(java.util.Locale locale)
Gets the resource bundle for the given locale based on the resource bundle defined in the deployment descriptor with resource-bundle tag or the inlined resources defined in the deployment descriptor. |
java.util.Enumeration<java.util.Locale> | getSupportedLocales()
Returns the locales supported by the portlet as an Enumeration of Locale objects, or an empty Enumeration if the portlet has not defined any supported locales. |
Method Detail |
---|
java.lang.String getPortletName()
The name may be provided via server administration, assigned in the portlet application deployment descriptor with the portlet-name tag.
PortletContext getPortletContext()
java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
java.lang.String getInitParameter(java.lang.String name)
java.util.Enumeration<java.lang.String> getInitParameterNames()
java.util.Enumeration<java.lang.String> getPublicRenderParameterNames()
Public render parameters are defined in the portlet deployment descriptor with the supported-public-render-parameter element.
java.lang.String getDefaultNamespace()
If no default namespace is defined in the portlet deployment descriptor this methods returns the XML default namespace XMLConstants.NULL_NS_URI.
java.util.Enumeration<javax.xml.namespace.QName> getPublishingEventQNames()
Publishing events are defined in the portlet deployment descriptor with the supported-publishing-event element.
Note that this call does not return any events published that have not been declared in the deployment descriptor as supported.
If the event was defined using the name element instead of the qname element the defined default namespace is added as namespace for the returned QName.
java.util.Enumeration<javax.xml.namespace.QName> getProcessingEventQNames()
Processing events are defined in the portlet deployment descriptor with the supported-processing-event element.
If the event was defined using the name element instead of the qname element the defined default namespace is added as namespace for the returned QName.
java.util.Enumeration<java.util.Locale> getSupportedLocales()
Supported locales are defined in the portlet deployment descriptor with the supported-locale element.
java.util.Map<java.lang.String,java.lang.String[]> getContainerRuntimeOptions()
The portlet can set container runtime
options in the portlet.xml via the
container-runtime-option element with a name and a
value on the application and portlet level.
If a container runtime option is set on the portlet application
level and on the portlet level with the same name the setting
on the portlet level takes precedence and overwrites the one
set on the portal application level.
The map returned from this method will provide the subset the portlet container supports of the options the portlet has specified in the portlet.xml. Options that the portlet container does not support will not be returned in this map.
The map will contain name of the runtime option as key of type String and the runtime options as values of type String array (String[]) with the values specified in the portlet.xml deployment descriptor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |