Package com.supinfo.analytics.entities

Examples of com.supinfo.analytics.entities.User


    @GET @Path("/login") @Produces(MediaType.APPLICATION_JSON)
    public Map<String, Object> login(
            @QueryParam("e") String email,
            @QueryParam("p") String password)
    {
        User u = userService.authenticateUser(email, password);
        if(u != null)
        {
            HashMap<String, Object> results = new HashMap<String, Object>();
            results.put("token", u.getToken());
            results.put("id", u.getId());
           
            return results;
        }
       
        return null;
View Full Code Here


   
    private String email;
    private String password;
   
    public String login() {
        User userTmp = userService.authenticateUser(email, password);
        String result = null;
       
        if(userTmp != null) {
           
            this.loginBean.setLoggedUser(userTmp);
View Full Code Here

TOP

Related Classes of com.supinfo.analytics.entities.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.