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

E22562-07

oracle.apps.fnd.applcore.importExport.model.content.ucm
Class UcmRepository

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

public class UcmRepository
extends java.lang.Object
implements ContentRepository

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

ESS_REQUEST_ID_COMMENTS_PREFIX

public static final java.lang.String ESS_REQUEST_ID_COMMENTS_PREFIX
See Also:
Constant Field Values

CONTENT_ID_FIELD_NAME

protected static final java.lang.String CONTENT_ID_FIELD_NAME
See Also:
Constant Field Values

TITLE_FIELD_NAME

protected static final java.lang.String TITLE_FIELD_NAME
See Also:
Constant Field Values

ACCOUNT_FIELD_NAME

protected static final java.lang.String ACCOUNT_FIELD_NAME
See Also:
Constant Field Values

ORIGINAL_FILE_FIELD_NAME

protected static final java.lang.String ORIGINAL_FILE_FIELD_NAME
See Also:
Constant Field Values


COMMENTS_FIELD_NAME

protected static final java.lang.String COMMENTS_FIELD_NAME
See Also:
Constant Field Values

DOC_CREATED_DATE_FIELD_NAME

protected static final java.lang.String DOC_CREATED_DATE_FIELD_NAME
See Also:
Constant Field Values

DOC_LAST_MODIFIED_DATE

protected static final java.lang.String DOC_LAST_MODIFIED_DATE
See Also:
Constant Field Values

SECURITY_GROUP_FIELD_NAME

protected static final java.lang.String SECURITY_GROUP_FIELD_NAME
See Also:
Constant Field Values

STATUS_FIELD_NAME

protected static final java.lang.String STATUS_FIELD_NAME
See Also:
Constant Field Values
Constructor Detail

UcmRepository

public UcmRepository(UcmConnection connection)
Create a new UCM Content Repository using the connection passed in.

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

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

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

createTransferFile

public oracle.stellent.ridc.model.TransferFile createTransferFile(java.io.InputStream is,
                                                                  java.lang.String contentType,
                                                                  java.lang.String fileName,
                                                                  java.lang.Long contentLength)

checkin

public DocumentMetaData checkin(DocumentMetaData inMetaData,
                                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

getAccounts

public java.util.List<UcmAccount> getAccounts()

asUcmAccount

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,

  • ACME is transformed to ACME$
  • ACME is transformed to ACME$
  • /ACME/ is transformed to ACME$
  • ACME/sales is transformed to ACME$/sales$

Parameters:
faAccount - FA account
Returns:
transformed account with tokens dollar terminated

asFaAccount

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,

  • ACME$ is transformed to ACME
  • ACME$/sales$ is transformed to ACME/sales

Parameters:
ucmAccount - UCM account
Returns:
transformed account without tokens dollar terminated

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.