|
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 |
java.lang.Object oracle.apps.fnd.applcore.importExport.model.content.webcenter.WebCenterRepository
public class WebCenterRepository
Represents a specific instance of a Web Center data store.
Constructor Summary | |
---|---|
WebCenterRepository()
Create a new Web Center Content Repository using the Web Center's primary connection. |
|
WebCenterRepository(WebCenterConnection connection)
Create a new Web Center Content Repository using the connection passed in. |
Method Summary | |
---|---|
DocumentMetaData |
checkin(DocumentMetaData document,
java.io.InputStream input)
|
void |
closeConnection()
Closes the connection being used for this repository. |
void |
delete(DocumentKey key)
|
boolean |
equals(java.lang.Object object)
|
ContentRepository |
getContentRepository()
|
ContentRepositoryConnection |
getContentRepositoryConnection()
|
int |
hashCode()
|
java.util.List<DocumentMetaData> |
retrieve(DocumentCriteria criteria)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebCenterRepository()
public WebCenterRepository(WebCenterConnection connection)
connection
- used to construct repository.Method Detail |
---|
public 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.
Use the following pattern when interacting with the Web Center Content Repository to ensure thread safety and best performance:
WebCenterRepository cr = null;
try {
WebCenterConnection conn = new WebCenterConnection();
cr = new WebCenterRepository(conn);
cr.doSomething();
} finally {
cr.closeConnection();
}
closeConnection
in interface ContentRepository
to construct ContentRepository
classes in a more generic manner.
,
where this pattern has already been implemented
public ContentRepository getContentRepository()
public ContentRepositoryConnection getContentRepositoryConnection()
getContentRepositoryConnection
in interface ContentRepository
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DocumentMetaData checkin(DocumentMetaData document, java.io.InputStream input)
checkin
in interface ContentRepository
public void delete(DocumentKey key)
delete
in interface ContentRepository
public java.util.List<DocumentMetaData> retrieve(DocumentCriteria criteria)
retrieve
in interface ContentRepository
|
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 |