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 FSContentAdapter

java.lang.Object
  extended by oracle.stellent.wcm.server.content.spi.fs.FSContentAdapter

All Implemented Interfaces:
ContentAdapter
Direct Known Subclasses:
FSLocalModifiedContentAdapter

public class FSContentAdapter
extends java.lang.Object
implements ContentAdapter

Loads Content and Metadata using the URL APIs from the staging directory.


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.stellent.wcm.server.content.spi.ContentAdapter
ContentAdapter.DataFileParams, ContentAdapter.RenditionParams

 

Constructor Summary
FSContentAdapter(StagingConfiguration stagingConfig, FileSystemLoader fsLoader, IdcClientFactory idcFactory, CacheDeleteQueue cacheDeleteQueue)
           

 

Method Summary
 void flushAllContent()
          Flush all stored content.
 void flushContent(ContentID contentID)
          Flush any local cache or content related to the given content ID.
 void flushResourceContent(java.util.Set<java.lang.String> modifiedResources)
          Flush static resource content.
 ContentURI getContentUri(ContentID contentID, oracle.stellent.ridc.model.DataBinder metaBinder)
          Retrieve the URI for this content object, based on the given metadata.
 ContentURI getDataFileUri(ContentID contentID, oracle.stellent.ridc.model.DataBinder metaBinder, ContentAdapter.DataFileParams params)
          Retrieve the ContentURI for this data file content object, based on the given metadata and params.
 ContentURI getRenditionUri(ContentID contentID, oracle.stellent.ridc.model.DataBinder metaBinder, ContentAdapter.RenditionParams params)
          Retrieve the ContentURI for a given rendition.
 ContentStream loadContent(ContentURI contentURI)
          Load content from the provider via the URI obtained from the call to getContentUri(oracle.stellent.wcm.server.content.spi.ContentID, oracle.stellent.ridc.model.DataBinder).
 oracle.stellent.ridc.model.DataBinder loadMetadata(ContentID contentID)
          Load metadata from the provider for the given content ID.
 ContentURI parseWebPath(java.lang.String webPath)
          Create a ContentURI from a web path.

 

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

 

Constructor Detail

FSContentAdapter

public FSContentAdapter(StagingConfiguration stagingConfig,
                        FileSystemLoader fsLoader,
                        IdcClientFactory idcFactory,
                        CacheDeleteQueue cacheDeleteQueue)

Method Detail

loadMetadata

public oracle.stellent.ridc.model.DataBinder loadMetadata(ContentID contentID)
                                                   throws oracle.stellent.ridc.IdcClientException,
                                                          java.io.IOException
Load metadata from the provider for the given content ID.
Specified by:
loadMetadata in interface ContentAdapter
Parameters:
contentID - the content ID
Returns:
the metadata for the content item
Throws:
oracle.stellent.ridc.IdcClientException
java.io.IOException

loadContent

public ContentStream loadContent(ContentURI contentURI)
                          throws oracle.stellent.ridc.IdcClientException,
                                 java.io.IOException
Load content from the provider via the URI obtained from the call to getContentUri(oracle.stellent.wcm.server.content.spi.ContentID, oracle.stellent.ridc.model.DataBinder).
Specified by:
loadContent in interface ContentAdapter
Parameters:
contentURI - the content URI
Returns:
the content stream
Throws:
oracle.stellent.ridc.IdcClientException
java.io.IOException

parseWebPath

public ContentURI parseWebPath(java.lang.String webPath)
                        throws oracle.stellent.ridc.IdcClientException,
                               java.io.IOException
Create a ContentURI from a web path. A web path could be one of followings:

1, Unmanaged content;

2, Managed regular content;

3, Dynamic conversion eligible content;

4, Rendition content.

Specified by:
parseWebPath in interface ContentAdapter
Parameters:
webPath - a web path
Returns:
a ContentURI
Throws:
oracle.stellent.ridc.IdcClientException - if an error occurs while talking to Content Server
java.io.IOException - if an IO error occurs

getContentUri

public ContentURI getContentUri(ContentID contentID,
                                oracle.stellent.ridc.model.DataBinder metaBinder)
                         throws oracle.stellent.ridc.IdcClientException
Retrieve the URI for this content object, based on the given metadata.
Specified by:
getContentUri in interface ContentAdapter
Parameters:
contentID - the content ID used to retrieve the metadata
metaBinder - the metadata retrieved for this object
Returns:
the ContentURI for this content
Throws:
oracle.stellent.ridc.IdcClientException

getDataFileUri

public ContentURI getDataFileUri(ContentID contentID,
                                 oracle.stellent.ridc.model.DataBinder metaBinder,
                                 ContentAdapter.DataFileParams params)
                          throws oracle.stellent.ridc.IdcClientException
Retrieve the ContentURI for this data file content object, based on the given metadata and params.
Specified by:
getDataFileUri in interface ContentAdapter
Parameters:
contentID - the content ID used to retrieve the metadata
metaBinder - the metadata retrieved for this object
params - arguments for data file retrieval
Returns:
the ContentURI for this content
Throws:
oracle.stellent.ridc.IdcClientException

getRenditionUri

public ContentURI getRenditionUri(ContentID contentID,
                                  oracle.stellent.ridc.model.DataBinder metaBinder,
                                  ContentAdapter.RenditionParams params)
                           throws oracle.stellent.ridc.IdcClientException
Retrieve the ContentURI for a given rendition.
Specified by:
getRenditionUri in interface ContentAdapter
Parameters:
contentID - the content ID
metaBinder - the metadata retrieved for this object
params - arguments for the rendition
Returns:
the ContentURI for this content rendition
Throws:
oracle.stellent.ridc.IdcClientException

flushAllContent

public void flushAllContent()
                     throws java.io.IOException
Flush all stored content. Invoked by the poller thread.
Specified by:
flushAllContent in interface ContentAdapter
Throws:
java.io.IOException

flushResourceContent

public void flushResourceContent(java.util.Set<java.lang.String> modifiedResources)
                          throws java.io.IOException
Flush static resource content. Invoked by the poller thread.
Specified by:
flushResourceContent in interface ContentAdapter
Parameters:
modifiedResources - a set of resources that have been modified and therefor need to be flushed.
Throws:
java.io.IOException

flushContent

public void flushContent(ContentID contentID)
                  throws java.io.IOException
Flush any local cache or content related to the given content ID. Invoked by the poller thread.
Specified by:
flushContent in interface ContentAdapter
Parameters:
contentID - the content ID
Throws:
java.io.IOException

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.