Class SessionImporter
- java.lang.Object
-
- 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
Constructors Constructor Description SessionImporter(Path parentPath, SessionImpl session, SessionItemStateManager stateManager, int uuidBehavior)Creates a newWorkspaceImporterinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()voidendNode(Importer.NodeInfo nodeInfo)voidloggedOut(Session session)Called when aSessionhas been 'closed' by calling.Session.logout()voidloggingOut(Session session)Called when aSessionis about to be 'closed' by calling.Session.logout()voidstart()voidstartNode(Importer.NodeInfo nodeInfo, List<Importer.PropInfo> propInfos, NamePathResolver resolver)
-
-
-
Constructor Detail
-
SessionImporter
public SessionImporter(Path parentPath, SessionImpl session, SessionItemStateManager stateManager, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException
Creates a newWorkspaceImporterinstance.- 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 atparentPathor if the current session is not granted read access.ConstraintViolationException- If the node atparentPathis protected.VersionException- If the node atparentPathis 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:
startin interfaceImporter- Throws:
RepositoryException
-
startNode
public void startNode(Importer.NodeInfo nodeInfo, List<Importer.PropInfo> propInfos, NamePathResolver resolver) throws RepositoryException
- Specified by:
startNodein interfaceImporterpropInfos- list ofPropInfoinstancesresolver- NamePathResolver dealing with prefix mappings of current context.- Throws:
RepositoryException
-
endNode
public void endNode(Importer.NodeInfo nodeInfo) throws RepositoryException
- Specified by:
endNodein interfaceImporter- Throws:
RepositoryException
-
end
public void end() throws RepositoryException- Specified by:
endin interfaceImporter- Throws:
RepositoryException
-
loggingOut
public void loggingOut(Session session)
Description copied from interface:SessionListenerCalled when aSessionis about to be 'closed' by calling. At this moment the session is still valid.Session.logout()- Specified by:
loggingOutin interfaceSessionListener- Parameters:
session-- See Also:
SessionListener.loggingOut(Session)
-
loggedOut
public void loggedOut(Session session)
Description copied from interface:SessionListenerCalled when aSessionhas been 'closed' by calling.Session.logout()- Specified by:
loggedOutin interfaceSessionListener- Parameters:
session-- See Also:
SessionListener.loggedOut(Session)
-
-