站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

ThemeServiceInfo - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.theme
Interface ThemeServiceInfo

All Known Subinterfaces:
ThemeService
All Known Implementing Classes:
ThemeServiceImpl

public interface ThemeServiceInfo

Read only part of the theme service interface.


Method Summary
 PortalTheme getTheme(ServerRegistrationID themeID, boolean defaultOnNull)
          Get a reference to a theme.
 PortalTheme getTheme(java.lang.String name, boolean defaultOnNull)
          Get a reference to a theme.
 java.util.Collection getThemeNames()
          Get a Collection of all the registered theme's names
 java.util.Collection getThemes()
          Get a Collection of all registered themes.
 

Method Detail

getTheme

public PortalTheme getTheme(ServerRegistrationID themeID,
                            boolean defaultOnNull)
Get a reference to a theme.

Parameters:
themeID - the registration id of the theme to retrieve
defaultOnNull - true, when the server should return the default theme, in case the requested is not found
Returns:
the requested theme, null, or the default theme if defaultOnNull was provided as true
Throws:
java.lang.IllegalArgumentException - if the themeID is null

getTheme

public PortalTheme getTheme(java.lang.String name,
                            boolean defaultOnNull)
Get a reference to a theme.

Parameters:
name - the name of the theme to retrieve
defaultOnNull - true, when the server should return the default theme, in case the requested is not found
Returns:
the requested theme, null, or the default theme if defaultOnNull was provided as true
Throws:
java.lang.IllegalArgumentException - if the themeID is null

getThemes

public java.util.Collection getThemes()
Get a Collection of all registered themes.

Returns:
a Collection of all registered themes

getThemeNames

public java.util.Collection getThemeNames()
Get a Collection of all the registered theme's names

Returns:
a collection of theme names