Skip navigation links
oracle.stellent.wcm.server.content.spi.fs
Class FSServiceAdapter
java.lang.Object
oracle.stellent.wcm.server.content.spi.idc.IdcServiceAdapter
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FSServiceAdapter
public FSServiceAdapter(IdcClientFactory idcClientFactory,
StagingConfiguration stagingConfig,
FileSystemLoader fsLoader,
CacheDeleteQueue cacheDeleteQueue)
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
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.