public interface IXslCacheManager
Modifier and Type | Method and Description |
---|---|
void |
add(SessionConfig sessionConfig,
XslCacheConfig xslCacheConfig,
ITransaction transaction)
Add a cache of the XSL.
|
void |
clearXslCache(ITransaction transaction)
Clears all XSL cache.
|
void |
clearXslCache(SessionConfig sessionConfig,
String fileName,
ITransaction transaction)
Clear the cache for the specified xsl file.
|
void |
clearXslConfigCache(SessionConfig sessionConfig,
ITransaction transaction)
Clear the XslConfigCache.
|
void |
clearXslConfigCache(SessionConfig sessionConfig,
String fileName,
ITransaction transaction)
Clear the XslConfigCache.
|
Transformer |
createTransformer(String resourcePath)
Creates a transformer for a XSL in the specified path.
|
Transformer |
createTransformer(String resourcePath,
List<? extends ITheme> themes)
Creates a transformer for a XSL in the specified path, with the given
themes applied.
|
Transformer |
createTransformer(String xslStringDocument,
String resourcePath)
Creates a transformer for a specified XSL document string.
|
Transformer |
createTransformer(String xslStringDocument,
String resourcePath,
List<? extends ITheme> themes)
Creates a transformer for a specified XSL document string.
|
void |
delete(SessionConfig sessionConfig,
String fileName,
ITransaction transaction)
Delete de cache of the XSL.
|
XslCacheConfig |
get(SessionConfig sessionConfig,
String fileName,
ITransaction transaction)
Get the XslCacheConfig.
|
boolean |
getDefaultCache()
Get the default cache.
|
Transformer |
getTransformer(SessionConfig sessionConfig,
String fileName,
ITransaction transaction)
Get a Transformer.
|
Transformer |
getTransformer(SessionConfig sessionConfig,
String xslPath,
List<? extends ITheme> themes,
ITransaction transaction)
Returns a transformer for a XSL in the specified path, with the given
themes applied.
|
boolean |
isXslCached(String fileName)
Verify if the xsl file is cached.
|
void |
setDefaultCache(boolean enable)
Set the default cache.
|
void |
update(SessionConfig sessionConfig,
XslCacheConfig xslCacheConfig,
ITransaction transaction)
Update the cache of the XSL.
|
void setDefaultCache(boolean enable)
enable
- boolean getDefaultCache()
void add(SessionConfig sessionConfig, XslCacheConfig xslCacheConfig, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- xslCacheConfig
- transaction
- PortalException
ManagerException
void delete(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- fileName
- transaction
- PortalException
ManagerException
void update(SessionConfig sessionConfig, XslCacheConfig xslCacheConfig, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- xslCacheConfig
- transaction
- PortalException
ManagerException
XslCacheConfig get(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- fileName
- transaction
- PortalException
ManagerException
void clearXslConfigCache(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- fileName
- transaction
- PortalException
ManagerException
void clearXslConfigCache(SessionConfig sessionConfig, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- transaction
- PortalException
ManagerException
Transformer getTransformer(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- fileName
- transaction
- PortalException
ManagerException
Transformer getTransformer(SessionConfig sessionConfig, String xslPath, List<? extends ITheme> themes, ITransaction transaction) throws PortalException
sessionConfig
- user session information.xslPath
- the classpath relative resource path where the
XSL is present.themes
- a list with the themes,in the same order they are applied.transaction
- the transaction for persistence access.PortalException
- if the transformer could not be created.Transformer createTransformer(String resourcePath) throws PortalException
resourcePath
- the relative classpath resource path where the
document is present.PortalException
- if the transformer could not be created.createTransformer(String, List)
Transformer createTransformer(String resourcePath, List<? extends ITheme> themes) throws PortalException
resourcePath
- the relative classpath resource path where the
document is present.themes
- a list with the themes,in the same order they are applied.PortalException
- if the transformer could not be created.void clearXslCache(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
sessionConfig
- the user session information.fileName
- the xsl file path.transaction
- the transaction for persistence access.PortalException
ManagerException
void clearXslCache(ITransaction transaction) throws PortalException
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
boolean isXslCached(String fileName)
fileName
- the xsl file path.true
if any variant of the xsl is being cached,
or false
otherwise.Transformer createTransformer(String xslStringDocument, String resourcePath) throws PortalException
xslStringDocument
- the XSL document as a string.resourcePath
- the relative classpath resource path where the
document is considered to exist, for URI resolution purposes.PortalException
- if the transformer could not be created.Transformer createTransformer(String xslStringDocument, String resourcePath, List<? extends ITheme> themes) throws PortalException
xslStringDocument
- the XSL document as a string.resourcePath
- the relative classpath resource path where the
document is considered to exist, for URI resolution purposes.themes
- the applied themes.PortalException
- if the transformer could not be created.Lumisportal 7.1.1.140331 - Copyright � 2006�2014 Lumis EIP Tecnologia da Informa��o LTDA. All Rights Reserved.