Package org.gatein.pc.api.info
Interface CapabilitiesInfo
public interface CapabilitiesInfo
Gathers capability information (portlet modes, window states, supported media types and locales) regarding a portlet.
- Since:
- 2.4
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves all the locales supported by the associated Portlet.Retrieves all the portlet modes supported by the associated Portlet.Retrieves all the window states supported by the associated Portlet.getLocales(org.gatein.common.net.media.MediaType mimeType) Retrieves the locales supported by the associated Portlet for the specified MIME type.Set<org.gatein.common.net.media.MediaType>Retrieves all the Media types supported by the associated Portlet.Returns a mode info matching a specifed mode or null.getModes(org.gatein.common.net.media.MediaType mediaType) Retrieves the portlet modes supported by the associated Portlet for the specified Media type.getWindowState(WindowState windowState) Returns a window state info matching a specifed window state or null.getWindowStates(org.gatein.common.net.media.MediaType mimeType) Retrieves the window states supported by the associated Portlet for the specified MIME type.
-
Method Details
-
getMediaTypes
Set<org.gatein.common.net.media.MediaType> getMediaTypes()Retrieves all the Media types supported by the associated Portlet.- Returns:
- a Set of String representation of supported Media types
-
getAllModes
Retrieves all the portlet modes supported by the associated Portlet.- Returns:
- a Set of
ModeInforeprensenting the supported portlet modes
-
getModes
Retrieves the portlet modes supported by the associated Portlet for the specified Media type.- Parameters:
mediaType- the media type- Returns:
- a Set of
ModeInforeprensenting the supported portlet modes for the specified Media type
-
getMode
Returns a mode info matching a specifed mode or null.- Parameters:
mode- the mode- Returns:
- the mode info
-
getAllWindowStates
Set<WindowStateInfo> getAllWindowStates()Retrieves all the window states supported by the associated Portlet.- Returns:
- a Set of
WindowStateInforeprensenting the supported window states
-
getWindowStates
Retrieves the window states supported by the associated Portlet for the specified MIME type.- Parameters:
mimeType- the mime type- Returns:
- a Set of
ModeInforeprensenting the supported window states for the specified MIME type
-
getWindowState
Returns a window state info matching a specifed window state or null.- Parameters:
windowState- the window state- Returns:
- the window state info
-
getAllLocales
Retrieves all the locales supported by the associated Portlet.- Returns:
- the Set of supported
Locales
-
getLocales
Retrieves the locales supported by the associated Portlet for the specified MIME type.- Parameters:
mimeType- the mime type- Returns:
- a Set of supported
Locales for the specified MIME type
-