Examples of findUser()


Examples of org.apache.shale.usecases.logic.LogonLogic.findUser()

            return UNAUTHENTICATED;
        }

        // Locate the corresponding valid user (if any) and return it
        LogonLogic logic = (LogonLogic) getBean(LOGIC_BEAN);
        User user = logic.findUser(id);
        if (user == null) {
            return UNAUTHENTICATED;
        }

        // Register the newly authenticated user and return that outcome
View Full Code Here

Examples of org.apache.shale.usecases.logic.LogonLogic.findUser()

            }
        }

        // Validate duplicate username if creating
        LogonLogic logic = (LogonLogic) getBean(LOGIC_BEAN);
        if (state.isCreating() && (logic.findUser(state.getUsername()) != null)) {
            error(messages.getMessage("profile.duplicate"));
            okUsername = false;
        }

        // Return appropriate outcome on validation failures
View Full Code Here

Examples of org.apache.struts.apps.mailreader.dao.UserDatabase.findUser()

        }

        UserDatabase database = doGetUserDatabase();
        String username = doGet(form, USERNAME);
        try {
            if (database.findUser(username) != null) {
                errorUsernameUnique(username, errors);
            }
        }
        catch (ExpiredPasswordException e) {
            errorUsernameUnique(username, errors);
View Full Code Here

Examples of org.apache.struts.apps.mailreader.dao.UserDatabase.findUser()

        UserDatabase database = getDatabase();
        User user;

        try {
            user = database.findUser(username);
         }

        catch (ExpiredPasswordException e) {
            user = getUser(); // Just so that it is not null
        }
View Full Code Here

Examples of org.apache.struts.apps.mailreader.dao.UserDatabase.findUser()

        }

        UserDatabase database = doGetUserDatabase();
        String username = doGet(form, USERNAME);
        try {
            if (database.findUser(username) != null) {
                errorUsernameUnique(username, errors);
            }
        }
        catch (ExpiredPasswordException e) {
            errorUsernameUnique(username, errors);
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.findUser()

        createUser( USER_ALPACA, "Al 'Archiva' Paca" );

        assignRepositoryManagerRole( USER_ALPACA, "corporate" );

        UserManager userManager = securitySystem.getUserManager();
        User user = userManager.findUser( USER_ALPACA );

        AuthenticationResult result = new AuthenticationResult( true, USER_ALPACA, null );

        SecuritySession session = new DefaultSecuritySession( result, user );
        boolean isAuthorized =
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.findUser()

        assignRepositoryObserverRole( USER_ALPACA, "corporate" );

        httpServletRequestControl.expectAndReturn( request.getRemoteAddr(), "192.168.111.111" );

        UserManager userManager = securitySystem.getUserManager();
        User user = userManager.findUser( USER_ALPACA );

        AuthenticationResult result = new AuthenticationResult( true, USER_ALPACA, null );

        SecuritySession session = new DefaultSecuritySession( result, user );
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.findUser()

        createUser( USER_ALPACA, "Al 'Archiva' Paca" );

        assignRepositoryObserverRole( USER_ALPACA, "corporate" );

        UserManager userManager = securitySystem.getUserManager();
        User user = userManager.findUser( USER_ALPACA );

        AuthenticationResult result = new AuthenticationResult( true, USER_ALPACA, null );

        SecuritySession session = new DefaultSecuritySession( result, user );
        boolean isAuthorized =
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.findUser()

        throws Exception
    {
        createUser( USER_ALPACA, "Al 'Archiva' Paca" );

        UserManager userManager = securitySystem.getUserManager();
        User user = userManager.findUser( USER_ALPACA );

        AuthenticationResult result = new AuthenticationResult( true, USER_ALPACA, null );

        SecuritySession session = new DefaultSecuritySession( result, user );
        try
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.findUser()

        createUser( USER_ALPACA, "Al 'Archiva' Paca", PASSWORD );

        UserManager userManager = securitySystem.getUserManager();
        try
        {
            User user = userManager.findUser( USER_ALPACA );
            assertEquals( USER_ALPACA, user.getPrincipal() );
        }
        catch ( UserNotFoundException e )
        {
            fail( "User should exist in the database." );
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.