|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 7 (11.1.7) E22562-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
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.
to construct ContentRepository
classes in a more generic manner.
,
where this pattern has already been implemented
ContentRepositoryConnection getContentRepositoryConnection()
DocumentMetaData checkin(DocumentMetaData document, java.io.InputStream input)
void delete(DocumentKey key)
java.util.List<DocumentMetaData> retrieve(DocumentCriteria criteria)
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 7 (11.1.7) E22562-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |