Package lumis.portal.theme
Interface IThemeManagerSPI
-
- All Known Implementing Classes:
ThemeManager
public interface IThemeManagerSPI
Theme service provider interface.- Since:
- 7.0.0
- Version:
- $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearCache(String themeId)
Clears the theme cache.Collection<ITheme>
getAllThemes()
Returns all registered themesIThemeSPI
getTheme(String themeId)
Returns the theme with the given identifier.void
register(String themePath)
Registers a theme in the specified classpath relative path.void
unregister(String themeId)
Unregisters a theme, removing it from the themes registry.
-
-
-
Method Detail
-
register
void register(String themePath) throws PortalException
Registers a theme in the specified classpath relative path.The theme will be added or updated in the themes registry.
- Parameters:
themePath
- the relative path in the classpath, referencing the folder that contains thethemedefintion.xml
file.- Throws:
PortalException
- if an error occurs during register.- Since:
- 7.0.0
-
unregister
void unregister(String themeId) throws PortalException
Unregisters a theme, removing it from the themes registry.- Parameters:
themeId
- the theme identifier.- Throws:
PortalException
- if an error occurs during unregister.- Since:
- 7.0.0
-
getTheme
IThemeSPI getTheme(String themeId) throws PortalException
Returns the theme with the given identifier.- Parameters:
themeId
- the theme identifier.- Returns:
- the theme.
- Throws:
PortalObjectNotFoundException
- if no theme exists with the given identifier.PortalException
- if an error occurred while obtaining the theme.- Since:
- 7.0.0
-
clearCache
void clearCache(String themeId) throws PortalException
Clears the theme cache.- Parameters:
themeId
- the theme identifier- Throws:
PortalException
- Since:
- 8.0.0
-
getAllThemes
Collection<ITheme> getAllThemes() throws PortalException
Returns all registered themes- Returns:
- a list of all registered themes
- Throws:
PortalException
- Since:
- 8.0.0
-
-