|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutServer
TODO: A description of this class.
Method Summary | |
---|---|
void |
addLayout(LayoutRegistrationMetaData metaData)
Add a layout. |
void |
addRenderSet(PortalRenderSet renderSet)
|
void |
addStrategy(AbstractLayoutStrategy strategy)
|
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. |
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. |
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)
|
void |
removeLayouts(java.lang.String appName)
Remove all layouts that are hosted in the provided application. |
void |
removeRenderSets(java.lang.String appName)
Remove all rendersets that are hosted in the provided application. |
void |
removeStrategies(java.lang.String appName)
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 |
---|
void addLayout(LayoutRegistrationMetaData metaData) throws LayoutException
metaData
- the meta information about the layout
LayoutException
void setDefaultLayout(java.lang.String name) throws LayoutException
name
- the name of the layout to set as default
LayoutException
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
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
void removeLayouts(java.lang.String appName) throws LayoutException
appName
- the name of the application that hosts the layout(s) to be removed
LayoutException
void addStrategy(AbstractLayoutStrategy strategy)
strategy
- 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
LayoutStrategy getStrategy(java.lang.String strategyName, MediaType mediaType)
strategyName
- mediaType
-
void removeStrategies(java.lang.String appName) throws LayoutException
appName
- the name of the application that hosts the strategie(s) to be removed
LayoutException
void addRenderSet(PortalRenderSet renderSet)
renderSet
- PortalRenderSet getRenderSet(PortalLayout layout, MediaType mediaType)
layout
- mediaType
-
PortalRenderSet getRenderSet(java.lang.String renderSetName, MediaType mediaType)
renderSetName
- mediaType
-
void removeRenderSets(java.lang.String appName) throws LayoutException
appName
- the name of the application that hosts the render set(s) to be removed
LayoutException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |