test
Форк от lirfrnk/test
1package com.bittercode.service;
2
3import javax.servlet.http.HttpSession;
4
5import com.bittercode.model.StoreException;
6import com.bittercode.model.User;
7import com.bittercode.model.UserRole;
8
9public interface UserService {
10
11public User login(UserRole role, String email, String password, HttpSession session) throws StoreException;
12
13public String register(UserRole role, User user) throws StoreException;
14
15public boolean isLoggedIn(UserRole role, HttpSession session);
16
17public boolean logout(HttpSession session);
18
19}
20