Examples of IdentifierManager


Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

    private Tree getTokenTree(TokenInfo info) {
        String token = info.getToken();
        int pos = token.indexOf('_');
        String nodeId = (pos == -1) ? token : token.substring(0, pos);
        return new IdentifierManager(root).getTree(nodeId);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

    final IdentifierManager identifierManager;

    AuthorizableBaseProvider(@Nonnull Root root, @Nonnull ConfigurationParameters config) {
        this.root = checkNotNull(root);
        this.config = checkNotNull(config);
        this.identifierManager = new IdentifierManager(root);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

        x.addChild("x1");
        y.addChild("y1");
        z.addChild("z1").setProperty(JcrConstants.JCR_UUID, UUID_Z1);
        root.commit();

        identifierManager = new IdentifierManager(root);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

                && sessionContext.getWorkspace().getLockManager().isLocked(absPath)) {
            throw new LockException("Target node is locked.");
        }
        ntTypesRoot = root.getTree(NODE_TYPES_PATH);
        accessManager = sessionContext.getAccessManager();
        baseStateIdManager = new IdentifierManager(initialRoot);
        currentStateIdManager = new IdentifierManager(root);
        effectiveNodeTypeProvider = sessionContext.getWorkspace().getNodeTypeManager();
        definitionProvider = sessionContext.getWorkspace().getNodeTypeManager();
        // TODO: end

        refTracker = new ReferenceChangeTracker();
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

     */
    public SessionDelegate(@Nonnull ContentSession contentSession, RefreshStrategy refreshStrategy) {
        this.contentSession = checkNotNull(contentSession);
        this.refreshStrategy = checkNotNull(refreshStrategy);
        this.root = contentSession.getLatestRoot();
        this.idManager = new IdentifierManager(root);
        this.sessionStats = new SessionStats(this);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

    private PropertyIterator internalGetReferences(final String name, final boolean weak) throws RepositoryException {
        return perform(new NodeOperation<PropertyIterator>(dlg) {
            @Override
            public PropertyIterator perform() throws InvalidItemStateException {
                IdentifierManager idManager = sessionDelegate.getIdManager();

                Iterable<String> propertyOakPaths = idManager.getReferences(weak, node.getTree(), name); // TODO: oak name?
                Iterable<Property> properties = Iterables.transform(
                        propertyOakPaths,
                        new Function<String, Property>() {
                            @Override
                            public Property apply(String oakPath) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

            @Nonnull RefreshStrategy refreshStrategy,
            @Nonnull StatisticManager statisticManager) {
        this.contentSession = checkNotNull(contentSession);
        this.refreshStrategy = checkNotNull(refreshStrategy);
        this.root = contentSession.getLatestRoot();
        this.idManager = new IdentifierManager(root);
        this.sessionStats = new SessionStats(this);
        checkNotNull(statisticManager);
        readCounter = statisticManager.getCounter(SESSION_READ_COUNTER);
        readDuration = statisticManager.getCounter(SESSION_READ_DURATION);
        writeCounter = statisticManager.getCounter(SESSION_WRITE_COUNTER);
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

                }
                return (versionablePath == null) ? null : root.getTree(versionablePath);
            } else if (VersionConstants.NT_CONFIGURATION.equals(ntName)) {
                String rootId = TreeUtil.getString(t, VersionConstants.JCR_ROOT);
                if (rootId != null) {
                    versionablePath = new IdentifierManager(root).getPath(rootId);
                    return (versionablePath == null) ? null : root.getTree(versionablePath);
                } else {
                    log.error("Missing mandatory property jcr:root with configuration node.");
                    return null;
                }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

        definitionProvider = wsp.getNodeTypeManager();
        ntTypesRoot = root.getTree(NODE_TYPES_PATH);

        accessManager = sessionContext.getAccessManager();

        currentStateIdManager = new IdentifierManager(root);
        baseStateIdManager = new IdentifierManager(sd.getContentSession().getLatestRoot());

        refTracker = new ReferenceChangeTracker();

        parents = new Stack<Tree>();
        parents.push(importTargetTree);
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

        this.securityProvider = checkNotNull(securityProvider);
        this.refreshStrategy = checkNotNull(refreshStrategy);
        this.threadSaveCount = checkNotNull(threadSaveCount);
        this.sessionSaveCount = getThreadSaveCount();
        this.root = contentSession.getLatestRoot();
        this.idManager = new IdentifierManager(root);
        this.sessionStats = new SessionStats(this);
        this.clock = checkNotNull(clock);
        this.loginTime = clock.getTime();
        this.accessTime = loginTime;
        checkNotNull(statisticManager);
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.