Package org.jasig.portal.layout.profile

Examples of org.jasig.portal.layout.profile.ProfileSelectionEvent


        SecurityContextHolder.getContext().setAuthentication(auth);
        when(request.getServletPath()).thenReturn("/Login");
        when(request.getParameter(LoginController.REQUESTED_PROFILE_KEY)).thenReturn("someProfileKey");
        filter.doFilter(request, response, filterChain);

        final ProfileSelectionEvent expectedEvent =
                new ProfileSelectionEvent(filter, "someProfileKey", person, request);
        verify(this.eventPublisher).publishEvent(expectedEvent);
    }
View Full Code Here


        when(identitySwapperManager.getOriginalUsername(session)).thenReturn(null);
        when(identitySwapperManager.getTargetUsername(session)).thenReturn("targetUsername");

        filter.doFilter(request, response, filterChain);

        final ProfileSelectionEvent expectedEvent =
                new ProfileSelectionEvent(filter, "targetProfileKey", person, request);
        verify(this.eventPublisher).publishEvent(expectedEvent);
    }
View Full Code Here

        final String requestedProfile = request.getParameter(LoginController.REQUESTED_PROFILE_KEY);

        if (requestedProfile != null) {

            final ProfileSelectionEvent event = new ProfileSelectionEvent(this, requestedProfile, person, request);
            this.eventPublisher.publishEvent(event);

        } else if(swapperProfile != null) {

            final ProfileSelectionEvent event = new ProfileSelectionEvent(this, swapperProfile, person, request);
            this.eventPublisher.publishEvent(event);

        } else {
            if (logger.isTraceEnabled()) {
                logger.trace("No requested or swapper profile requested so no profile selection event.");
View Full Code Here

TOP

Related Classes of org.jasig.portal.layout.profile.ProfileSelectionEvent

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.