public class ImporterImpl extends Object implements org.apache.jackrabbit.oak.spi.xml.Importer
Constructor and Description |
---|
ImporterImpl(String absPath,
SessionContext sessionContext,
org.apache.jackrabbit.oak.api.Root root,
int uuidBehavior,
boolean isWorkspaceImport)
Creates a new importer instance.
|
Modifier and Type | Method and Description |
---|---|
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) |
public ImporterImpl(String absPath, SessionContext sessionContext, org.apache.jackrabbit.oak.api.Root root, int uuidBehavior, boolean isWorkspaceImport) throws RepositoryException
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.RepositoryException
- If the initial validation of the
path or the state of target node/session fails.public void start() throws RepositoryException
start
in interface org.apache.jackrabbit.oak.spi.xml.Importer
RepositoryException
public void startNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo, List<org.apache.jackrabbit.oak.spi.xml.PropInfo> propInfos) throws RepositoryException
startNode
in interface org.apache.jackrabbit.oak.spi.xml.Importer
RepositoryException
public void endNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo) throws RepositoryException
endNode
in interface org.apache.jackrabbit.oak.spi.xml.Importer
RepositoryException
public void end() throws RepositoryException
end
in interface org.apache.jackrabbit.oak.spi.xml.Importer
RepositoryException
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.