com.ibm.portal.resolver.webdav.tree
Interface WebdavTreeModelFactory<T,M extends Modifiable>

All Known Implementing Classes:
CORWebdavTreeModelFactory

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>

Since:
6.1.5
Note:
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

getWebdavTreeModel

WebdavTreeModel<T> getWebdavTreeModel(java.net.URI uri,
                                      java.util.Map<java.lang.String,java.lang.String[]> params,
                                      Context ctx)
                                      throws java.io.IOException,
                                             ResolutionException
Returns the model description of the WebDAV hierarchy identified by the URI. If the URI cannot be resolved this method should return 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 .

Parameters:
uri - URI of the addressed resource, not null
params - parameters map
ctx - COR context, not null
Returns:
the tree model or null
Throws:
java.io.IOException
ResolutionException

getWebdavTreeModelController

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
Returns the model description of the WebDAV hierarchy identified by the URI. If the URI cannot be resolved this method should return 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 .

Parameters:
uri - URI of the addressed resource, not null
params - parameters map
ctx - COR context, not null
Returns:
the tree model or null
Throws:
java.io.IOException
ResolutionException