public class ServicesBO extends Object
Constructor and Description |
---|
ServicesBO() |
Modifier and Type | Method and Description |
---|---|
boolean |
changePassword(String login,
String hash,
String password) |
boolean |
checkRecoveryPassword(String login,
String hash)
Method that checks that the hash is correct to change the password
|
boolean |
createUSer(String sex,
String alias,
String name,
String surname,
long phone,
String email,
String password,
String level,
String laboralTimesheet,
String nolaboralTimesheet)
Method that creates a user into the db
|
String |
getEvents(int sport,
String start,
String end)
Service to get the events to render in the calendar
|
UserTO |
login(String email,
String password,
org.hibernate.Session session)
Method description
|
boolean |
recoveryPassword(String email)
Method that create a HASH to recover the password
|
boolean |
updateUser(String id,
String sex,
String alias,
String name,
String surname,
long phone,
String email,
String password,
String level,
String laboralTimesheet,
String nolaboralTimesheet) |
public boolean checkRecoveryPassword(String login, String hash)
login
- hash
-
public boolean recoveryPassword(String email)
email
-
public boolean createUSer(String sex, String alias, String name, String surname, long phone, String email, String password, String level, String laboralTimesheet, String nolaboralTimesheet)
sex
- alias
- name
- surname
- phone
- email
- password
-
public boolean updateUser(String id, String sex, String alias, String name, String surname, long phone, String email, String password, String level, String laboralTimesheet, String nolaboralTimesheet)
public String getEvents(int sport, String start, String end)
Copyright © 2015. All rights reserved.