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
Interface ContentCache

All Known Implementing Classes:
GlobalContentCache, LocalContentCache

public interface ContentCache

Represents the cache of content items


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

 

Field Summary
static ContentCache.Key<java.util.Map<java.lang.String,oracle.stellent.ridc.model.DataObject>> KEY_ASSET_TYPES
           
static ContentCache.Key<java.util.Map<java.lang.String,oracle.stellent.ridc.model.DataObject>> KEY_CONTENT_INFO
           
static ContentCache.Key<ConversionsDefinition> KEY_CONVERSION_DEFINITION
           
static ContentCache.Key<ElementDefinition> KEY_ELEMENT_DEFINITION
           
static ContentCache.Key<DataFile> KEY_MANAGED_DATAFILE
           
static ContentCache.Key<PlaceholderDefinition> KEY_PLACEHOLDER_DEFINITION
           
static ContentCache.Key<RegionDefinition> KEY_REGION_DEFINITION
           
static ContentCache.Key<java.lang.Long> KEY_TIMESTAMP
           
static ContentCache.Key<ProviderContent> 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, ContentCache.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, ContentCache.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 ContentCache.Key<java.lang.Long> KEY_TIMESTAMP

KEY_WEB_CONTENT

static final ContentCache.Key<ProviderContent> KEY_WEB_CONTENT

KEY_PLACEHOLDER_DEFINITION

static final ContentCache.Key<PlaceholderDefinition> KEY_PLACEHOLDER_DEFINITION

KEY_MANAGED_DATAFILE

static final ContentCache.Key<DataFile> KEY_MANAGED_DATAFILE

KEY_CONVERSION_DEFINITION

static final ContentCache.Key<ConversionsDefinition> KEY_CONVERSION_DEFINITION

KEY_REGION_DEFINITION

static final ContentCache.Key<RegionDefinition> KEY_REGION_DEFINITION

KEY_ELEMENT_DEFINITION

static final ContentCache.Key<ElementDefinition> KEY_ELEMENT_DEFINITION

KEY_CONTENT_INFO

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

KEY_ASSET_TYPES

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

Method Detail

getContentObject

<T> T getContentObject(ContentID contentID,
                       ContentCache.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,
                          ContentCache.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® 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.