Examples of ImportHandler


Examples of org.apache.jackrabbit.jcr2spi.xml.ImportHandler

        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());
    }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.xml.ImportHandler

    /**
     * @see javax.jcr.Session#importXML(String, java.io.InputStream, int)
     */
    public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, VersionException, InvalidSerializedDataException, LockException, RepositoryException {
        // NOTE: checks are performed by 'getImportContentHandler'
        ImportHandler handler = (ImportHandler) getImportContentHandler(parentAbsPath, uuidBehavior);
        try {
            SAXParserFactory factory = SAXParserFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setFeature(
                    "http://xml.org/sax/features/namespace-prefixes", false);
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.xml.ImportHandler

        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());
    }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.xml.ImportHandler

    /**
     * @see javax.jcr.Session#importXML(String, java.io.InputStream, int)
     */
    public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, VersionException, InvalidSerializedDataException, LockException, RepositoryException {
        // NOTE: checks are performed by 'getImportContentHandler'
        ImportHandler handler = (ImportHandler) getImportContentHandler(parentAbsPath, uuidBehavior);
        try {
            SAXParserFactory factory = SAXParserFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setFeature(
                    "http://xml.org/sax/features/namespace-prefixes", false);
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.xml.ImportHandler

    @Override
    @Nonnull
    public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior)
            throws RepositoryException {
        return new ImportHandler(parentAbsPath, sessionContext, uuidBehavior, false);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.xml.ImportHandler

    @Override
    public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws RepositoryException {
        ensureIsAlive();

        return new ImportHandler(parentAbsPath, sessionContext, uuidBehavior, true);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.xml.ImportHandler

    @Override
    @Nonnull
    public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior)
            throws RepositoryException {
        return new ImportHandler(parentAbsPath, sessionContext, uuidBehavior, false);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.xml.ImportHandler

    @Override
    public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws RepositoryException {
        ensureIsAlive();

        return new ImportHandler(parentAbsPath, sessionContext, uuidBehavior, true);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.xml.ImportHandler

    @Override
    @Nonnull
    public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior)
            throws RepositoryException {
        return new ImportHandler(getNode(parentAbsPath), sessionContext, uuidBehavior);
    }
View Full Code Here

Examples of org.dbwiki.data.io.ImportHandler

        // after being loaded in when we created new database above.
        // We should really deal with the target path separately, e.g. via extra text field
        XMLDocumentImportReader reader = new XMLDocumentImportReader(resource,
                            database.schema(),
                            path, user, false, false);
        ImportHandler importHandler = database.createImportHandler(con);
        reader.setImportHandler(importHandler);
        reader.start();
      }
    } catch (java.sql.SQLException sqlException) {
      con.rollback();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.