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.
|
public ImporterImpl(String absPath, SessionContext sessionContext, org.apache.jackrabbit.oak.api.Root root, int uuidBehavior, boolean isWorkspaceImport) throws javax.jcr.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.javax.jcr.RepositoryException
- If the initial validation of the
path or the state of target node/session fails.public void start() throws javax.jcr.RepositoryException
start
in interface org.apache.jackrabbit.oak.spi.xml.Importer
javax.jcr.RepositoryException
public void startNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo, List<org.apache.jackrabbit.oak.spi.xml.PropInfo> propInfos) throws javax.jcr.RepositoryException
startNode
in interface org.apache.jackrabbit.oak.spi.xml.Importer
javax.jcr.RepositoryException
public void endNode(org.apache.jackrabbit.oak.spi.xml.NodeInfo nodeInfo) throws javax.jcr.RepositoryException
endNode
in interface org.apache.jackrabbit.oak.spi.xml.Importer
javax.jcr.RepositoryException
public void end() throws javax.jcr.RepositoryException
end
in interface org.apache.jackrabbit.oak.spi.xml.Importer
javax.jcr.RepositoryException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.