Subversion Repositories SmartDukaan

Rev

Rev 2359 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2359 Rev 2427
Line 3... Line 3...
3
import com.google.gwt.user.client.rpc.RemoteService;
3
import com.google.gwt.user.client.rpc.RemoteService;
4
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
4
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
5
 
5
 
6
@RemoteServiceRelativePath("login")
6
@RemoteServiceRelativePath("login")
7
public interface LoginService extends RemoteService{
7
public interface LoginService extends RemoteService{
-
 
8
    /**
-
 
9
     * This method is called at the time of login to catalog dashboard (role = Utils.ROLE_STAGING)
-
 
10
     * and while pushing item to production (role = Utils.ROLE_PRODUCTION)
-
 
11
     * @param username
-
 
12
     * @param password
-
 
13
     * @param role
-
 
14
     * @return username if authentication is successful
-
 
15
     *      <br>null otherwise
-
 
16
     */
8
    String authenticateUser(String username, String password, int role);
17
    String authenticateUser(String username, String password, int role);
9
}
18
}