/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ee.tlu.htk.dippler.managers; import ee.tlu.htk.dippler.entities.Client; import ee.tlu.htk.dippler.entities.User; import javax.ejb.Local; /** * * @author metz */ @Local public interface UserManagerLocal { String userAdd(String email, String password, String username, String firstname, String lastname, int level, Client client); User userAuthenticate(String username, String password); int userCheck(String email); String userXML(User user); String generateSalt(); String generatePasswordHash(String password, String salt); void delete(User user); User findByEmail(String email); User findById(Long id); public String userSearch(String term); public String manageUser(String action, String data, User user); public java.lang.String marshal(ee.tlu.htk.dippler.entities.User user); public boolean hasPermission(User user, int level); }