Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.server.content
Class CacheManager

java.lang.Object
  extended by oracle.stellent.wcm.server.content.CacheManager


public class CacheManager
extends java.lang.Object

Manages the cache instances


Field Summary
static java.lang.String CONTENT_CACHE
           

 

Constructor Summary
CacheManager(CacheConfiguration cacheConfig, RequestProcessor requestProcessor, EventProcessor eventProcessor, Provider provider)
          Listens on the given request processor to associate caches, and synchronizes content using the ContentAdapter

 

Method Summary
 CacheSyncManager getCacheListener()
           
 ContentCache getContentCache(SiteRequest siteRequest)
          Retrieve the Content Cache associated with the given site request
 Provider getProvider()
           
 ContentCache getSharedCache()
           
protected  void initializeCache(CacheConfiguration cacheConfig)
          Initialize the content cache
 void initializeCacheForRequest(SiteRequest siteRequest)
          Initialize the cache for this request.
 boolean isCacheEnabled(SiteRequest siteRequest)
          Determine if the cache is enabled for this request.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

CONTENT_CACHE

public static final java.lang.String CONTENT_CACHE
See Also:
Constant Field Values

Constructor Detail

CacheManager

public CacheManager(CacheConfiguration cacheConfig,
                    RequestProcessor requestProcessor,
                    EventProcessor eventProcessor,
                    Provider provider)
Listens on the given request processor to associate caches, and synchronizes content using the ContentAdapter
Parameters:
cacheConfig - the cache configuration
requestProcessor - the request processor
eventProcessor - the event processor
provider - the SPI provider

Method Detail

getSharedCache

public ContentCache getSharedCache()
Returns:
the global shared cache

getCacheListener

public CacheSyncManager getCacheListener()
Returns:
the cache listener

getProvider

public Provider getProvider()
Returns:
the provider

initializeCacheForRequest

public void initializeCacheForRequest(SiteRequest siteRequest)
Initialize the cache for this request. Sets the cache as a transient property on the object.
Parameters:
siteRequest - the site request

getContentCache

public ContentCache getContentCache(SiteRequest siteRequest)
Retrieve the Content Cache associated with the given site request
Parameters:
siteRequest - the current request
Returns:
the cache

isCacheEnabled

public boolean isCacheEnabled(SiteRequest siteRequest)
Determine if the cache is enabled for this request. This validates the cache has been created and the current request is not in contribution mode.
Parameters:
siteRequest - the site request
Returns:
true if the cache is enabled

initializeCache

protected void initializeCache(CacheConfiguration cacheConfig)
Initialize the content cache

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.