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 Importer
RepositoryException
public void startNode(Importer.NodeInfo nodeInfo, List<Importer.PropInfo> propInfos, NamePathResolver resolver) throws RepositoryException
startNode
in interface Importer
propInfos
- list of PropInfo
instancesresolver
- NamePathResolver dealing with prefix mappings of current
context.RepositoryException
public void endNode(Importer.NodeInfo nodeInfo) throws RepositoryException
endNode
in interface Importer
RepositoryException
public void end() throws RepositoryException
end
in interface Importer
RepositoryException
public void loggingOut(Session session)
SessionListener
Session
is about to be 'closed' by
calling Session.logout()
. At this
moment the session is still valid.loggingOut
in interface SessionListener
session
- SessionListener.loggingOut(Session)
public void loggedOut(Session session)
SessionListener
Session
has been 'closed' by
calling Session.logout()
.loggedOut
in interface SessionListener
session
- SessionListener.loggedOut(Session)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.