Examples of UserManagerImpl


Examples of org.apache.jackrabbit.core.security.user.UserManagerImpl

     * @throws RepositoryException
     */
    @Override
    protected UserManagerImpl createUserManager(SessionImpl session) throws RepositoryException {
        UserManagerConfig umc = getConfig().getUserManagerConfig();
        UserManagerImpl umgr;
        // in contrast to the DefaultSecurityManager users are not retrieved
        // from a dedicated workspace: the system session of each workspace must
        // get a system user manager that asserts the existence of the admin user.
        if (umc != null) {
            Class<?>[] paramTypes = new Class[] {
                    SessionImpl.class,
                    String.class,
                    Properties.class,
                    MembershipCache.class};
            umgr = (UserPerWorkspaceUserManager) umc.getUserManager(UserPerWorkspaceUserManager.class,
                    paramTypes, session, adminId, umc.getParameters(), getMembershipCache(session));
        } else {
            umgr = new UserPerWorkspaceUserManager(session, adminId, null, getMembershipCache(session));
        }

        if (umc != null && !(session instanceof SystemSession)) {
            AuthorizableAction[] actions = umc.getAuthorizableActions();
            umgr.setAuthorizableActions(actions);
        }
        return umgr;
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.user.UserManagerImpl

            return systemUserManager;
        } else if (session instanceof SessionImpl) {
            String workspaceName = systemSession.getWorkspace().getName();
            try {
                SessionImpl sImpl = (SessionImpl) session;
                UserManagerImpl uMgr;
                if (workspaceName.equals(sImpl.getWorkspace().getName())) {
                    uMgr = createUserManager(sImpl);
                } else {
                    SessionImpl s = (SessionImpl) sImpl.createSession(workspaceName);
                    uMgr = createUserManager(s);
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.security.user.UserManagerImpl

    }

    @Override
    @Nonnull
    public UserManager getUserManager() throws RepositoryException {
        return TODO.unimplemented().returnValue(new UserManagerImpl(
                dlg, new UserManagerConfig("admin", null, null)));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.security.user.UserManagerImpl

    }

    UserManager getUserManager() throws UnsupportedRepositoryOperationException {
        // FIXME
        UserContext ctx = new UserContextImpl();
        return TODO.unimplemented().returnValue(new UserManagerImpl(getSession(), getNamePathMapper(), ctx.getUserProvider(contentSession, root), ctx.getMembershipProvider(contentSession, root), ctx.getConfig()));
    }
View Full Code Here

Examples of org.apache.jetspeed.security.impl.UserManagerImpl

        AuthenticationProviderProxy atnProviderProxy = new AuthenticationProviderProxyImpl(atnProviders,
                "DefaultAuthenticator");

        // Need to override the AbstractSecurityTestcase behavior.
        securityProvider = new SecurityProviderImpl(atnProviderProxy, rsh, gsh, smh);
        ums = new UserManagerImpl(securityProvider);
        gms = new GroupManagerImpl(securityProvider);
        rms = new RoleManagerImpl(securityProvider);

        // Login module.
        new LoginModuleProxyImpl(ums);
View Full Code Here

Examples of org.apache.jetspeed.security.impl.UserManagerImpl

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ums = new UserManagerImpl(securityProvider, new GeneralizationHierarchyResolver(), new GeneralizationHierarchyResolver());
    }
View Full Code Here

Examples of org.apache.jetspeed.security.impl.UserManagerImpl

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ums = new UserManagerImpl(securityProvider, new AggregationHierarchyResolver(),
                new AggregationHierarchyResolver());
    }
View Full Code Here

Examples of org.apache.jetspeed.security.impl.UserManagerImpl

        AuthenticationProviderProxy atnProviderProxy = new AuthenticationProviderProxyImpl(atnProviders,
                "DefaultAuthenticator");

        // Need to override the AbstractSecurityTestcase behavior.
        securityProvider = new SecurityProviderImpl(atnProviderProxy, rsh, gsh, smh);
        ums = new UserManagerImpl(securityProvider);
        gms = new GroupManagerImpl(securityProvider);
        rms = new RoleManagerImpl(securityProvider);

        // Login module.
        new LoginModuleProxyImpl(ums);
View Full Code Here

Examples of org.apache.jetspeed.security.impl.UserManagerImpl

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ums = new UserManagerImpl(securityProvider, new GeneralizationHierarchyResolver(), new GeneralizationHierarchyResolver());
    }
View Full Code Here

Examples of org.apache.jetspeed.security.impl.UserManagerImpl

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ums = new UserManagerImpl(securityProvider, new AggregationHierarchyResolver(),
                new AggregationHierarchyResolver());
    }
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.