forked from Realhedin/topjava02
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserService.java
More file actions
33 lines (20 loc) · 737 Bytes
/
UserService.java
File metadata and controls
33 lines (20 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package ru.javawebinar.topjava.service;
import ru.javawebinar.topjava.model.User;
import ru.javawebinar.topjava.to.UserTo;
import ru.javawebinar.topjava.util.exception.NotFoundException;
import java.util.List;
/**
* User: gkislin
* Date: 22.08.2014
*/
public interface UserService {
public User save(User user);
public void delete(int id) throws NotFoundException;
public User get(int id) throws NotFoundException;
public User getByEmail(String email) throws NotFoundException;
public List<User> getAll();
public void update(User user) throws NotFoundException;
public void update(UserTo user) throws NotFoundException;
public void evictCache();
void enable(int id, boolean enable);
}