mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 16:51:07 +00:00
Initial implementation to handle unauthenticated state in
LeaderboardEditing
This commit is contained in:
1 parent
b474987444
commit
35a4ffc735
7 files changed
+156
-7
No files matched your search
+10
@@ -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);
|
||||
}
|
||||
}
|
||||
+18
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user