Subversion Repositories SmartDukaan

Rev

Rev 1961 | Rev 2027 | 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.HelperServiceClient;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoginServiceImpl extends RemoteServiceServlet implements LoginService {

    @Override
    public long authenticateUser(String username, String password) {
        long warehouseId = -1;
        try {
            HelperServiceClient hsc = new HelperServiceClient();
            in.shop2020.utils.HelperService.Client hClient = hsc.getClient();
            warehouseId = hClient.authenticateUser(username, password);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return warehouseId;
    }

}