|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.server.io.DirListingExportHandler
DirListingExportHandler
represents a simple export for collections:
a human-readable view listing the members.
Note: If exportContent(ExportContext, boolean)
is called the view list
child nodes only, without respecting their representation as DavResource
s.
Constructor Summary | |
DirListingExportHandler(IOManager ioManager)
Creates a new DirListingExportHandler |
Method Summary | |
boolean |
canExport(ExportContext context,
boolean isCollection)
Returns true, if this handler can run a successful export based on the specified context. |
boolean |
canExport(ExportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Returns true, if this handler can run a successful export based on the specified context and resource. |
boolean |
canImport(ImportContext context,
boolean isFolder)
Always returns false |
boolean |
canImport(ImportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Always returns false |
boolean |
exportContent(ExportContext context,
boolean isCollection)
Runs the export for the given context. |
boolean |
exportContent(ExportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Runs the export for the given context and resource. |
IOManager |
getIOManager()
Returns the IOManager that called this handler or null . |
String |
getName()
Returns a human readable name for this IOHandler |
boolean |
importContent(ImportContext context,
boolean isCollection)
Does nothing and returns false |
boolean |
importContent(ImportContext context,
org.apache.jackrabbit.webdav.DavResource resource)
Does nothing and returns false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirListingExportHandler(IOManager ioManager)
DirListingExportHandler
ioManager
- Method Detail |
public boolean canImport(ImportContext context, boolean isFolder)
canImport
in interface IOHandler
context
- isFolder
-
IOHandler.canImport(ImportContext, boolean)
public boolean canImport(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource)
canImport
in interface IOHandler
context
- resource
-
IOHandler.canImport(ImportContext, DavResource)
public boolean importContent(ImportContext context, boolean isCollection) throws IOException
importContent
in interface IOHandler
context
- isCollection
-
IOException
- if an unexpected error occurs or if this method has
been called although IOHandler.canImport(ImportContext, boolean)
returns
false.IOHandler.importContent(ImportContext, boolean)
public boolean importContent(ImportContext context, org.apache.jackrabbit.webdav.DavResource resource) throws IOException
importContent
in interface IOHandler
context
- resource
-
IOException
- if an unexpected error occurs or if this method has
been called although IOHandler.canImport(ImportContext, DavResource)
returns
false.IOHandler.importContent(ImportContext, DavResource)
public boolean canExport(ExportContext context, boolean isCollection)
IOHandler
canExport
in interface IOHandler
context
- isCollection
-
IOHandler.canExport(ExportContext, boolean)
public boolean canExport(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource)
IOHandler
IOHandler.canExport(ExportContext, boolean)
where
the isCollection flag is determined by DavResource.isCollection()
.
canExport
in interface IOHandler
context
- resource
-
IOHandler.canExport(ExportContext, DavResource)
,
DavResource.isCollection()
public boolean exportContent(ExportContext context, boolean isCollection) throws IOException
IOHandler
ExportContext
does not provide a stream
the implementation should set the properties only and ignore the content to
be exported. A simple implementation may return the same as
IOHandler.exportContent(ExportContext, boolean)
where the isCollection flag
is determined by DavResource.isCollection()
ExportContext
to assert, that its stream is not written
multiple times when being passed to a chain of IOHandler
s.
exportContent
in interface IOHandler
context
- isCollection
-
IOException
- if an unexpected error occurs or if this method has
been called although IOHandler.canExport(ExportContext, boolean)
returns
false.IOHandler.exportContent(ExportContext, boolean)
public boolean exportContent(ExportContext context, org.apache.jackrabbit.webdav.DavResource resource) throws IOException
IOHandler
ExportContext
does not provide a stream
the implementation should set the properties only and ignore the content to
be exported. A simple implementation may return the same as
IOHandler.exportContent(ExportContext, boolean)
where the isCollection flag
is determined by DavResource.isCollection()
ExportContext
to assert, that its stream is not written
multiple times when being passed to a chain of IOHandler
s.
exportContent
in interface IOHandler
context
- resource
-
IOException
- if an unexpected error occurs or if this method has
been called although IOHandler.canExport(ExportContext, DavResource)
returns
false.IOHandler.exportContent(ExportContext, DavResource)
public IOManager getIOManager()
IOHandler
IOManager
that called this handler or null
.
getIOManager
in interface IOHandler
IOHandler.getIOManager()
public String getName()
IOHandler
IOHandler
getName
in interface IOHandler
IOHandler.getName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |