/* * This is part of Geomajas, a GIS framework, http://www.geomajas.org/. * * Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium. * * The program is available in open source according to the GNU Affero * General Public License. All contributions in this program are covered * by the Geomajas Contributors License Agreement. For full licensing * details, see LICENSE.txt in the project root. */ package org.geomajas.plugin.staticsecurity.client.event; import com.google.gwt.event.shared.GwtEvent; import org.geomajas.annotation.Api; /** * Event that reports when logging in was successful. * * @author Pieter De Graef * @since 1.7.1 * @deprecated use {@link org.geomajas.gwt.client.command.event.TokenChangedEvent} */ @Api @Deprecated public class LoginSuccessEvent extends GwtEvent<LoginHandler> { private final String token; public LoginSuccessEvent(String token) { super(); this.token = token; } @SuppressWarnings("unchecked") public Type getAssociatedType() { return LoginHandler.TYPE; } protected void dispatch(LoginHandler loginHandler) { loginHandler.onLoginSuccess(this); } /** * @return Get the user token that came back from the server. * @since 1.7.1 */ @Api public String getToken() { return token; } }