Examples of GlobalNameMapper


Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

                return root;
            }
        };

        this.vf = new ValueFactoryImpl(root, new NamePathMapperImpl(
                new GlobalNameMapper(root.getTree("/"))));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

        return aggr.toArray(new Privilege[aggr.size()]);
    }

    @Test
    public void testGetPath() {
        NameMapper nameMapper = new GlobalNameMapper() {
            @Override
            protected Map<String, String> getNamespaceMap() {
                return Collections.singletonMap("jr", "http://jackrabbit.apache.org");
            }
        };
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

        return aggr.toArray(new Privilege[aggr.size()]);
    }

    @Test
    public void testGetPath() {
        NameMapper nameMapper = new GlobalNameMapper() {
            @Override
            protected Map<String, String> getNamespaceMap() {
                return Collections.singletonMap("jr", "http://jackrabbit.apache.org");
            }
        };
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

                return root;
            }
        };

        this.vf = new ValueFactoryImpl(null, new NamePathMapperImpl(
                new GlobalNameMapper() {
                    @Override
                    protected Map<String, String> getNamespaceMap() {
                        return Namespaces.getNamespaceMap(root.getTree("/"));
                    }
                }));
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

    @Before
    public void before() throws Exception {
        super.before();

        registerNamespace(TEST_PREFIX, TEST_URI);
        nameMapper = new GlobalNameMapper(root);
        npMapper = new NamePathMapperImpl(nameMapper);

        acMgr = getAccessControlManager(npMapper);
        valueFactory = new ValueFactoryImpl(root, npMapper);
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

    @Override
    public void contentChanged(@Nonnull NodeState root, @Nullable CommitInfo info) {
        try {
            if (previousRoot != null) {
                NamePathMapper namePathMapper = new NamePathMapperImpl(
                        new GlobalNameMapper(new ImmutableRoot(root)));

                Set<String> oakPropertyNames = Sets.newHashSet();
                for (String name : propertyNames) {
                    oakPropertyNames.add(namePathMapper.getJcrName(name));
                }
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

    @Override
    public void contentChanged(@Nonnull NodeState root, @Nullable CommitInfo info) {
        if (previousRoot != null) {
            NamePathMapper namePathMapper = new NamePathMapperImpl(
                    new GlobalNameMapper(new ImmutableRoot(root)));

            Set<String> oakPropertyNames = Sets.newHashSet();
            for (String name : propertyNames) {
                String oakName = namePathMapper.getOakNameOrNull(name);
                if (oakName == null) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

    @Before
    public void before() throws Exception {
        super.before();

        registerNamespace(TEST_PREFIX, TEST_URI);
        nameMapper = new GlobalNameMapper(root);
        npMapper = new NamePathMapperImpl(nameMapper);

        acMgr = getAccessControlManager(npMapper);
        valueFactory = new ValueFactoryImpl(root, npMapper);
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

            builder.setProperty(JCR_VALUECONSTRAINTS, strings, STRINGS);
        }
        // - jcr:defaultValues (UNDEFINED) protected multiple
        QValue[] qValues = def.getDefaultValues();
        if (qValues != null) {
            copyDefaultValues(qValues, builder, new GlobalNameMapper(prefixToUri));
        }
        // - jcr:multiple (BOOLEAN) protected mandatory
        builder.setProperty(JCR_MULTIPLE, def.isMultiple());
        // - jcr:availableQueryOperators (NAME) protected mandatory multiple
        List<String> operators = asList(def.getAvailableQueryOperators());
View Full Code Here

Examples of org.apache.jackrabbit.oak.namepath.GlobalNameMapper

            builder.setProperty(JCR_VALUECONSTRAINTS, strings, STRINGS);
        }
        // - jcr:defaultValues (UNDEFINED) protected multiple
        QValue[] qValues = def.getDefaultValues();
        if (qValues != null) {
            copyDefaultValues(qValues, builder, new GlobalNameMapper(prefixToUri));
        }
        // - jcr:multiple (BOOLEAN) protected mandatory
        builder.setProperty(JCR_MULTIPLE, def.isMultiple());
        // - jcr:availableQueryOperators (NAME) protected mandatory multiple
        List<String> operators = asList(def.getAvailableQueryOperators());
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.