Package com.logicaldoc.webdav.io.handler
Class DefaultHandler
- java.lang.Object
-
- com.logicaldoc.webdav.io.handler.DefaultHandler
-
- All Implemented Interfaces:
IOHandler
,Serializable
public class DefaultHandler extends Object implements IOHandler
For more informations, please visitDefaultHandler
- Author:
- Sebastian Wenzky
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultHandler()
DefaultHandler(IOManager ioManager)
DefaultHandler(IOManager ioManager, String collectionNodetype, String defaultNodetype, String contentNodetype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canExport(ExportContext context, boolean isCollection)
boolean
canExport(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource)
boolean
canExport(org.apache.jackrabbit.server.io.PropertyExportContext context, boolean isCollection)
boolean
canImport(ImportContext context, boolean isCollection)
boolean
canImport(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource)
boolean
canImport(org.apache.jackrabbit.server.io.PropertyImportContext context, boolean isCollection)
boolean
exportContent(ExportContext context, boolean isCollection)
boolean
exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource)
boolean
exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource, Long left, Long rangeLength)
boolean
exportProperties(org.apache.jackrabbit.server.io.PropertyExportContext exportContext, boolean isCollection)
IOManager
getIOManager()
String
getName()
boolean
importContent(ImportContext context, boolean isCollection)
boolean
importContent(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource)
void
setIOManager(IOManager ioManager)
void
setResourceService(ResourceService resourceService)
-
-
-
Method Detail
-
setResourceService
public void setResourceService(ResourceService resourceService)
-
getIOManager
public IOManager getIOManager()
- Specified by:
getIOManager
in interfaceIOHandler
-
setIOManager
public void setIOManager(IOManager ioManager)
- Specified by:
setIOManager
in interfaceIOHandler
-
canImport
public boolean canImport(ImportContext context, boolean isCollection)
-
canImport
public boolean canImport(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource)
-
importContent
public boolean importContent(ImportContext context, boolean isCollection) throws IOException, org.apache.jackrabbit.webdav.DavException
- Specified by:
importContent
in interfaceIOHandler
- Throws:
IOException
org.apache.jackrabbit.webdav.DavException
-
importContent
public boolean importContent(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource) throws IOException, org.apache.jackrabbit.webdav.DavException
- Specified by:
importContent
in interfaceIOHandler
- Throws:
IOException
org.apache.jackrabbit.webdav.DavException
-
canExport
public boolean canExport(ExportContext context, boolean isCollection)
-
canExport
public boolean canExport(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource)
-
exportContent
public boolean exportContent(ExportContext context, boolean isCollection) throws IOException
- Specified by:
exportContent
in interfaceIOHandler
- Throws:
IOException
-
exportContent
public boolean exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource) throws IOException
- Specified by:
exportContent
in interfaceIOHandler
- Throws:
IOException
-
canExport
public boolean canExport(org.apache.jackrabbit.server.io.PropertyExportContext context, boolean isCollection)
-
exportProperties
public boolean exportProperties(org.apache.jackrabbit.server.io.PropertyExportContext exportContext, boolean isCollection) throws WebDavStorageException
- Throws:
WebDavStorageException
-
canImport
public boolean canImport(org.apache.jackrabbit.server.io.PropertyImportContext context, boolean isCollection)
-
exportContent
public boolean exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource, Long left, Long rangeLength) throws IOException
- Specified by:
exportContent
in interfaceIOHandler
- Throws:
IOException
-
-