|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.theme.metadata.ServerRegistrationMetaData org.jboss.portal.theme.metadata.LayoutRegistrationMetaData org.jboss.portal.theme.impl.PortalLayoutImpl
Implementation of a PortalLayout
.
An instance of this class represents the meta data of a portal layout.
Constructor Summary | |
PortalLayoutImpl(ServerRegistrationID id,
PortalWebApp pwa,
java.lang.String name,
java.lang.String uri,
java.util.Map stateURIs,
java.util.List renderSets,
java.util.Map strategies,
java.util.List regionNames)
Create the layout. |
Method Summary | |
java.lang.String |
getAppID()
Get the name of the portal web application that contains this layout. |
java.lang.String |
getContextPath()
Get the context path for the servlet context (portal web application) that contains this layout. |
java.lang.ClassLoader |
getLoader()
Get the class loader for this layout, the loader of the portal web application. |
java.lang.String |
getName()
Get the name of this layout. |
java.util.List |
getRegionNames()
Get a list of region names are they are provided in the layout descriptor. |
PortalRenderSet |
getRenderSet(MediaType mediaType)
Out of the render sets defined for this layout (in portal-layouts.xml), get the one that matches the requested content type. |
javax.servlet.ServletContext |
getServletContext()
Get the servlet context that contains this layout. |
LayoutStrategy |
getStrategy(MediaType mediaType)
Out of the portal strategies defined for this layout (if any), get the one that was defined for the provided media type. |
java.lang.String |
getURI()
Get the generic URI for this layout. |
java.lang.String |
getURI(java.lang.String state)
Get the uri, the location of the layout, relative to its context. |
Methods inherited from class org.jboss.portal.theme.metadata.ServerRegistrationMetaData |
getRegistrationID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortalLayoutImpl(ServerRegistrationID id, PortalWebApp pwa, java.lang.String name, java.lang.String uri, java.util.Map stateURIs, java.util.List renderSets, java.util.Map strategies, java.util.List regionNames)
id
- pwa
- the portal pweb application the layout is contained inname
- the name of the layouturi
- the uri of the layout (the Servlet or JSP), relative to the context root of the portal web applicationstateURIs
- a java.util.Map
of state and uri values. the layout can use a differnt resource (URI)
for a particular state (example: use maximized.jsp if the state is maximized)renderSets
- a java.util.List
of render sets that is defined for this layout (see portal-layouts.xml)strategies
- a java.util.Map
of media type and strategy values. A layout can specify a different
strategy for a particular MediaType
(see portal-layouts.xml)
// * @see ServerRegistrationIDMediaType
Method Detail |
public java.lang.String getAppID()
getAppID
in interface PortalLayout
public java.lang.String getName()
getName
in interface PortalLayout
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface PortalLayout
public java.lang.String getURI()
The URI is the location of the layout resource inside the Servlet context that contains it. The generic URI is the one that does not depend on a state. It is the most common URI for this layout.
getURI
in interface PortalLayout
getServletContext()
,
getURI(String)
public java.lang.String getURI(java.lang.String state)
getURI
in interface PortalLayout
state
- an optional key to further separate URIs (for example for maximized window state).
If a layout uri was defined for the provided state, that uri will be returned, otherwise the generic
URI for this layout will be returned. If null is provided, the result is the same as calling getURI()
getServletContext()
,
getURI()
public java.lang.String getContextPath()
getContextPath
in interface PortalLayout
public PortalRenderSet getRenderSet(MediaType mediaType)
getRenderSet
in interface PortalLayout
mediaType
- the media type of the current request
MediaType
,
PortalRenderSet
public java.lang.ClassLoader getLoader()
getLoader
in interface PortalLayout
public LayoutStrategy getStrategy(MediaType mediaType)
getStrategy
in interface PortalLayout
mediaType
- the media type (content type) for which to get the strategy for
public java.util.List getRegionNames()
PortalLayout
getRegionNames
in interface PortalLayout
PortalLayout.getRegionNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |