Initial implementation to handle unauthenticated state in

LeaderboardEditing
This commit is contained in:
Steffen Schäfer committed 2016-02-04 14:12:32 +01:00
1 parent b474987444
commit 35a4ffc735
7 files changed
+156 -7

No files matched your search

@@ -0,0 +1,10 @@
package com.sap.sse.security.ui.authentication.decorator;
import com.google.web.bindery.event.shared.EventBus;
public class FlyoutBasedAuthorizedContentDecorator extends AuthorizedContentDecorator {
public FlyoutBasedAuthorizedContentDecorator(EventBus eventBus, NotLoggedInView notLoggedInView) {
super(new FlyoutNotLoggedInPresenter(eventBus), notLoggedInView);
}
}
@@ -0,0 +1,18 @@
package com.sap.sse.security.ui.authentication.decorator;
import com.google.web.bindery.event.shared.EventBus;
import com.sap.sse.security.ui.authentication.AuthenticationRequestEvent;
public class FlyoutNotLoggedInPresenter implements NotLoggedInPresenter {
private final EventBus eventBus;
public FlyoutNotLoggedInPresenter(EventBus eventBus) {
this.eventBus = eventBus;
}
@Override
public void doTriggerLoginForm() {
eventBus.fireEvent(new AuthenticationRequestEvent());
}
}