public class SessionImporter extends Object implements Importer, SessionListener
SessionImporter...Importer.NodeInfo, Importer.PropInfo, Importer.TextValue| Constructor and Description |
|---|
SessionImporter(Path parentPath,
SessionImpl session,
SessionItemStateManager stateManager,
int uuidBehavior)
Creates a new
WorkspaceImporter instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
void |
endNode(Importer.NodeInfo nodeInfo) |
void |
loggedOut(Session session)
Called when a
Session has been 'closed' by
calling . |
void |
loggingOut(Session session)
Called when a
Session is about to be 'closed' by
calling . |
void |
start() |
void |
startNode(Importer.NodeInfo nodeInfo,
List<Importer.PropInfo> propInfos,
NamePathResolver resolver) |
public SessionImporter(Path parentPath, SessionImpl session, SessionItemStateManager stateManager, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
WorkspaceImporter instance.parentPath - Path of target node where to add the imported
subtree.session - uuidBehavior - Flag that governs how incoming UUIDs are handled.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.public void start()
throws RepositoryException
start in interface ImporterRepositoryExceptionpublic void startNode(Importer.NodeInfo nodeInfo, List<Importer.PropInfo> propInfos, NamePathResolver resolver) throws RepositoryException
startNode in interface ImporterpropInfos - list of PropInfo instancesresolver - NamePathResolver dealing with prefix mappings of current
context.RepositoryExceptionpublic void endNode(Importer.NodeInfo nodeInfo) throws RepositoryException
endNode in interface ImporterRepositoryExceptionpublic void end()
throws RepositoryException
end in interface ImporterRepositoryExceptionpublic void loggingOut(Session session)
SessionListenerSession is about to be 'closed' by
calling Session.logout(). At this
moment the session is still valid.loggingOut in interface SessionListenersession - SessionListener.loggingOut(Session)public void loggedOut(Session session)
SessionListenerSession has been 'closed' by
calling Session.logout().loggedOut in interface SessionListenersession - SessionListener.loggedOut(Session)Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.