Package org.apache.jackrabbit.oak.jcr.value

Examples of org.apache.jackrabbit.oak.jcr.value.ValueFactoryImpl


    SessionImpl(GlobalContext globalContext, ContentSession contentSession)
            throws RepositoryException {
        this.globalContext = globalContext;
        this.contentSession = contentSession;
        this.valueFactory = new ValueFactoryImpl(contentSession.getCoreValueFactory(), namePathMapper);
        this.nsreg = new NamespaceRegistryImpl(contentSession);
        this.workspace = new WorkspaceImpl(sessionContext, this.nsreg);
        this.root = contentSession.getCurrentRoot();
    }
View Full Code Here


        assert contentSession != null;

        this.repository = repository;
        this.observationTimer = observationTimer;
        this.contentSession = contentSession;
        this.valueFactory = new ValueFactoryImpl(contentSession.getCoreValueFactory(), namePathMapper);
        this.workspace = new WorkspaceImpl(this);
        this.session = new SessionImpl(this);
        this.root = contentSession.getCurrentRoot();
        this.conflictHandler = new AnnotatingConflictHandler(contentSession.getCoreValueFactory());
    }
View Full Code Here

        assert contentSession != null;

        this.repository = repository;
        this.executor = executor;
        this.contentSession = contentSession;
        this.valueFactory = new ValueFactoryImpl(contentSession.getCoreValueFactory(), namePathMapper);
        this.workspace = new WorkspaceImpl(this);
        this.session = new SessionImpl(this);
        this.root = contentSession.getCurrentRoot();
        this.conflictHandler = new AnnotatingConflictHandler(contentSession.getCoreValueFactory());
        this.autoRefresh = autoRefresh;
View Full Code Here

        String oakPath = sessionDelegate.getOakPathOrThrow(absPath);
        // TODO query nodes should be of type nt:query
        String parent = PathUtils.getParentPath(oakPath);
        String nodeName = PathUtils.getName(oakPath);
        NodeDelegate parentNode = sessionDelegate.getNode(parent);
        ValueFactoryImpl vf = sessionDelegate.getValueFactory();
        if (parentNode == null) {
            throw new PathNotFoundException("The specified path does not exist: " + parent);
        }
        NodeDelegate node = parentNode.addChild(nodeName);
        if (node == null) {
            throw new ItemExistsException("Node already exists: " + absPath);
        }
        node.setProperty("statement", vf.getCoreValue(vf.createValue(statement)));
        node.setProperty("language", vf.getCoreValue(vf.createValue(language)));
        NodeImpl n = new NodeImpl(node);
        n.setPrimaryType(NodeType.NT_QUERY);
        storedQueryPath = oakPath;
        return n;
    }
View Full Code Here

        this.root = contentSession.getLatestRoot();
        this.conflictHandler = new AnnotatingConflictHandler(contentSession.getCoreValueFactory());
        this.autoRefresh = autoRefresh;
        this.idManager = new IdentifierManager(contentSession.getQueryEngine(), root);
        this.namePathMapper = new NamePathMapperImpl(new SessionNameMapper(), idManager);
        this.valueFactory = new ValueFactoryImpl(contentSession.getCoreValueFactory(), namePathMapper);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.jcr.value.ValueFactoryImpl

Copyright © 2018 www.massapicom. 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.