org.apache.jackrabbit.server.io
Class DefaultIOManager

java.lang.Object
  extended byorg.apache.jackrabbit.server.io.DefaultIOManager
All Implemented Interfaces:
IOManager

public class DefaultIOManager
extends Object
implements IOManager

DefaultIOManager...


Constructor Summary
  DefaultIOManager()
           
protected DefaultIOManager(boolean doInit)
           
 
Method Summary
 void addIOHandler(IOHandler ioHandler)
          Adds the specified handler to the list of handlers.
 boolean exportContent(ExportContext context, boolean isCollection)
          Passes the specified information to the IOHandlers present on this manager.
 boolean exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource)
          Passes the specified information to the IOHandlers present on this manager.
 IOHandler[] getIOHandlers()
          Returns all handlers that have been added to this manager.
 boolean importContent(ImportContext context, boolean isCollection)
          Passes the specified context and boolean value to the IOHandlers present on this manager.
 boolean importContent(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource)
          Passes the specified information to the IOHandlers present on this manager.
protected  void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIOManager

public DefaultIOManager()

DefaultIOManager

protected DefaultIOManager(boolean doInit)
Method Detail

init

protected void init()

addIOHandler

public void addIOHandler(IOHandler ioHandler)
Description copied from interface: IOManager
Adds the specified handler to the list of handlers.

Specified by:
addIOHandler in interface IOManager
Parameters:
ioHandler - to be added

getIOHandlers

public IOHandler[] getIOHandlers()
Description copied from interface: IOManager
Returns all handlers that have been added to this manager.

Specified by:
getIOHandlers in interface IOManager
Returns:
Array of all handlers

importContent

public boolean importContent(ImportContext context,
                             boolean isCollection)
                      throws IOException
Description copied from interface: IOManager
Passes the specified context and boolean value to the IOHandlers present on this manager. As soon as the first handler incidates success the import should be considered completed. If none of the handlers can deal with the given information this method must return false.

Specified by:
importContent in interface IOManager
Parameters:
context -
isCollection -
Returns:
true if any of the handlers import the given context. False otherwise.
Throws:
IOException
See Also:
IOHandler.importContent(ImportContext, boolean)

importContent

public boolean importContent(ImportContext context,
                             org.apache.jackrabbit.webdav.DavResource resource)
                      throws IOException
Description copied from interface: IOManager
Passes the specified information to the IOHandlers present on this manager. As soon as the first handler incidates success the import should be considered completed. If none of the handlers can deal with the given information this method must return false.

Specified by:
importContent in interface IOManager
Parameters:
context -
resource -
Returns:
true if any of the handlers import the information present on the specified context.
Throws:
IOException
See Also:
IOHandler.importContent(ImportContext, DavResource)

exportContent

public boolean exportContent(ExportContext context,
                             boolean isCollection)
                      throws IOException
Description copied from interface: IOManager
Passes the specified information to the IOHandlers present on this manager. As soon as the first handler incidates success the export should be considered completed. If none of the handlers can deal with the given information this method must return false.

Specified by:
exportContent in interface IOManager
Parameters:
context -
isCollection -
Returns:
true if any of the handlers could run the export successfully, false otherwise.
Throws:
IOException
See Also:
IOHandler.exportContent(ExportContext, boolean)

exportContent

public boolean exportContent(ExportContext context,
                             org.apache.jackrabbit.webdav.DavResource resource)
                      throws IOException
Description copied from interface: IOManager
Passes the specified information to the IOHandlers present on this manager. As soon as the first handler incidates success the export should be considered completed. If none of the handlers can deal with the given information this method must return false.

Specified by:
exportContent in interface IOManager
Parameters:
context -
resource -
Returns:
true if any of the handlers could run the export successfully, false otherwise.
Throws:
IOException
See Also:
IOHandler.exportContent(ExportContext, DavResource)


Copyright © 2005-2006 . All Rights Reserved.