|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.server.io.DefaultHandler
org.apache.jackrabbit.server.io.VersionHandler
public class VersionHandler
| Constructor Summary | |
|---|---|
VersionHandler()
|
|
VersionHandler(IOManager ioManager)
|
|
| Method Summary | |
|---|---|
boolean |
canExport(ExportContext context,
boolean isCollection)
Returns true if the export root is a node and if it contains a child node with name jcr:content in case this
export is not intended for a collection. |
boolean |
canExport(ExportContext context,
DavResource resource)
Returns true, if this handler can run a successful export based on the specified context and resource. |
boolean |
canImport(ImportContext context,
boolean isCollection)
Returns true, if this handler can run a successful import based on the specified context. |
boolean |
canImport(ImportContext context,
DavResource resource)
Returns true, if this handler can run a successful import based on the specified context and resource. |
boolean |
canImport(PropertyImportContext context,
boolean isCollection)
Returns true, if this handler can run a property import based on the specified context. |
boolean |
exportProperties(PropertyExportContext exportContext,
boolean isCollection)
Exports properties to the given context. |
protected javax.jcr.Node |
getContentNode(ExportContext context,
boolean isCollection)
Retrieves the content node that contains the data to be exported. |
boolean |
importContent(ImportContext context,
boolean isCollection)
Runs the import for the given context and indicates by a boolean return value, if the import could be completed successfully. |
boolean |
importContent(ImportContext context,
DavResource resource)
Runs the import for the given context and resource. |
Map |
importProperties(PropertyImportContext importContext,
boolean isCollection)
Imports, modifies or removes properties according the the change list available from
the import context. |
| Methods inherited from class org.apache.jackrabbit.server.io.DefaultHandler |
|---|
canExport, exportContent, exportContent, exportData, exportProperties, forceCompatibleContentNodes, getCollectionNodeType, getContentNode, getContentNodeType, getIOManager, getName, getNodeType, importData, importProperties, setIOManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.server.io.IOHandler |
|---|
exportContent, exportContent, getIOManager, getName, setIOManager |
| Constructor Detail |
|---|
public VersionHandler()
public VersionHandler(IOManager ioManager)
| Method Detail |
|---|
public boolean canImport(ImportContext context,
boolean isCollection)
IOHandler
canImport in interface IOHandlercanImport in class DefaultHandlerIOHandler.canImport(ImportContext, boolean)
public boolean canImport(ImportContext context,
DavResource resource)
IOHandlerIOHandler.canImport(ImportContext, boolean)
where the isCollection flag is determined by
DavResource.isCollection().
canImport in interface IOHandlercanImport in class DefaultHandlerIOHandler.canImport(ImportContext, DavResource)
public boolean importContent(ImportContext context,
boolean isCollection)
throws IOException
IOHandlerImportContext does not provide a stream
the implementation is free, to only import properties of to refuse the
import.ImportContext to assert, that its stream is not consumed
multiple times when being passed to a chain of IOHandlers.
importContent in interface IOHandlerimportContent in class DefaultHandlerIOException - 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,
DavResource resource)
throws IOException
IOHandlerImportContext does not provide a stream
the implementation is free, to only import properties of to refuse the
import. A simple implementation may return the same as
IOHandler.importContent(ImportContext, boolean) where the
isCollection flag is determined by DavResource.isCollection()ImportContext to assert, that its stream is not consumed
multiple times when being passed to a chain of IOHandlers.
importContent in interface IOHandlerimportContent in class DefaultHandlerIOException - 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)
DefaultHandlerjcr:content in case this
export is not intended for a collection.
canExport in interface IOHandlercanExport in class DefaultHandlercontext - isCollection -
Version node. False otherwise.IOHandler.canExport(ExportContext, boolean)
public boolean canExport(ExportContext context,
DavResource resource)
IOHandlerIOHandler.canExport(ExportContext, boolean)
where the isCollection flag is determined by
DavResource.isCollection().
canExport in interface IOHandlercanExport in class DefaultHandlerVersion node. False otherwise.IOHandler.canExport(ExportContext, DavResource)
public boolean canImport(PropertyImportContext context,
boolean isCollection)
PropertyHandler
canImport in interface PropertyHandlercanImport in class DefaultHandlerPropertyHandler can import properties
given the specified parameters.
public Map importProperties(PropertyImportContext importContext,
boolean isCollection)
throws javax.jcr.RepositoryException
PropertyHandlerchange list available from
the import context. Note, that according to JSR 170 setting a property
value to null is equivalent to its removal.
The return value of this method must be used to provided detailed
information about any kind of failures.
importProperties in interface PropertyHandlerimportProperties in class DefaultHandlerjavax.jcr.RepositoryException - If
PropertyHandler.canImport(PropertyImportContext, boolean)
returns false for the given parameters or if some other unrecoverable
error occured. Note, that normal failure of a property update must be
reported with the return value and should not result in an exception.
public boolean exportProperties(PropertyExportContext exportContext,
boolean isCollection)
throws javax.jcr.RepositoryException
PropertyHandlerIOHandler.exportContent(ExportContext, boolean).
exportProperties in interface PropertyHandlerexportProperties in class DefaultHandlerjavax.jcr.RepositoryException - If an attempt is made to export properties
even if PropertyHandler#canExport{PropertyExportContext, boolean)}
returns false or if some other unrecoverable error occurs.PropertyHandler.exportProperties(PropertyExportContext, boolean)
protected javax.jcr.Node getContentNode(ExportContext context,
boolean isCollection)
throws javax.jcr.RepositoryException
getContentNode in class DefaultHandlercontext - isCollection -
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||