Last change
on this file was 5444409, checked in by milamihajlovska <mila.mihajlovska01@…>, 21 months ago |
update register and registerWorker
|
-
Property mode
set to
100644
|
File size:
714 bytes
|
Rev | Line | |
---|
[f17f34f] | 1 | package com.example.moviezone.service;
|
---|
| 2 |
|
---|
[5444409] | 3 | import com.example.moviezone.model.Cinema;
|
---|
[f9cc555] | 4 | import com.example.moviezone.model.Role;
|
---|
[f17f34f] | 5 | import com.example.moviezone.model.User;
|
---|
| 6 |
|
---|
| 7 | import java.util.List;
|
---|
| 8 |
|
---|
| 9 | public interface UserService {
|
---|
| 10 | List<User> findAllUsers();
|
---|
[1b248e4] | 11 | User findById(Integer user_id);
|
---|
[ac25203] | 12 | User findByUsername(String username);
|
---|
[27adfc8] | 13 |
|
---|
[d7f5da9] | 14 | void register(String first_name, String last_name,String username, String email, String number, String password, Role role);
|
---|
[6032d44] | 15 | User login(String username,String password);
|
---|
[5444409] | 16 | void registerWorker(String first_name, String last_name, String username, String email, String number, String password, String position, String work_hours_from, String work_hours_to, Cinema cinema);
|
---|
[f17f34f] | 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.