|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.xml.SessionImporter
public class SessionImporter
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 |
void |
loggingOut(Session session)
Called when a Session is about to be 'closed' by
calling |
void |
start()
|
void |
startNode(Importer.NodeInfo nodeInfo,
java.util.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 |
|---|
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.| Method Detail |
|---|
public void start()
throws RepositoryException
start in interface ImporterRepositoryException
public void startNode(Importer.NodeInfo nodeInfo,
java.util.List<Importer.PropInfo> propInfos,
NamePathResolver resolver)
throws RepositoryException
startNode in interface ImporterpropInfos - list of PropInfo instancesresolver - NamePathResolver dealing with prefix mappings of current
context.
RepositoryException
public void endNode(Importer.NodeInfo nodeInfo)
throws RepositoryException
endNode in interface ImporterRepositoryException
public void end()
throws RepositoryException
end in interface ImporterRepositoryExceptionpublic void loggingOut(Session session)
SessionListenerSession is about to be 'closed' by
calling Session.logout()
- Specified by:
loggingOut in interface SessionListener
- Parameters:
session - - See Also:
SessionListener.loggingOut(Session)
public void loggedOut(Session session)
SessionListenerSession has been 'closed' by
calling Session.logout()
- Specified by:
loggedOut in interface SessionListener
- Parameters:
session - - See Also:
SessionListener.loggedOut(Session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||