Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.content.model.rc
Class ContentUrlResourceFactory

java.lang.Object
  extended by oracle.webcenter.content.model.rc.ContentUrlResourceFactory


public final class ContentUrlResourceFactory
extends java.lang.Object

Resource factory for portal framework content. The URL format is as follows:

ID based
content://resourceId which for a UCM document would be content://[connection name]#dDocName:[dDocName]
Path based
content://[connectionName][absPath], for example content://UCM/PersonalSpaces/weblogic/content.xml

The resource factory supports only content from UCM connections. It can be used in a resource catalog as follows:

 <url id="contentItem"
      factoryClass="oracle.webcenter.content.model.rc.ContentUrlResourceFactory"
      url="content://UCM/PersonalSpaces/weblogic/content.xml" />
 
Since:
11.1.1.4.0

Field Summary
static java.lang.String SCHEME
          The URL prefix used by this resource factory
static java.lang.String URL_PREFIX
           

 

Constructor Summary
ContentUrlResourceFactory()
           

 

Method Summary
 oracle.webcenter.content.internal.model.rc.ContentResource createResource(java.lang.String jndiName, java.lang.String url, javax.naming.directory.Attributes attributes, Parameters parameters)
           
static java.lang.String createUrlFromResource(Resource res)
          Creates a URL for the specified resource
static java.lang.String createUrlFromResourceId(JCRContentID resourceId)
          Creates a URL for the specified resource ID
 java.util.Collection<ParameterDescriptor> getParameterDescriptors()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

SCHEME

public static final java.lang.String SCHEME
The URL prefix used by this resource factory
See Also:
Constant Field Values

URL_PREFIX

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

Constructor Detail

ContentUrlResourceFactory

public ContentUrlResourceFactory()

Method Detail

createResource

public oracle.webcenter.content.internal.model.rc.ContentResource createResource(java.lang.String jndiName,
                                                                                 java.lang.String url,
                                                                                 javax.naming.directory.Attributes attributes,
                                                                                 Parameters parameters)
                                                                          throws CatalogException
Throws:
CatalogException

getParameterDescriptors

public java.util.Collection<ParameterDescriptor> getParameterDescriptors()

createUrlFromResource

public static java.lang.String createUrlFromResource(Resource res)
Creates a URL for the specified resource
Parameters:
res - The target resource. This must be a content repository resource
Returns:
The resource URL to be used with this URL resource factory
Throws:
java.lang.ClassCastException - if res is not a content repository resource

createUrlFromResourceId

public static java.lang.String createUrlFromResourceId(JCRContentID resourceId)
Creates a URL for the specified resource ID
Parameters:
resourceId - The target resource ID.
Returns:
The resource URL to be used with this URL resource factory

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.