|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TODO: A description of this class.
Method Summary | |
void |
addLayout(LayoutRegistrationMetaData metaData)
Add a layout. |
void |
addRenderSet(PortalRenderSet renderSet)
Register a renderSet with this service |
void |
addStrategy(AbstractLayoutStrategy strategy)
Register a a portal layout strategy with this service |
PortalLayout |
getLayout(ServerRegistrationID id,
boolean defaultOnNull)
Get the layout for the provided registration id. |
PortalLayout |
getLayout(java.lang.String name,
boolean defaultOnNull)
Get the layout for the provided name. |
java.util.Collection |
getLayouts()
Get a Set of portal layouts |
PortalRenderSet |
getRenderSet(PortalLayout layout,
MediaType mediaType)
Get the render set for the provided layout. |
PortalRenderSet |
getRenderSet(java.lang.String renderSetName,
MediaType mediaType)
Get the render set for the provided layout. |
java.util.Collection |
getRenderSets()
Get a Set of all available portal layout renderSets |
java.util.Collection |
getStrategies()
Get a Set of all available portal layout strategies |
LayoutStrategy |
getStrategy(PortalLayout layout,
MediaType mediaType)
Get the layout strategy that was defined for the provided layout. |
LayoutStrategy |
getStrategy(java.lang.String strategyName,
MediaType mediaType)
Get the layout strategy that matches the provided name and media type |
void |
removeLayouts(java.lang.String appID)
Remove all layouts that are hosted in the provided application. |
void |
removeRenderSets(java.lang.String appID)
Remove all rendersets that are hosted in the provided application. |
void |
removeStrategies(java.lang.String appID)
Remove all strategies that are hosted in the provided application. |
void |
setDefaultLayout(java.lang.String name)
Set the default layout (on a global level). |
Method Detail |
public void addLayout(LayoutRegistrationMetaData metaData) throws LayoutException
metaData
- the meta information about the layout
LayoutException
public void setDefaultLayout(java.lang.String name) throws LayoutException
name
- the name of the layout to set as default
LayoutException
public PortalLayout getLayout(ServerRegistrationID id, boolean defaultOnNull)
id
- the registration id of the layout to getdefaultOnNull
- true, if the default layout (if any is defined) should be
returned in case the requested layout is not found
public PortalLayout getLayout(java.lang.String name, boolean defaultOnNull)
name
- the name of the layout to requestdefaultOnNull
- true, if the default layout (if any is defined) should be
returned in case the requested layout is not found
public void removeLayouts(java.lang.String appID) throws LayoutException
appID
- the name of the application that hosts the layout(s) to be removed
LayoutException
public void addStrategy(AbstractLayoutStrategy strategy)
strategy
- the strategy to registerpublic LayoutStrategy getStrategy(PortalLayout layout, MediaType mediaType)
In the layout descriptor (portal-layouts.xml) a strategy can be defined to be used in conjunction with every layout that is defined in this file. The layout must be defined per media type. The portal provides a default implementation on a strategy which can be accessed by passing null as the layout.
layout
- the layout to get the strategy for (or null for the default layout strategy)mediaType
- the media type (content type ; mime type) of the strategy
public LayoutStrategy getStrategy(java.lang.String strategyName, MediaType mediaType)
strategyName
- the name of the strategy to getmediaType
- the media type (content-type) to get the strategy for
public void removeStrategies(java.lang.String appID) throws LayoutException
appID
- the name of the application that hosts the strategie(s) to be removed
LayoutException
public void addRenderSet(PortalRenderSet renderSet)
renderSet
- the renderSet to registerpublic PortalRenderSet getRenderSet(PortalLayout layout, MediaType mediaType)
layout
- the layout to query for an anonymous render set (defined only for this layout)mediaType
- the media type to get the render set for
public PortalRenderSet getRenderSet(java.lang.String renderSetName, MediaType mediaType)
renderSetName
- the name of the renderSet to findmediaType
- the mediatype for which to find the renderSet
public void removeRenderSets(java.lang.String appID) throws LayoutException
appID
- the name of the application that hosts the render set(s) to be removed
LayoutException
public java.util.Collection getLayouts()
public java.util.Collection getStrategies()
public java.util.Collection getRenderSets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |