public class ServiceInterfaceStyleManager extends Object implements IServiceInterfaceStyleManager
Constructor and Description |
---|
ServiceInterfaceStyleManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStyleCacheConfig(StyleCacheConfig styleCacheConfig)
Add a cache of the style.
|
void |
clearStyleCache(ITransaction transaction)
Clears all style cache.
|
void |
clearStyleCache(String fileName)
Clear the cache for the specified style file.
|
void |
deleteStyleCacheConfig(String fileName)
Delete the cache of the style.
|
IStyle |
getCachedStyle(String stylePath)
Returns the cached version of the style in the given path.
|
IStyle |
getCachedStyle(String stylePath,
List<ITheme> themes)
Returns the cached version of the style in the given path.
|
IStyle |
getDynamicStyle(String stylePath)
Returns the dynamic version of the style in the given path.
|
IStyle |
getDynamicStyle(String stylePath,
List<ITheme> themes)
Returns the dynamic version of the style in the given path.
|
IStyle |
getDynamicStyle(String styleString,
String stylePath,
List<ITheme> themes)
Returns the cached version of the style in the given path.
|
StyleCacheConfig |
getStyleCacheConfig(String fileName)
Get the styleCacheConfig.
|
boolean |
isStyleCached(String fileName)
Verify if the style file is cached.
|
void |
updateStyleCacheConfig(StyleCacheConfig styleCacheConfig)
Update the cache of the style.
|
public void addStyleCacheConfig(StyleCacheConfig styleCacheConfig) throws PortalException, ManagerException
IServiceInterfaceStyleManager
addStyleCacheConfig
in interface IServiceInterfaceStyleManager
PortalException
ManagerException
public void deleteStyleCacheConfig(String fileName) throws PortalException, ManagerException
IServiceInterfaceStyleManager
deleteStyleCacheConfig
in interface IServiceInterfaceStyleManager
PortalException
ManagerException
public void updateStyleCacheConfig(StyleCacheConfig styleCacheConfig) throws PortalException, ManagerException
IServiceInterfaceStyleManager
updateStyleCacheConfig
in interface IServiceInterfaceStyleManager
PortalException
ManagerException
public StyleCacheConfig getStyleCacheConfig(String fileName) throws PortalException, ManagerException
IServiceInterfaceStyleManager
getStyleCacheConfig
in interface IServiceInterfaceStyleManager
PortalException
ManagerException
public void clearStyleCache(String fileName) throws PortalException, ManagerException
IServiceInterfaceStyleManager
clearStyleCache
in interface IServiceInterfaceStyleManager
fileName
- the style file path.PortalException
ManagerException
public void clearStyleCache(ITransaction transaction) throws PortalException
IServiceInterfaceStyleManager
clearStyleCache
in interface IServiceInterfaceStyleManager
transaction
- the transaction for persistence access. If null, the cache is just cleared, else it is cleared as a
transactional operation as specified in PortalCache.clear(ITransaction)
.PortalException
public boolean isStyleCached(String fileName)
IServiceInterfaceStyleManager
isStyleCached
in interface IServiceInterfaceStyleManager
fileName
- the style file path.true
if any variant of the style is being cached, or false
otherwise.public IStyle getCachedStyle(String stylePath) throws PortalException
IServiceInterfaceStyleManager
getCachedStyle
in interface IServiceInterfaceStyleManager
stylePath
- the style path.PortalException
public IStyle getCachedStyle(String stylePath, List<ITheme> themes) throws PortalException
IServiceInterfaceStyleManager
getCachedStyle
in interface IServiceInterfaceStyleManager
stylePath
- the style path.themes
- the list of applied themes.PortalException
public IStyle getDynamicStyle(String stylePath) throws PortalException
IServiceInterfaceStyleManager
getDynamicStyle
in interface IServiceInterfaceStyleManager
stylePath
- the style path.PortalException
public IStyle getDynamicStyle(String stylePath, List<ITheme> themes) throws PortalException
IServiceInterfaceStyleManager
getDynamicStyle
in interface IServiceInterfaceStyleManager
stylePath
- the style path.themes
- the list of applied themes.PortalException
public IStyle getDynamicStyle(String styleString, String stylePath, List<ITheme> themes) throws PortalException
IServiceInterfaceStyleManager
getDynamicStyle
in interface IServiceInterfaceStyleManager
styleString
- the style text.stylePath
- the style path.themes
- the list of applied themes.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.