Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.importExport.model.content
Interface ContentRepository

All Known Implementing Classes:
UcmRepository, WebCenterRepository

public interface ContentRepository

Represents a data store for unstructured data. eg. images, word processing documents, spreadsheets, etc.


Method Summary
 DocumentMetaData checkin(DocumentMetaData document, java.io.InputStream input)
           
 void closeConnection()
          Closes the connection being used for this repository.
 void delete(DocumentKey key)
           
 ContentRepositoryConnection getContentRepositoryConnection()
           
 java.util.List<DocumentMetaData> retrieve(DocumentCriteria criteria)
           
 

Method Detail

closeConnection

void closeConnection()

Closes the connection being used for this repository.

Use the following pattern when interacting with the Content Repository to ensure thread safety and best performance:

ContentRepository cr = null; try { [concrete connection class] conn = new [concrete connection class](...); cr = new (ContentRepository)[concrete class](conn); cr.doSomething(); } finally { if (cr != null){ cr.closeConnection(); } }

See the implementation classes for more specific examples.

See Also:
to construct ContentRepository classes in a more generic manner., where this pattern has already been implemented

getContentRepositoryConnection

ContentRepositoryConnection getContentRepositoryConnection()
Returns:
the connection for this repository.

checkin

DocumentMetaData checkin(DocumentMetaData document,
                         java.io.InputStream input)

delete

void delete(DocumentKey key)

retrieve

java.util.List<DocumentMetaData> retrieve(DocumentCriteria criteria)

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.