Examples of ProfileSelectionEvent


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

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

        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

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

        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

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

    {
        return panel;
    }

    private void fireProfileSelection(String profileName) {
        Console.MODULES.getEventBus().fireEvent(new ProfileSelectionEvent(profileName));
    }
View Full Code Here

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

                    Scheduler.get().scheduleDeferred(
                            new Scheduler.ScheduledCommand() {
                                @Override
                                public void execute() {
                                    Console.getEventBus().fireEvent(
                                            new ProfileSelectionEvent(event.getValue())
                                    );
                                }
                            });
                }
            }
View Full Code Here

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

    {
        return layout;
    }

    private void fireProfileSelection(String profileName) {
        Console.MODULES.getEventBus().fireEvent(new ProfileSelectionEvent(profileName));
    }
View Full Code Here

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

        if(!profileSelection.isSet())
        {
            String name = result.get(0).getName();
            System.out.println("Default profile selection: "+name);
            profileSelection.setName(name);
            getEventBus().fireEvent(new ProfileSelectionEvent(name));
        }
    }
View Full Code Here

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

            public void onValueChange(final ValueChangeEvent<String> event) {

                Scheduler.get().scheduleEntry(new Scheduler.ScheduledCommand() {
                    @Override
                    public void execute() {
                        Console.MODULES.getEventBus().fireEvent(new ProfileSelectionEvent(event.getValue()));
                    }
                });
            }
        });
View Full Code Here

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

                    Scheduler.get().scheduleDeferred(
                            new Scheduler.ScheduledCommand() {
                                @Override
                                public void execute() {
                                    Console.getEventBus().fireEvent(
                                            new ProfileSelectionEvent(event.getValue())
                                    );
                                }
                            });
                }
            }
View Full Code Here

Examples of org.jboss.as.console.client.domain.events.ProfileSelectionEvent

    public Widget asWidget() {
        return panel;
    }

    private void fireProfileSelection(String name) {
       Console.MODULES.getEventBus().fireEvent(new ProfileSelectionEvent(name));
    }
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.