Examples of RestrictionDefinitionImpl


Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    public RestrictionProviderImpl() {
        super(supportedRestrictions());
    }

    private static Map<String, RestrictionDefinition> supportedRestrictions() {
        RestrictionDefinition glob = new RestrictionDefinitionImpl(REP_GLOB, Type.STRING, false);
        RestrictionDefinition nts = new RestrictionDefinitionImpl(REP_NT_NAMES, Type.NAMES, false);
        return ImmutableMap.of(glob.getName(), glob, nts.getName(), nts);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    }

    private final class TestRestrictionProvider extends AbstractRestrictionProvider {

        private TestRestrictionProvider(String name, Type type, boolean isMandatory) {
            super(Collections.singletonMap(name, new RestrictionDefinitionImpl(name, type, isMandatory)));
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    @Nonnull
    @Override
    public Set<RestrictionDefinition> getSupportedRestrictions(@Nullable String oakPath) {
        Set<RestrictionDefinition> definitions = new HashSet<RestrictionDefinition>(base.getSupportedRestrictions(oakPath));
        definitions.add(new RestrictionDefinitionImpl(REP_NODE_PATH, Type.PATH, true));
        return definitions;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    public RestrictionProviderImpl() {
        super(supportedRestrictions());
    }

    private static Map<String, RestrictionDefinition> supportedRestrictions() {
        RestrictionDefinition glob = new RestrictionDefinitionImpl(REP_GLOB, Type.STRING, false);
        RestrictionDefinition nts = new RestrictionDefinitionImpl(REP_NT_NAMES, Type.NAMES, false);
        return ImmutableMap.of(glob.getName(), glob, nts.getName(), nts);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    }

    private final class TestRestrictionProvider extends AbstractRestrictionProvider {

        private TestRestrictionProvider(String name, Type type, boolean isMandatory) {
            super(Collections.singletonMap(name, new RestrictionDefinitionImpl(name, type, isMandatory)));
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    }

    private final class TestRestrictionProvider extends AbstractRestrictionProvider {

        private TestRestrictionProvider(String name, Type type, boolean isMandatory) {
            super(Collections.singletonMap(name, new RestrictionDefinitionImpl(name, type, isMandatory)));
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    public RestrictionProviderImpl() {
        super(supportedRestrictions());
    }

    private static Map<String, RestrictionDefinition> supportedRestrictions() {
        RestrictionDefinition glob = new RestrictionDefinitionImpl(REP_GLOB, Type.STRING, false);
        RestrictionDefinition nts = new RestrictionDefinitionImpl(REP_NT_NAMES, Type.NAMES, false);
        RestrictionDefinition pfxs = new RestrictionDefinitionImpl(REP_PREFIXES, Type.STRINGS, false);
        return ImmutableMap.of(glob.getName(), glob, nts.getName(), nts, pfxs.getName(), pfxs);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    }

    private final class TestRestrictionProvider extends AbstractRestrictionProvider {

        private TestRestrictionProvider(String name, Type type, boolean isMandatory) {
            super(Collections.singletonMap(name, new RestrictionDefinitionImpl(name, type, isMandatory)));
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    @Nonnull
    @Override
    public Set<RestrictionDefinition> getSupportedRestrictions(@Nullable String oakPath) {
        Set<RestrictionDefinition> definitions = new HashSet<RestrictionDefinition>(base.getSupportedRestrictions(oakPath));
        definitions.add(new RestrictionDefinitionImpl(REP_NODE_PATH, Type.PATH, true));
        return definitions;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinitionImpl

    public RestrictionProviderImpl() {
        super(supportedRestrictions());
    }

    private static Map<String, RestrictionDefinition> supportedRestrictions() {
        RestrictionDefinition glob = new RestrictionDefinitionImpl(REP_GLOB, Type.STRING, false);
        RestrictionDefinition nts = new RestrictionDefinitionImpl(REP_NT_NAMES, Type.NAMES, false);
        RestrictionDefinition pfxs = new RestrictionDefinitionImpl(REP_PREFIXES, Type.STRINGS, false);
        return ImmutableMap.of(glob.getName(), glob, nts.getName(), nts, pfxs.getName(), pfxs);
    }
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.