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

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


        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

        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

        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.clock = checkNotNull(clock);
        this.sessionStats = new SessionStats(contentSession.toString(),
                contentSession.getAuthInfo(), clock);
        this.sessionCounters = sessionStats.getCounters();
        checkNotNull(statisticManager);
View Full Code Here

    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

     *         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

        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

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

    private PropertyIterator internalGetReferences(final String name, final boolean weak) throws RepositoryException {
        return perform(new NodeOperation<PropertyIterator>(dlg, "internalGetReferences") {
            @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

    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

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.