lumis.portal.xslcache
Interface IXslCacheManager

Package class diagram package IXslCacheManager
All Known Implementing Classes:
XslCacheManager

public interface IXslCacheManager

Since:
4.0.0

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.
 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.
 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.
 

Method Detail

setDefaultCache

void setDefaultCache(boolean enable)
Set the default cache.

Parameters:
enable -

getDefaultCache

boolean getDefaultCache()
Get the default cache.

Returns:

add

void add(SessionConfig sessionConfig,
         XslCacheConfig xslCacheConfig,
         ITransaction transaction)
         throws PortalException,
                ManagerException
Add a cache of the XSL.

Parameters:
sessionConfig -
xslCacheConfig -
transaction -
Throws:
PortalException
ManagerException

delete

void delete(SessionConfig sessionConfig,
            String fileName,
            ITransaction transaction)
            throws PortalException,
                   ManagerException
Delete de cache of the XSL.

Parameters:
sessionConfig -
fileName -
transaction -
Throws:
PortalException
ManagerException

update

void update(SessionConfig sessionConfig,
            XslCacheConfig xslCacheConfig,
            ITransaction transaction)
            throws PortalException,
                   ManagerException
Update the cache of the XSL.

Parameters:
sessionConfig -
xslCacheConfig -
transaction -
Throws:
PortalException
ManagerException

get

XslCacheConfig get(SessionConfig sessionConfig,
                   String fileName,
                   ITransaction transaction)
                   throws PortalException,
                          ManagerException
Get the XslCacheConfig.

Parameters:
sessionConfig -
fileName -
transaction -
Returns:
a XslCacheConfig.
Throws:
PortalException
ManagerException

clearXslConfigCache

void clearXslConfigCache(SessionConfig sessionConfig,
                         String fileName,
                         ITransaction transaction)
                         throws PortalException,
                                ManagerException
Clear the XslConfigCache.

Parameters:
sessionConfig -
fileName -
transaction -
Throws:
PortalException
ManagerException

clearXslConfigCache

void clearXslConfigCache(SessionConfig sessionConfig,
                         ITransaction transaction)
                         throws PortalException,
                                ManagerException
Clear the XslConfigCache.

Parameters:
sessionConfig -
transaction -
Throws:
PortalException
ManagerException

getTransformer

Transformer getTransformer(SessionConfig sessionConfig,
                           String fileName,
                           ITransaction transaction)
                           throws PortalException,
                                  ManagerException
Get a Transformer.

Parameters:
sessionConfig -
fileName -
transaction -
Returns:
a Transformer.
Throws:
PortalException
ManagerException

createTransformer

Transformer createTransformer(String fileName)
                              throws PortalException
Get a Transformer.

Parameters:
sessionConfig -
fileName -
transaction -
Returns:
a Transformer.
Throws:
PortalException
ManagerException

clearXslCache

void clearXslCache(SessionConfig sessionConfig,
                   String fileName,
                   ITransaction transaction)
                   throws PortalException,
                          ManagerException
Clear the cache for the specified xsl file.

Parameters:
sessionConfig - the user session information.
fileName - the xsl file path.
transaction - the transaction for persistence access.
Throws:
PortalException
ManagerException

clearXslCache

void clearXslCache(ITransaction transaction)
                   throws PortalException
Clears all XSL cache.

Parameters:
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).
Throws:
PortalException
Since:
4.1.0

isXslCached

boolean isXslCached(String fileName)
Verify if the xsl file is cached.

Parameters:
fileName - the xsl file path.
Returns:
true if the xsl is being cached and false otherwise.

createTransformer

Transformer createTransformer(String xslStringDocument,
                              String URIResolverPath)
                              throws PortalException
Creates a transformer for a specified XSL document string. This method creates a Transformer for a XSL document that is not required to physically exist on the server. It takes as parameters the XSL document and a URI path on which the document is considered to exist.

Parameters:
xslStringDocument -
URIResolverPath -
Returns:
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.