Bug 4228: Implemented login hint for more pages

This commit is contained in:
Steffen Schaefer committed 2017-08-17 14:42:46 +02:00
1 parent 4a5e2a48fb
commit 62f4b32273
5 files changed
+34

No files matched your search

@@ -11,4 +11,5 @@ public interface GenericAuthenticationLinkFactory {
String createPasswordResetLink();
String createMoreInfoAboutLoginLink();
}
@@ -0,0 +1,15 @@
package com.sap.sse.security.ui.authentication.generic.sapheader;
import com.google.gwt.user.client.Window;
import com.sap.sse.security.ui.authentication.AuthenticationManager;
import com.sap.sse.security.ui.authentication.generic.GenericAuthenticationLinkFactory;
import com.sap.sse.security.ui.authentication.login.LoginHintPopup;
public class FixedLoginHintPopup extends LoginHintPopup {
public FixedLoginHintPopup(AuthenticationManager authenticationManager, GenericAuthenticationLinkFactory linkFactory) {
super(authenticationManager, () -> Window.open(linkFactory.createMoreInfoAboutLoginLink(), "_blank", ""));
this.addStyleName(SAPHeaderWithAuthenticationResources.INSTANCE.css().usermanagement_view());
this.addStyleName(SAPHeaderWithAuthenticationResources.INSTANCE.css().fixed());
}
}