org.apache.jackrabbit.core.xml
Class WorkspaceImporter

java.lang.Object
  extended byorg.apache.jackrabbit.core.xml.WorkspaceImporter
All Implemented Interfaces:
Importer

public class WorkspaceImporter
extends Object
implements Importer

WorkspaceImporter ...


Nested Class Summary
 
Nested classes inherited from class org.apache.jackrabbit.core.xml.Importer
Importer.NodeInfo, Importer.PropInfo, Importer.TextValue
 
Constructor Summary
WorkspaceImporter(Path parentPath, WorkspaceImpl wsp, NodeTypeRegistry ntReg, int uuidBehavior)
          Creates a new WorkspaceImporter instance.
 
Method Summary
 void end()
          
 void endNode(Importer.NodeInfo nodeInfo)
          
protected  void postProcessNode(NodeState node)
          Post-process imported node (initialize properties with special semantics etc.)
protected  NodeState resolveUUIDConflict(NodeState parent, NodeState conflicting, Importer.NodeInfo nodeInfo)
           
 void start()
          
 void startNode(Importer.NodeInfo nodeInfo, List propInfos, NamespaceResolver nsContext)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceImporter

public WorkspaceImporter(Path parentPath,
                         WorkspaceImpl wsp,
                         NodeTypeRegistry ntReg,
                         int uuidBehavior)
                  throws PathNotFoundException,
                         ConstraintViolationException,
                         VersionException,
                         LockException,
                         RepositoryException
Creates a new WorkspaceImporter instance.

Parameters:
parentPath - target path where to add the imported subtree
wsp -
ntReg -
uuidBehavior - flag that governs how incoming UUIDs are handled
Throws:
PathNotFoundException - if no node exists at parentPath or if the current session is not granted read access.
ConstraintViolationException - if the node at parentPath is protected
VersionException - if the node at parentPath is not checked-out
LockException - if a lock prevents the addition of the subtree
RepositoryException - if another error occurs
Method Detail

resolveUUIDConflict

protected NodeState resolveUUIDConflict(NodeState parent,
                                        NodeState conflicting,
                                        Importer.NodeInfo nodeInfo)
                                 throws RepositoryException
Parameters:
parent -
conflicting -
nodeInfo -
Returns:
Throws:
RepositoryException

postProcessNode

protected void postProcessNode(NodeState node)
                        throws RepositoryException
Post-process imported node (initialize properties with special semantics etc.)

Parameters:
node -
Throws:
RepositoryException

start

public void start()
           throws RepositoryException

Specified by:
start in interface Importer
Throws:
RepositoryException

startNode

public void startNode(Importer.NodeInfo nodeInfo,
                      List propInfos,
                      NamespaceResolver nsContext)
               throws RepositoryException

Specified by:
startNode in interface Importer
Parameters:
nodeInfo -
propInfos - list of PropInfo instances
nsContext - prefix mappings of current context
Throws:
RepositoryException

endNode

public void endNode(Importer.NodeInfo nodeInfo)
             throws RepositoryException

Specified by:
endNode in interface Importer
Parameters:
nodeInfo -
Throws:
RepositoryException

end

public void end()
         throws RepositoryException

Specified by:
end in interface Importer
Throws:
RepositoryException


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.