MentaTutorials

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16 soliveira 1
package org.menta.service;
2
 
3
import org.menta.exception.LoginException;
4
import org.menta.model.User;
5
 
6
public interface UserService {
7
 
8
        public User findByUsername(String username);
9
 
10
        public void save(User u);
11
 
12
        public User load(int id);
13
 
14
        /**
15
         * @return User if username and password match
16
         * @throws LoginException if username or password doesn't match
17
         */
18
        public User login(User user) throws LoginException;
19
 
20
}