|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.xslcache.XslCacheManager
public class XslCacheManager
Manages the cache for XSLs.
Constructor Summary | |
---|---|
XslCacheManager()
|
Method Summary | |
---|---|
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. |
protected Templates |
createTemplates(String fileName)
Create a new templates for a xsl file. |
Transformer |
createTransformer(String fileName)
Get a Transformer. |
Transformer |
createTransformer(String xslStringDocument,
String URIResolverPath)
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. |
protected Transformer |
getLumisTransformer()
|
Transformer |
getTransformer(SessionConfig sessionConfig,
String fileName,
ITransaction transaction)
Get a Transformer. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XslCacheManager()
Method Detail |
---|
protected Transformer getLumisTransformer() throws PortalException
PortalException
public void setDefaultCache(boolean enable)
IXslCacheManager
setDefaultCache
in interface IXslCacheManager
public boolean getDefaultCache()
IXslCacheManager
getDefaultCache
in interface IXslCacheManager
public void add(SessionConfig sessionConfig, XslCacheConfig xslCacheConfig, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
add
in interface IXslCacheManager
PortalException
ManagerException
public void delete(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
delete
in interface IXslCacheManager
PortalException
ManagerException
public void update(SessionConfig sessionConfig, XslCacheConfig xslCacheConfig, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
update
in interface IXslCacheManager
PortalException
ManagerException
public XslCacheConfig get(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
get
in interface IXslCacheManager
PortalException
ManagerException
public void clearXslConfigCache(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
clearXslConfigCache
in interface IXslCacheManager
PortalException
ManagerException
public void clearXslConfigCache(SessionConfig sessionConfig, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
clearXslConfigCache
in interface IXslCacheManager
PortalException
ManagerException
public Transformer getTransformer(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
getTransformer
in interface IXslCacheManager
PortalException
ManagerException
public Transformer createTransformer(String fileName) throws PortalException
IXslCacheManager
createTransformer
in interface IXslCacheManager
PortalException
ManagerException
public Transformer createTransformer(String xslStringDocument, String URIResolverPath) throws PortalException
IXslCacheManager
createTransformer
in interface IXslCacheManager
PortalException
protected Templates createTemplates(String fileName) throws PortalException
fileName
- the xsl file full path.
PortalException
public void clearXslCache(SessionConfig sessionConfig, String fileName, ITransaction transaction) throws PortalException, ManagerException
IXslCacheManager
clearXslCache
in interface IXslCacheManager
sessionConfig
- the user session information.fileName
- the xsl file path.transaction
- the transaction for persistence access.
PortalException
ManagerException
public void clearXslCache(ITransaction transaction) throws PortalException
IXslCacheManager
clearXslCache
in interface IXslCacheManager
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 isXslCached(String fileName)
IXslCacheManager
isXslCached
in interface IXslCacheManager
fileName
- the xsl file path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |