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

E22562-07

oracle.apps.fnd.applcore.importExport.model.content.webcenter
Class WebCenterRepository

java.lang.Object
  extended by oracle.apps.fnd.applcore.importExport.model.content.webcenter.WebCenterRepository
All Implemented Interfaces:
ContentRepository

public class WebCenterRepository
extends java.lang.Object
implements ContentRepository

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

WebCenterRepository

public WebCenterRepository()
Create a new Web Center Content Repository using the Web Center's primary connection.


WebCenterRepository

public WebCenterRepository(WebCenterConnection connection)
Create a new Web Center Content Repository using the connection passed in. If the connection passed in is empty then it attempts to create a repository based on Web Center's primary connection.

Parameters:
connection - used to construct repository.
Method Detail

closeConnection

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(); }

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

getContentRepository

public ContentRepository getContentRepository()

getContentRepositoryConnection

public ContentRepositoryConnection getContentRepositoryConnection()

Specified by:
getContentRepositoryConnection in interface ContentRepository
Returns:
the connection for this repository.

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

checkin

public DocumentMetaData checkin(DocumentMetaData document,
                                java.io.InputStream input)
Specified by:
checkin in interface ContentRepository

delete

public void delete(DocumentKey key)
Specified by:
delete in interface ContentRepository

retrieve

public java.util.List<DocumentMetaData> retrieve(DocumentCriteria criteria)
Specified by:
retrieve in interface ContentRepository

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.