@WebMethod public String getPassword(String email) throws JAXBException, IOException { SocialApp app = getSocialApp(); Users users = app.getUsers(); User user = users.getUser(email); return user.getPassword(); }
@WebMethod public User login(String email, String password) throws JAXBException, IOException { SocialApp app = getSocialApp(); Users users = app.getUsers(); return users.logon(email, password); }
@WebMethod public User getUser(String email) throws JAXBException, IOException { SocialApp app = getSocialApp(); Users users = app.getUsers(); return users.getUser(email); }