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(javax.jcr.Session session)
Called when a
Session has been 'closed' by
calling . |
void |
loggingOut(javax.jcr.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 javax.jcr.PathNotFoundException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
WorkspaceImporter instance.parentPath - Path of target node where to add the imported
subtree.session - uuidBehavior - Flag that governs how incoming UUIDs are handled.javax.jcr.PathNotFoundException - If no node exists at parentPath
or if the current session is not granted read access.javax.jcr.nodetype.ConstraintViolationException - If the node at parentPath
is protected.javax.jcr.version.VersionException - If the node at parentPath is not
checked-out.javax.jcr.lock.LockException - If a lock prevents the addition of the subtree.javax.jcr.RepositoryException - If another error occurs.public void start()
throws javax.jcr.RepositoryException
public void startNode(Importer.NodeInfo nodeInfo, List<Importer.PropInfo> propInfos, NamePathResolver resolver) throws javax.jcr.RepositoryException
public void endNode(Importer.NodeInfo nodeInfo) throws javax.jcr.RepositoryException
public void end()
throws javax.jcr.RepositoryException
public void loggingOut(javax.jcr.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(javax.jcr.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.