Skip navigation links

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

E17273-03


oracle.stellent.wcm.server.cache
Interface CacheContainer

All Known Implementing Classes:
ThreadLocalCacheContainer, ThreadSafeCacheContainer

public interface CacheContainer

Represents the cache of content items


Nested Class Summary
static class CacheContainer.Key<T>
          Holds a key name and type

 

Field Summary
static CacheContainer.Key<java.util.Map<java.lang.String,oracle.stellent.ridc.model.DataObject>> KEY_ASSET_TYPES
           
static CacheContainer.Key<java.util.Map<java.lang.String,oracle.stellent.ridc.model.DataObject>> KEY_CONTENT_INFO
           
static CacheContainer.Key<ConversionsDefinition> KEY_CONVERSION_DEFINITION
           
static CacheContainer.Key<ElementDefinition> KEY_ELEMENT_DEFINITION
           
static CacheContainer.Key<DataFile> KEY_MANAGED_DATAFILE
           
static CacheContainer.Key<PlaceholderDefinition> KEY_PLACEHOLDER_DEFINITION
           
static CacheContainer.Key<RegionDefinition> KEY_REGION_DEFINITION
           
static CacheContainer.Key<java.lang.Long> KEY_TIMESTAMP
           
static CacheContainer.Key<LazyLoadingContent> KEY_WEB_CONTENT
           

 

Method Summary
 void clear()
          Clear all items from cache
 void clearContentObjects(ContentID contentID)
          Clear all objects under a given content ID
 boolean containsKey(ContentID contentID, java.lang.String name)
          Determine if the cache contains the given key
<T> T
getContentObject(ContentID contentID, CacheContainer.Key<T> key)
          Retrieve an item from the cache that is of the type specified by the key
 java.lang.Object getContentObject(ContentID contentID, java.lang.String name)
          Retrieve an item from the cache
<T> void
setContentObject(ContentID contentID, CacheContainer.Key<T> key, T object)
          Associate the object with the given content ID and key name
 void setContentObject(ContentID contentID, java.lang.String name, java.lang.Object object)
          Associate the object with the given content ID and key
 void updateContentObjectsWithRS(oracle.stellent.ridc.model.DataResultSet resultSet)
          Update existing content objects or create new content objects in the cache for each row in the result set.

 

Field Detail

KEY_TIMESTAMP

static final CacheContainer.Key<java.lang.Long> KEY_TIMESTAMP

KEY_WEB_CONTENT

static final CacheContainer.Key<LazyLoadingContent> KEY_WEB_CONTENT

KEY_PLACEHOLDER_DEFINITION

static final CacheContainer.Key<PlaceholderDefinition> KEY_PLACEHOLDER_DEFINITION

KEY_MANAGED_DATAFILE

static final CacheContainer.Key<DataFile> KEY_MANAGED_DATAFILE

KEY_CONVERSION_DEFINITION

static final CacheContainer.Key<ConversionsDefinition> KEY_CONVERSION_DEFINITION

KEY_REGION_DEFINITION

static final CacheContainer.Key<RegionDefinition> KEY_REGION_DEFINITION

KEY_ELEMENT_DEFINITION

static final CacheContainer.Key<ElementDefinition> KEY_ELEMENT_DEFINITION

KEY_CONTENT_INFO

static final CacheContainer.Key<java.util.Map<java.lang.String,oracle.stellent.ridc.model.DataObject>> KEY_CONTENT_INFO

KEY_ASSET_TYPES

static final CacheContainer.Key<java.util.Map<java.lang.String,oracle.stellent.ridc.model.DataObject>> KEY_ASSET_TYPES

Method Detail

getContentObject

<T> T getContentObject(ContentID contentID,
                       CacheContainer.Key<T> key)
Retrieve an item from the cache that is of the type specified by the key
Parameters:
contentID - the content ID
key - the item key
Returns:
the item or null

getContentObject

java.lang.Object getContentObject(ContentID contentID,
                                  java.lang.String name)
Retrieve an item from the cache
Parameters:
contentID - the content ID of the item
name - the item key
Returns:
the item or null

setContentObject

<T> void setContentObject(ContentID contentID,
                          CacheContainer.Key<T> key,
                          T object)
Associate the object with the given content ID and key name
Parameters:
contentID - the content ID
key - the item key
object - the object

setContentObject

void setContentObject(ContentID contentID,
                      java.lang.String name,
                      java.lang.Object object)
Associate the object with the given content ID and key
Parameters:
contentID - the content ID
name - the item name
object - the object

clearContentObjects

void clearContentObjects(ContentID contentID)
Clear all objects under a given content ID
Parameters:
contentID - the content ID

containsKey

boolean containsKey(ContentID contentID,
                    java.lang.String name)
Determine if the cache contains the given key
Parameters:
contentID - the content ID
name - the key name
Returns:
true if this is in the cache, false otherwise

updateContentObjectsWithRS

void updateContentObjectsWithRS(oracle.stellent.ridc.model.DataResultSet resultSet)
Update existing content objects or create new content objects in the cache for each row in the result set. It is assumed the row will contain a "dDocName" parameter.
Parameters:
resultSet - the result set, each row containing at least a "dDocName" value

clear

void clear()
Clear all items from cache

Skip navigation links

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

E17273-03


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