|
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.ucm.UcmRepository
public class UcmRepository
Represents a specific instance of a WCC (WebCenter Content) data store.
Field Summary | |
---|---|
protected static java.lang.String |
ACCOUNT_FIELD_NAME
|
protected static java.lang.String |
|
protected static java.lang.String |
COMMENTS_FIELD_NAME
|
protected static java.lang.String |
CONTENT_ID_FIELD_NAME
|
protected static java.lang.String |
DOC_CREATED_DATE_FIELD_NAME
|
protected static java.lang.String |
DOC_LAST_MODIFIED_DATE
|
static java.lang.String |
ESS_REQUEST_ID_COMMENTS_PREFIX
|
protected static java.lang.String |
ORIGINAL_FILE_FIELD_NAME
|
protected static java.lang.String |
SECURITY_GROUP_FIELD_NAME
|
protected static java.lang.String |
STATUS_FIELD_NAME
|
protected static java.lang.String |
TITLE_FIELD_NAME
|
Constructor Summary | |
---|---|
UcmRepository(UcmConnection connection)
Create a new UCM Content Repository using the connection passed in. |
Method Summary | |
---|---|
static java.lang.String |
asFaAccount(java.lang.String ucmAccount)
This utility method can be utilized to transform a UCM account input string into a format that looks like a directory. |
static java.lang.String |
asUcmAccount(java.lang.String faAccount)
This utility method can be utilized to transform a FA account input string in to a format less likely to result in namespace collisions. |
DocumentMetaData |
checkin(DocumentMetaData inMetaData,
java.io.InputStream input)
|
void |
closeConnection()
Closes the connection being used for this repository. |
oracle.stellent.ridc.model.TransferFile |
createTransferFile(java.io.InputStream is,
java.lang.String contentType,
java.lang.String fileName,
java.lang.Long contentLength)
|
void |
delete(DocumentKey key)
|
boolean |
equals(java.lang.Object object)
|
java.util.List<UcmAccount> |
getAccounts()
|
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 |
Field Detail |
---|
public static final java.lang.String ESS_REQUEST_ID_COMMENTS_PREFIX
protected static final java.lang.String CONTENT_ID_FIELD_NAME
protected static final java.lang.String TITLE_FIELD_NAME
protected static final java.lang.String ACCOUNT_FIELD_NAME
protected static final java.lang.String ORIGINAL_FILE_FIELD_NAME
protected static final java.lang.String COMMENTS_FIELD_NAME
protected static final java.lang.String DOC_CREATED_DATE_FIELD_NAME
protected static final java.lang.String DOC_LAST_MODIFIED_DATE
protected static final java.lang.String SECURITY_GROUP_FIELD_NAME
protected static final java.lang.String STATUS_FIELD_NAME
Constructor Detail |
---|
public UcmRepository(UcmConnection 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 UCM Content Repository to ensure thread safety and best performance:
UcmRepository cr = null;
try {
IdcContext context = new IdcContext("username", "password");
IdcClientManager manager = new IdcClientManager();
IdcClient client = null;
try {
client = manager.createClient("client url");
} catch (IdcClientException e) {
// do something
}
UcmConnection conn = new UcmConnection(client, context);
cr = new UcmRepository(conn);
cr.doSomething();
} finally {
if (cr != null) {
cr.closeConnection();
}
}
closeConnection
in interface ContentRepository
to construct ContentRepository
classes in a more generic manner.
,
where this pattern has already been implemented
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 oracle.stellent.ridc.model.TransferFile createTransferFile(java.io.InputStream is, java.lang.String contentType, java.lang.String fileName, java.lang.Long contentLength)
public DocumentMetaData checkin(DocumentMetaData inMetaData, 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
public java.util.List<UcmAccount> getAccounts()
public static java.lang.String asUcmAccount(java.lang.String faAccount)
This utility method can be utilized to transform a FA account input string in to a format less likely to result in namespace collisions.
Each token forming part of the account string is terminated with a dollar sign.
For example,
faAccount
- FA account
public static java.lang.String asFaAccount(java.lang.String ucmAccount)
This utility method can be utilized to transform a UCM account input string into a format that looks like a directory.
Each token forming part of the account string is terminated with a dollar sign.
For example,
ucmAccount
- UCM account
|
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 |