Package org.apache.jackrabbit.oak.spi.security.authorization

Examples of org.apache.jackrabbit.oak.spi.security.authorization.OpenAccessControlConfiguration


    }

    @Nonnull
    @Override
    public Iterable<? extends SecurityConfiguration> getConfigurations() {
        return ImmutableList.of(new OpenAuthenticationConfiguration(), new OpenAccessControlConfiguration(), new OpenPrivilegeConfiguration());
    }
View Full Code Here


    @Override
    public <T> T getConfiguration(Class<T> configClass) {
        if (AuthenticationConfiguration.class == configClass) {
            return (T) new OpenAuthenticationConfiguration();
        } else if (AccessControlConfiguration.class == configClass) {
            return (T) new OpenAccessControlConfiguration();
        } else if (UserConfiguration.class == configClass) {
            throw new UnsupportedOperationException();
        } else if (PrincipalConfiguration.class == configClass) {
            throw new UnsupportedOperationException();
        } else if (PrivilegeConfiguration.class == configClass) {
View Full Code Here

            @Override
            public Iterable<? extends SecurityConfiguration> getConfigurations() {
                List<SecurityConfiguration> configs = new ArrayList<SecurityConfiguration>();
                for (SecurityConfiguration sc : super.getConfigurations()) {
                    if (sc instanceof AccessControlConfiguration) {
                        configs.add(new OpenAccessControlConfiguration());
                    } else {
                        configs.add(sc);
                    }
                }
                return configs;
            }

            @Nonnull
            @Override
            public <T> T getConfiguration(Class<T> configClass) {
                if (AccessControlConfiguration.class == configClass) {
                    return (T) new OpenAccessControlConfiguration();
                } else {
                    return super.getConfiguration(configClass);
                }
            }
        };
View Full Code Here

    protected SecurityProvider getSecurityProvider() {
        return new SecurityProviderImpl() {
            @Nonnull
            @Override
            public AccessControlConfiguration getAccessControlConfiguration() {
                return new OpenAccessControlConfiguration();
            }
        };
    }
View Full Code Here

    }

    @Nonnull
    @Override
    public AccessControlConfiguration getAccessControlConfiguration() {
        return new OpenAccessControlConfiguration();
    }
View Full Code Here

    }

    @Nonnull
    @Override
    public AccessControlConfiguration getAccessControlConfiguration() {
        return new OpenAccessControlConfiguration();
    }
View Full Code Here

    // TODO: review if this constructor really makes sense and cannot be replaced.
    public RootImpl(NodeStore store) {
        this.store = checkNotNull(store);
        this.subject = new Subject(true, Collections.singleton(SystemPrincipal.INSTANCE), Collections.<Object>emptySet(), Collections.<Object>emptySet());
        this.accConfiguration = new OpenAccessControlConfiguration();
        this.indexProvider = new CompositeQueryIndexProvider();
        refresh();
    }
View Full Code Here

    @CheckForNull
    public Root getRoot() {
        if (nodeStore != null) {
            Subject subject = new Subject(true, Collections.singleton(SystemPrincipal.INSTANCE), Collections.<Object>emptySet(), Collections.<Object>emptySet());
            AccessControlConfiguration acConfiguration = new OpenAccessControlConfiguration();
            return new RootImpl(nodeStore, workspaceName, subject, acConfiguration, indexProvider);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.security.authorization.OpenAccessControlConfiguration

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.