Interface ICacheManager

  • All Known Implementing Classes:
    CacheManager

    public interface ICacheManager
    Provides operations on the portal cache framework.
    Since:
    4.0.11
    Version:
    $Revision$ $Date$
    • Method Detail

      • getCacheCapacity

        int getCacheCapacity​(java.lang.String cacheId)
        Returns the capacity to be used for the specified cache.
        Parameters:
        cacheId - the cache's identifier.
        Returns:
        the capacity.
        Since:
        4.0.11
      • addCacheConfig

        void addCacheConfig​(SessionConfig sessionConfig,
                            ICacheConfig cacheConfig,
                            ITransaction transaction)
                     throws PortalException
        Adds a cacheConfig to persistence.
        Parameters:
        sessionConfig - the user session information.
        cacheConfig - the transient cacheConfig instance to be persisted.
        transaction - the transaction for persistence access.
        Throws:
        PortalException
        Since:
        4.0.11
      • getCacheConfig

        ICacheConfig getCacheConfig​(SessionConfig sessionConfig,
                                    java.lang.String cacheConfigId,
                                    ITransaction transaction)
                             throws PortalException
        Returns a persistent cacheConfig instance.
        Parameters:
        sessionConfig - the user session information.
        cacheConfigId - the cacheConfig's identifier.
        transaction - the transaction for persistence access.
        Returns:
        a persistent cacheConfig instance.
        Throws:
        PortalObjectNotFoundException - if no cacheConfig with such id was found.
        PortalException
        Since:
        4.0.11
      • deleteCacheConfig

        void deleteCacheConfig​(SessionConfig sessionConfig,
                               ICacheConfig cacheConfig,
                               ITransaction transaction)
                        throws PortalException
        Deletes a cacheConfig from persistence.
        Parameters:
        sessionConfig - the user session information.
        cacheConfig - the persistent cacheConfig instance to be deleted.
        transaction - the transaction for persistence access.
        Throws:
        PortalException
        Since:
        4.0.11