org.apache.jackrabbit.jcr2spi.xml
Class SessionImporter

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.xml.SessionImporter
All Implemented Interfaces:
SessionListener, Importer

public class SessionImporter
extends Object
implements Importer, SessionListener

SessionImporter...


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.jackrabbit.jcr2spi.xml.Importer
Importer.NodeInfo, Importer.PropInfo, Importer.TextValue
 
Constructor Summary
SessionImporter(Path parentPath, SessionImpl session, SessionItemStateManager stateManager, int uuidBehavior)
          Creates a new WorkspaceImporter instance.
 
Method Summary
 void end()
          
 void endNode(Importer.NodeInfo nodeInfo)
          
 void loggedOut(Session session)
          Called when a Session has been 'closed' by calling Session.logout()
 void loggingOut(Session session)
          Called when a Session is about to be 'closed' by calling Session.logout()
 void start()
          
 void startNode(Importer.NodeInfo nodeInfo, List<Importer.PropInfo> propInfos, NamePathResolver resolver)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionImporter

public SessionImporter(Path parentPath,
                       SessionImpl session,
                       SessionItemStateManager stateManager,
                       int uuidBehavior)
                throws PathNotFoundException,
                       ConstraintViolationException,
                       VersionException,
                       LockException,
                       RepositoryException
Creates a new WorkspaceImporter instance.

Parameters:
parentPath - Path of target node where to add the imported subtree.
session -
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

start

public void start()
           throws RepositoryException

Specified by:
start in interface Importer
Throws:
RepositoryException

startNode

public void startNode(Importer.NodeInfo nodeInfo,
                      List<Importer.PropInfo> propInfos,
                      NamePathResolver resolver)
               throws RepositoryException

Specified by:
startNode in interface Importer
propInfos - list of PropInfo instances
resolver - NamePathResolver dealing with prefix mappings of current context.
Throws:
RepositoryException

endNode

public void endNode(Importer.NodeInfo nodeInfo)
             throws RepositoryException

Specified by:
endNode in interface Importer
Throws:
RepositoryException

end

public void end()
         throws RepositoryException

Specified by:
end in interface Importer
Throws:
RepositoryException

loggingOut

public void loggingOut(Session session)
Description copied from interface: SessionListener
Called when a Session is about to be 'closed' by calling Session.logout()
Specified by:
loggingOut in interface SessionListener
Parameters:
session -
See Also:
SessionListener.loggingOut(Session)

loggedOut

public void loggedOut(Session session)
Description copied from interface: SessionListener
Called when a Session has been 'closed' by calling Session.logout()
Specified by:
loggedOut in interface SessionListener
Parameters:
session -
See Also:
SessionListener.loggedOut(Session)


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