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

Examples of org.apache.jackrabbit.oak.spi.security.user.UserConfig


            providers.add(new TypeValidatorProvider());
            providers.add(new ConflictValidatorProvider());
            providers.add(new PermissionValidatorProvider());
            providers.add(new AccessControlValidatorProvider());
            // FIXME: retrieve from user context
            providers.add(new UserValidatorProvider(new UserConfig("admin")));
            providers.add(new PrivilegeValidatorProvider());
            return new CompositeValidatorProvider(providers);
        }
View Full Code Here


    @Before
    public void setUp() throws Exception {
        contentSession = createAdminSession();
        root = contentSession.getLatestRoot();

        defaultConfig = new UserConfig("admin");
        defaultUserPath = defaultConfig.getConfigValue(UserConfig.PARAM_USER_PATH, UserConstants.DEFAULT_USER_PATH);
        defaultGroupPath = defaultConfig.getConfigValue(UserConfig.PARAM_GROUP_PATH, UserConstants.DEFAULT_GROUP_PATH);

        customOptions = new HashMap<String, Object>();
        customOptions.put(UserConfig.PARAM_GROUP_PATH, customGroupPath);
View Full Code Here

    }

    private UserProvider createUserProvider(int defaultDepth) {
        Map<String, Object> options = new HashMap<String, Object>(customOptions);
        options.put(UserConfig.PARAM_DEFAULT_DEPTH, defaultDepth);
        return new UserProviderImpl(contentSession, root, new UserConfig("admin", options, Collections.<AuthorizableAction>emptySet()));
    }
View Full Code Here

    private final UserConfig config;

    // TODO add proper configuration
    public UserContextImpl() {
        this(new UserConfig("admin"));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.security.user.UserConfig

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.