Revision 48461
Added by Panagiotis Kanakakis over 7 years ago
modules/uoa-goldoa-portal/branches/hibernate/src/main/java/eu/dnetlib/server/DataServiceImpl.java | ||
---|---|---|
138 | 138 |
|
139 | 139 |
@Override |
140 | 140 |
public User loginUser(String email, String password) throws PersonManagerException { |
141 |
return userManager.login(email, password); |
|
141 |
User user = userManager.login(email, password); |
|
142 |
System.out.println("SKATA " + user.getEmail()); |
|
143 |
return user; |
|
142 | 144 |
} |
143 | 145 |
|
144 | 146 |
@Override |
modules/uoa-goldoa-portal/branches/hibernate/src/main/java/eu/dnetlib/client/monitor/MonitorHelpTextsWidget.java | ||
---|---|---|
14 | 14 |
import com.google.gwt.event.dom.client.ClickEvent; |
15 | 15 |
import com.google.gwt.event.dom.client.ClickHandler; |
16 | 16 |
import com.google.gwt.i18n.client.DateTimeFormat; |
17 |
import com.google.gwt.user.client.Window; |
|
17 | 18 |
import com.google.gwt.user.client.rpc.AsyncCallback; |
18 | 19 |
import com.google.gwt.user.client.ui.*; |
19 | 20 |
import com.google.gwt.user.client.ui.Label; |
modules/uoa-goldoa-portal/branches/hibernate/src/main/java/eu/dnetlib/client/MyWidgetHelper.java | ||
---|---|---|
34 | 34 |
@Override |
35 | 35 |
public void onSuccess(Help help) { |
36 | 36 |
|
37 |
Window.alert(helpId); |
|
38 |
Window.alert(help.getText() + "/" + help.getId() + "/" + help); |
|
39 |
|
|
37 | 40 |
if(help!=null) { |
38 | 41 |
|
39 | 42 |
HTML html = new HTML(); |
modules/uoa-goldoa-portal/branches/hibernate/src/main/java/eu/dnetlib/client/user/UserLoginForm.java | ||
---|---|---|
26 | 26 |
import eu.dnetlib.client.widgets.FormFieldSet; |
27 | 27 |
import eu.dnetlib.goldoa.domain.PersonManagerException; |
28 | 28 |
import eu.dnetlib.goldoa.domain.User; |
29 |
import org.apache.commons.logging.Log; |
|
30 |
import org.apache.commons.logging.LogFactory; |
|
29 | 31 |
|
30 | 32 |
|
31 | 33 |
import java.util.logging.Level; |
... | ... | |
54 | 56 |
private DataServiceAsync dataService = GWT.create(DataService.class); |
55 | 57 |
private GoldOAConstants goldOAConstants = GWT.create(GoldOAConstants.class); |
56 | 58 |
|
59 |
|
|
57 | 60 |
private UserLoginForm() { |
58 | 61 |
|
59 | 62 |
userLoginFormPanel.addStyleName("content"); |
... | ... | |
113 | 116 |
} |
114 | 117 |
} else { |
115 | 118 |
// errorLabel.setText(goldOAConstants.loginErrorGeneral()); |
116 |
errorLabel.setText(throwable.getMessage() + " - " + throwable.getClass());
|
|
119 |
errorLabel.setText(throwable.getMessage() + " - " + throwable.getStackTrace());
|
|
117 | 120 |
errorLabel.setVisible(true); |
118 | 121 |
} |
119 | 122 |
|
modules/uoa-goldoa-portal/branches/hibernate/src/main/java/eu/dnetlib/client/user/UserRegistrationForm.java | ||
---|---|---|
20 | 20 |
import eu.dnetlib.client.widgets.PasswordTextBox; |
21 | 21 |
import eu.dnetlib.client.widgets.TextBox; |
22 | 22 |
import eu.dnetlib.goldoa.domain.*; |
23 |
import eu.dnetlib.goldoa.service.UserManagerImpl; |
|
24 |
import org.apache.commons.logging.Log; |
|
25 |
import org.apache.commons.logging.LogFactory; |
|
23 | 26 |
|
24 | 27 |
import java.util.ArrayList; |
25 | 28 |
import java.util.HashMap; |
... | ... | |
100 | 103 |
|
101 | 104 |
private GoldOAConstants goldOAConstants = GWT.create(GoldOAConstants.class); |
102 | 105 |
|
106 |
|
|
107 |
|
|
103 | 108 |
public UserRegistrationForm(final boolean edit) { |
104 | 109 |
|
105 | 110 |
|
Also available in: Unified diff