com.ibm.portal.resolver.webdav.tree.helper
Class CORWebdavTreeModelFactory
java.lang.Object
com.ibm.portal.resolver.webdav.tree.helper.CORWebdavTreeModelFactory
- All Implemented Interfaces:
- CORService, WebdavTreeModelFactory
public class CORWebdavTreeModelFactory
- extends java.lang.Object
- implements WebdavTreeModelFactory, CORService
WebdavTreeModelFactory that implements itself by dispatching to a
WebdavTreeModelFactory provided by the COR.
- Since:
- 6.1.5
- Note:
This interface is designed to be implemented by clients. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SINGLETON
public static final CORWebdavTreeModelFactory SINGLETON
- access to this factory
CORWebdavTreeModelFactory
public CORWebdavTreeModelFactory()
CORWebdavTreeModelFactory
public CORWebdavTreeModelFactory(WebdavTreeModelFactory<java.lang.Object,Modifiable> aDefault)
getWebdavTreeModel
public WebdavTreeModel getWebdavTreeModel(java.net.URI uri,
java.util.Map params,
Context ctx)
throws java.io.IOException,
ResolutionException
- Description copied from interface:
WebdavTreeModelFactory
- 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
.
- Specified by:
getWebdavTreeModel
in interface WebdavTreeModelFactory
- Parameters:
uri
- URI of the addressed resource, not null
params
- parameters mapctx
- COR context, not null
- Returns:
- the tree model or
null
- Throws:
java.io.IOException
ResolutionException
getWebdavTreeModelController
public WebdavTreeModelController getWebdavTreeModelController(java.net.URI uri,
java.util.Map params,
Context ctx)
throws java.io.IOException,
ResolutionException
- Description copied from interface:
WebdavTreeModelFactory
- 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
.
- Specified by:
getWebdavTreeModelController
in interface WebdavTreeModelFactory
- Parameters:
uri
- URI of the addressed resource, not null
params
- parameters mapctx
- COR context, not null
- Returns:
- the tree model or
null
- Throws:
java.io.IOException
ResolutionException
lookupService
public final WebdavTreeModelFactory lookupService(java.net.URI uri,
Context ctx)
throws ServiceNotFoundException
- Uses the COR to find a service that exposes a particular interface. The
fully specified classname of the interface is interpreted as the ID of
the service
- Parameters:
uri
- POC URI to resolve, not null
ctx
- COR context, not null
- Returns:
- Implementation of the service handler for the URI and the
specified class
- Throws:
ServiceNotFoundException
org.eclipse.core.runtime.CoreException
- - some COR stuff failed
ServiceNotFoundException
- - the service could not be located