Search in sources :

Example 1 with SessionImporter

use of org.apache.jackrabbit.jcr2spi.xml.SessionImporter in project jackrabbit by apache.

the class SessionImpl method getImportContentHandler.

/**
     * @see Session#getImportContentHandler(String, int)
     */
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException {
    checkSupportedOption(Repository.LEVEL_2_SUPPORTED);
    checkIsAlive();
    Path parentPath = getQPath(parentAbsPath);
    // NOTE: check if path corresponds to Node and is writable is performed
    // within the SessionImporter.
    Importer importer = new SessionImporter(parentPath, this, itemStateManager, uuidBehavior);
    return new ImportHandler(importer, getNamespaceResolver(), workspace.getNamespaceRegistry(), getNameFactory(), getPathFactory());
}
Also used : Path(org.apache.jackrabbit.spi.Path) ImportHandler(org.apache.jackrabbit.jcr2spi.xml.ImportHandler) Importer(org.apache.jackrabbit.jcr2spi.xml.Importer) SessionImporter(org.apache.jackrabbit.jcr2spi.xml.SessionImporter) SessionImporter(org.apache.jackrabbit.jcr2spi.xml.SessionImporter)

Aggregations

ImportHandler (org.apache.jackrabbit.jcr2spi.xml.ImportHandler)1 Importer (org.apache.jackrabbit.jcr2spi.xml.Importer)1 SessionImporter (org.apache.jackrabbit.jcr2spi.xml.SessionImporter)1 Path (org.apache.jackrabbit.spi.Path)1