Examples of IdentifierManager


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

                }
                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

        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

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

        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

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

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

                Set<String> propertyOakPaths = idManager.getReferences(weak, dlg.getTree(), 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

        this.workspace = new WorkspaceImpl(this);
        this.session = new SessionImpl(this);
        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

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

    AuthorizableBaseProvider(ContentSession contentSession, Root root, UserConfig config) {
        this.valueFactory = contentSession.getCoreValueFactory();
        this.queryEngine = contentSession.getQueryEngine();
        this.root = root;
        this.identifierManager = new IdentifierManager(queryEngine, root);
    }
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

    //------------------------------------------------------------< private >---
    @Nonnull
    private IdentifierManager getIdentifierManager() {
        if (identifierManager == null) {
            identifierManager = new IdentifierManager(root);
        }
        return identifierManager;
    }
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.