|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebdavTreeModelFactory<T,M extends Modifiable>
Factory that created model based description of WebDAV hierarchies. Use the following example to register your factory
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin id="%ID%"
name="%SOMENAME%" version="1.0.0"
provider-name="IBM">
<extension
point="com.ibm.content.operations.registry.locationTypeContribution">
<contentLocationType
class="com.ibm.portal.resolver.helper.cor.DefaultContentLocationFactory"
id="%LOCATION_TYPE_ID%" match.uri.scheme="%SCHEME%" />
</extension>
<extension
id="locationServiceHandler"
point="com.ibm.content.operations.registry.locationServiceHandler">
<serviceHandler class="com.ibm.wps.resolver.webdav.factory.proxy.WebDavDataFactoryProxy"
locationTypeId="%LOCATION_TYPE_ID%"
id="com.ibm.portal.resolver.webdav.data.WebDavDataFactory"/>
<serviceHandler class="com.ibm.wps.resolver.webdav.tree.proxy.WebdavTreeModelCommandFactoryProxy"
locationTypeId="%LOCATION_TYPE_ID%"
id="com.ibm.portal.resolver.webdav.commands.WebdavCommandFactory"/>
<serviceHandler class="%YOUR_CLASS%"
locationTypeId="%LOCATION_TYPE_ID%"
id="com.ibm.portal.resolver.webdav.tree.WebdavTreeModelFactory"/>
</extension>
</plugin>
This interface is designed to be implemented by clients. |
Method Summary | |
---|---|
WebdavTreeModel<T> |
getWebdavTreeModel(java.net.URI uri,
java.util.Map<java.lang.String,java.lang.String[]> params,
Context ctx)
Returns the model description of the WebDAV hierarchy identified by the URI. |
WebdavTreeModelController<T,M> |
getWebdavTreeModelController(java.net.URI uri,
java.util.Map<java.lang.String,java.lang.String[]> params,
Context ctx)
Returns the model description of the WebDAV hierarchy identified by the URI. |
Method Detail |
---|
WebdavTreeModel<T> getWebdavTreeModel(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String[]> params, Context ctx) throws java.io.IOException, ResolutionException
null
. A URI cannot be resolved if it identifies an item that
cannot be part of the namespace of the tree model. If the URI identifies
an item in the namespace but the item does not exist (yet), then the
method MUST still return a tree model. In this case the
WebdavTreeModel.getItem(URI)
method MUST return null
.
uri
- URI of the addressed resource, not null
params
- parameters mapctx
- COR context, not null
null
java.io.IOException
ResolutionException
WebdavTreeModelController<T,M> getWebdavTreeModelController(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String[]> params, Context ctx) throws java.io.IOException, ResolutionException
null
. A URI cannot be resolved if it identifies an item that
cannot be part of the namespace of the tree model. If the URI identifies
an item in the namespace but the item does not exist (yet), then the
method MUST still return a tree model. In this case the
WebdavTreeModel.getItem(URI)
method MUST return null
.
uri
- URI of the addressed resource, not null
params
- parameters mapctx
- COR context, not null
null
java.io.IOException
ResolutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |