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
Class LazyLoadingContent

java.lang.Object
  extended by oracle.stellent.wcm.server.cache.LazyLoadingContent


public class LazyLoadingContent
extends java.lang.Object

Represents a content item retrieved from the SPI provider.


Constructor Summary
LazyLoadingContent(Provider provider, ContentID contentID, java.lang.String user)
           

 

Method Summary
protected  java.lang.String getBinderValue(java.lang.String name)
          Retrieve the binder value, by looking in the local data and the DOC_INFO result set
 ContentID getContentID()
           
 ContentURI getContentURI()
           
 ContentURI getDataFileUri(ContentAdapter.DataFileParams params)
          Retrieve the data file ContentURI
 oracle.stellent.ridc.model.DataBinder getMetaBinder()
           
 java.lang.String getMetadataValue(java.lang.String name)
          Retrieve a piece of metadata for this file
 java.lang.String getName()
           
 ContentURI getRenditionUri(java.lang.String rendition)
          Get the Rendition's path
 java.io.InputStream getStream()
           
 Type getType()
           
 boolean isAvailable()
           
 boolean isLoadedMetadata()
           
protected  void loadBinder()
          Load the binder and set populate internal fields
 void setContentUri(ContentURI uri)
          Set the ContentURI, which is used to address and retrieved content for this object
protected  void setDocInfoValue(java.lang.String name, java.lang.String value)
          Set the binder value, usually in localdata
 void setMetadataValue(java.lang.String name, java.lang.String value)
          Set the metadata value
 void setType(Type type)
          Set the type; useful for optimizing if type is known ahead of time

 

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

 

Constructor Detail

LazyLoadingContent

public LazyLoadingContent(Provider provider,
                          ContentID contentID,
                          java.lang.String user)
                   throws java.io.IOException,
                          oracle.stellent.ridc.IdcClientException
Throws:
java.io.IOException
oracle.stellent.ridc.IdcClientException

Method Detail

getMetaBinder

public oracle.stellent.ridc.model.DataBinder getMetaBinder()

getContentID

public ContentID getContentID()
Returns:
the content ID

getName

public java.lang.String getName()
Returns:
the name associated with this file

isLoadedMetadata

public boolean isLoadedMetadata()
Returns:
true if the metadata has been loaded

getType

public Type getType()
Returns:
the type of this object or null if it cannot be determined

setType

public void setType(Type type)
Set the type; useful for optimizing if type is known ahead of time
Parameters:
type - the type

getMetadataValue

public java.lang.String getMetadataValue(java.lang.String name)
Retrieve a piece of metadata for this file
Parameters:
name - the metadata name
Returns:
the metadata value or null if not found

setMetadataValue

public void setMetadataValue(java.lang.String name,
                             java.lang.String value)
Set the metadata value
Parameters:
name - the name
value - the value

getContentURI

public ContentURI getContentURI()
                         throws oracle.stellent.ridc.IdcClientException
Returns:
a url to this file based on the value of the retrieval mode
Throws:
oracle.stellent.ridc.IdcClientException

setContentUri

public void setContentUri(ContentURI uri)
Set the ContentURI, which is used to address and retrieved content for this object
Parameters:
uri - the provider ContentURI

getRenditionUri

public ContentURI getRenditionUri(java.lang.String rendition)
                           throws oracle.stellent.ridc.IdcClientException
Get the Rendition's path
Parameters:
rendition - name of rendition ie 'Thumbnail'
Returns:
a ContentURI to this file, or null if rendition name not found
Throws:
oracle.stellent.ridc.IdcClientException

getDataFileUri

public ContentURI getDataFileUri(ContentAdapter.DataFileParams params)
                          throws oracle.stellent.ridc.IdcClientException
Retrieve the data file ContentURI
Parameters:
params - the data file parameters
Returns:
the URI to the data file content
Throws:
oracle.stellent.ridc.IdcClientException

isAvailable

public boolean isAvailable()
Returns:
determines if the file should exist because we have metadata for it

getStream

public java.io.InputStream getStream()
                              throws oracle.stellent.ridc.IdcClientException,
                                     java.io.IOException
Returns:
a stream of this content
Throws:
oracle.stellent.ridc.IdcClientException
java.io.IOException

getBinderValue

protected java.lang.String getBinderValue(java.lang.String name)
Retrieve the binder value, by looking in the local data and the DOC_INFO result set
Parameters:
name - the metadata name
Returns:
the value

setDocInfoValue

protected void setDocInfoValue(java.lang.String name,
                               java.lang.String value)
Set the binder value, usually in localdata
Parameters:
name - the metadata name
value - the metadata value

loadBinder

protected void loadBinder()
                   throws java.io.IOException,
                          oracle.stellent.ridc.IdcClientException
Load the binder and set populate internal fields
Throws:
java.io.IOException
oracle.stellent.ridc.IdcClientException

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.