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.spi.fs
Class FSServiceAdapter

java.lang.Object
  extended by oracle.stellent.wcm.server.content.spi.idc.IdcServiceAdapter
      extended by oracle.stellent.wcm.server.content.spi.fs.FSServiceAdapter

All Implemented Interfaces:
ServiceAdapter

public class FSServiceAdapter
extends IdcServiceAdapter

Handle service calls by reading information from the URL APIs


Nested Class Summary
static class FSServiceAdapter.CacheInfo
          Cache information for a service request

 

Field Summary
static java.lang.String CACHE_ENABLED
           
static java.lang.String CACHE_FIELDS
           
static java.lang.String CACHE_KEY
           
static java.lang.String CACHE_TTL
           
static java.lang.String SERVICE_CACHE_DIR
           

 

Constructor Summary
FSServiceAdapter(IdcClientFactory idcClientFactory, StagingConfiguration stagingConfig, FileSystemLoader fsLoader, CacheDeleteQueue cacheDeleteQueue)
           

 

Method Summary
protected  java.lang.String calculatePath(oracle.stellent.ridc.model.DataBinder dataBinder, oracle.stellent.ridc.IdcContext context, java.lang.String[] cacheKeys)
          Calculate the path to store the service call
protected  java.lang.String[] calculateUserAndCacheKey(oracle.stellent.ridc.model.DataBinder dataBinder, oracle.stellent.ridc.IdcContext context, FSServiceAdapter.CacheInfo cacheInfo)
          Calculate the user and cache key to use for this databinder
protected  boolean checkTTL(oracle.stellent.ridc.model.DataBinder dataBinder, oracle.stellent.ridc.IdcContext idcContext, ContentStream contentStream, FSServiceAdapter.CacheInfo cacheInfo)
          Check the Time to Live for the give cached stream
 oracle.stellent.ridc.protocol.ServiceResponse executeService(oracle.stellent.ridc.IdcContext context, oracle.stellent.ridc.model.DataBinder dataBinder)
          Execute a service call; not all may be supported by the underlying service provider.
 FileSystemLoader getFsLoader()
           
 StagingConfiguration getStagingConfig()
           

 

Methods inherited from class oracle.stellent.wcm.server.content.spi.idc.IdcServiceAdapter
createBinder, getDataFactory, getIdcClient, getIdcFactory, getServiceApi

 

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

 

Field Detail

CACHE_KEY

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

CACHE_FIELDS

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

CACHE_ENABLED

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

CACHE_TTL

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

SERVICE_CACHE_DIR

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

Constructor Detail

FSServiceAdapter

public FSServiceAdapter(IdcClientFactory idcClientFactory,
                        StagingConfiguration stagingConfig,
                        FileSystemLoader fsLoader,
                        CacheDeleteQueue cacheDeleteQueue)

Method Detail

getStagingConfig

public StagingConfiguration getStagingConfig()

getFsLoader

public FileSystemLoader getFsLoader()

executeService

public oracle.stellent.ridc.protocol.ServiceResponse executeService(oracle.stellent.ridc.IdcContext context,
                                                                    oracle.stellent.ridc.model.DataBinder dataBinder)
                                                             throws oracle.stellent.ridc.IdcClientException
Execute a service call; not all may be supported by the underlying service provider.
Specified by:
executeService in interface ServiceAdapter
Overrides:
executeService in class IdcServiceAdapter
Parameters:
context - the client context
dataBinder - the databinder to execute
Returns:
the result of the service call
Throws:
oracle.stellent.ridc.IdcClientException

checkTTL

protected boolean checkTTL(oracle.stellent.ridc.model.DataBinder dataBinder,
                           oracle.stellent.ridc.IdcContext idcContext,
                           ContentStream contentStream,
                           FSServiceAdapter.CacheInfo cacheInfo)
Check the Time to Live for the give cached stream
Parameters:
dataBinder - the data binder
idcContext - the user context
contentStream - the stream found in the cache
cacheInfo - the cache info
Returns:
true if the stream is valid

calculateUserAndCacheKey

protected java.lang.String[] calculateUserAndCacheKey(oracle.stellent.ridc.model.DataBinder dataBinder,
                                                      oracle.stellent.ridc.IdcContext context,
                                                      FSServiceAdapter.CacheInfo cacheInfo)
Calculate the user and cache key to use for this databinder
Parameters:
dataBinder - the data binder
context - the user context
cacheInfo - the cache info
Returns:
a two-item array with user and cache key

calculatePath

protected java.lang.String calculatePath(oracle.stellent.ridc.model.DataBinder dataBinder,
                                         oracle.stellent.ridc.IdcContext context,
                                         java.lang.String[] cacheKeys)
Calculate the path to store the service call
Parameters:
dataBinder - the data binder
context - the user context
cacheKeys - the cache keys
Returns:
a path for the results

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.