org.apache.jackrabbit.oak.jcr.xml
Class ImporterImpl
java.lang.Object
org.apache.jackrabbit.oak.jcr.xml.ImporterImpl
- All Implemented Interfaces:
- org.apache.jackrabbit.oak.spi.xml.Importer
public class ImporterImpl
- extends Object
- implements org.apache.jackrabbit.oak.spi.xml.Importer
Constructor Summary |
ImporterImpl(String absPath,
SessionContext sessionContext,
org.apache.jackrabbit.oak.api.Root root,
int uuidBehavior,
boolean isWorkspaceImport)
Creates a new importer instance. |
Method Summary |
void |
end()
|
void |
endNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo)
|
void |
start()
|
void |
startNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo,
List<org.apache.jackrabbit.oak.spi.xml.PropInfo> propInfos)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImporterImpl
public ImporterImpl(String absPath,
SessionContext sessionContext,
org.apache.jackrabbit.oak.api.Root root,
int uuidBehavior,
boolean isWorkspaceImport)
throws javax.jcr.RepositoryException
- Creates a new importer instance.
- Parameters:
absPath
- The absolute JCR paths such as passed to the JCR call.sessionContext
- The context of the editing sessionroot
- The write Root
, which in case of a workspace import
is different from the Root
associated with the editing session.uuidBehavior
- The uuid behaviorisWorkspaceImport
- true
if this is a workspace import,
false
otherwise.
- Throws:
javax.jcr.RepositoryException
- If the initial validation of the
path or the state of target node/session fails.
start
public void start()
throws javax.jcr.RepositoryException
- Specified by:
start
in interface org.apache.jackrabbit.oak.spi.xml.Importer
- Throws:
javax.jcr.RepositoryException
startNode
public void startNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo,
List<org.apache.jackrabbit.oak.spi.xml.PropInfo> propInfos)
throws javax.jcr.RepositoryException
- Specified by:
startNode
in interface org.apache.jackrabbit.oak.spi.xml.Importer
- Throws:
javax.jcr.RepositoryException
endNode
public void endNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo)
throws javax.jcr.RepositoryException
- Specified by:
endNode
in interface org.apache.jackrabbit.oak.spi.xml.Importer
- Throws:
javax.jcr.RepositoryException
end
public void end()
throws javax.jcr.RepositoryException
- Specified by:
end
in interface org.apache.jackrabbit.oak.spi.xml.Importer
- Throws:
javax.jcr.RepositoryException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.