|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ThemeService is the location where all the available themes are stored and retrieved.
The theme server works together with a deployer to register and unregister themes. The portal can access the theme server via the server manager, and query it for available themes.
Method Summary | |
void |
addTheme(RuntimeContext runtimeContext,
PortalThemeMetaData metaData)
Add a theme. |
void |
removeTheme(PortalTheme theme)
Remove the theme from the available themes. |
void |
removeThemes(java.lang.String applicationName)
Remove all themes that are registered with the provided application. |
void |
setDefault(ServerRegistrationID themeID)
Set the default theme on a global scope. |
Methods inherited from interface org.jboss.portal.theme.ThemeServiceInfo |
getTheme, getTheme, getThemeNames, getThemes |
Method Detail |
public void addTheme(RuntimeContext runtimeContext, PortalThemeMetaData metaData) throws ThemeException
metaData
- the meta data about the theme
ThemeException
public void setDefault(ServerRegistrationID themeID) throws ThemeException
themeID
- the registration id of the theme to be the new default theme
ThemeException
- if the theme with this id is not available in the list of currently registered themespublic void removeTheme(PortalTheme theme) throws ThemeException
theme
- the theme to be removed
ThemeException
- if the theme with this id is not available in the list of currently registered themespublic void removeThemes(java.lang.String applicationName) throws ThemeException
On deployment of a new application, the theme descriptor (if any present) in that application is parsed for themes that are to be registered with the theme server. For each entry in the descriptor, a new theme is registered with the theme server. Uppon undeployment of that same application, all themes must be deregistered. This method is a convenient way to achieve this.
applicationName
- the name of the application that hosts the themes to unregister
ThemeException
- if there are no themes registered with this application, or if an error occurs during the remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |