Subversion Repositories SmartDukaan

Rev

Rev 2427 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package in.shop2020.catalog.dashboard.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("login")
public interface LoginService extends RemoteService{
    /**
     * This method is called at the time of login to catalog dashboard (role = Utils.ROLE_STAGING)
     * and while pushing item to production (role = Utils.ROLE_PRODUCTION)
     * @param username
     * @param password
     * @param role
     * @return username if authentication is successful
     *      <br>null otherwise
     */
    String authenticateUser(String username, String password);
}