Rev 2427 | Rev 6788 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.catalog.dashboard.server;import in.shop2020.catalog.dashboard.client.LoginService;import in.shop2020.thrift.clients.HelperClient;import in.shop2020.utils.CatalogDashboardUser;import com.google.gwt.user.server.rpc.RemoteServiceServlet;@SuppressWarnings("serial")public class LoginServiceImpl extends RemoteServiceServlet implements LoginService {@Overridepublic String authenticateUser(String username, String password, int role) {try {HelperClient hsc = new HelperClient();in.shop2020.utils.HelperService.Client hClient = hsc.getClient();CatalogDashboardUser catalogUser = hClient.authenticateCatalogUser(username, password, role);return catalogUser.getUsername();} catch (Exception ex) {ex.printStackTrace();}return null;}}