|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.8.0) E15995-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webcenter.content.model.rc.ContentUrlResourceFactory
public final class ContentUrlResourceFactory
Resource factory for portal framework content. The URL format is as follows:
content://resourceId
which for a UCM document would be content://[connection name]#dDocName:[dDocName]
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" />
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 |
---|
public static final java.lang.String SCHEME
public static final java.lang.String URL_PREFIX
Constructor Detail |
---|
public ContentUrlResourceFactory()
Method Detail |
---|
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
CatalogException
public java.util.Collection<ParameterDescriptor> getParameterDescriptors()
public static java.lang.String createUrlFromResource(Resource res)
res
- The target resource. This must be a content repository resourcejava.lang.ClassCastException
- if res
is not a content repository resourcepublic static java.lang.String createUrlFromResourceId(JCRContentID resourceId)
resourceId
- The target resource ID.
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.8.0) E15995-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |