Package org.apache.jackrabbit.oak.plugins.identifier

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


        this.root = root;
        this.options = options;

        this.tokenExpiration = options.getConfigValue(PARAM_TOKEN_EXPIRATION, Long.valueOf(DEFAULT_TOKEN_EXPIRATION));
        this.userManager = userConfiguration.getUserManager(root, NamePathMapper.DEFAULT);
        this.identifierManager = new IdentifierManager(root);
    }
View Full Code Here

        this.contentSession = checkNotNull(contentSession);
        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

        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

     *         nodes in the version storage.
     */
    protected IdentifierManager getIdentifierManager() {
        // FIXME: may need to revise this, because getVersionStorageTree()
        // is not the same Root as getWorkspaceRoot()
        return new IdentifierManager(getWorkspaceRoot());
    }
View Full Code Here

            @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

        if (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

        this.root = root;
        this.options = options;

        this.tokenExpiration = options.getConfigValue(PARAM_TOKEN_EXPIRATION, Long.valueOf(DEFAULT_TOKEN_EXPIRATION));
        this.userManager = userConfiguration.getUserManager(root, NamePathMapper.DEFAULT);
        this.identifierManager = new IdentifierManager(root);
    }
View Full Code Here

            protected Map<String, String> getNamespaceMap() {
                return Namespaces.getNamespaceMap(root.getTree("/"));
            }
        };
        this.session = new SessionImpl(this, namespaces);
        this.idManager = new IdentifierManager(root);
        this.namePathMapper = new NamePathMapperImpl(mapper, idManager);
        this.valueFactory = new ValueFactoryImpl(root.getBlobFactory(), namePathMapper);
    }
View Full Code Here

    //------------------------------------------------------------< private >---
    @Nonnull
    private IdentifierManager getIdentifierManager() {
        if (identifierManager == null) {
            identifierManager = new IdentifierManager(root);
        }
        return identifierManager;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager

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.