source: bus-n-go-do-5ta-faza/src/main/java/mk/ukim/finki/busngo/service/BiletService.java

Last change on this file was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 3 months ago

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 841 bytes
Line 
1package mk.ukim.finki.busngo.service;
2
3import mk.ukim.finki.busngo.model.entities.Bilet;
4import mk.ukim.finki.busngo.model.entities.Patnik;
5import mk.ukim.finki.busngo.model.enums.BILET_STATUS;
6
7import java.time.LocalDateTime;
8import java.util.List;
9
10public interface BiletService {
11 List<Bilet> listAll();
12 List<Bilet> findAllByPatnikId(Long id);
13 List<Bilet> findAllByPatnikIdAndStatus(Long id, BILET_STATUS status);
14
15 Bilet buy(Long tipbilet, LocalDateTime now, BILET_STATUS biletStatus, String name);
16
17 List<Bilet> findAllByPatnikEmail(String email);
18// List<Bilet> findAllByPatnikEmailACTIVE(String email);
19 Bilet findBybIdAndPatnikEmail(Long bId, String email);
20
21 Bilet activate(Long bId);
22 Bilet findById(Long bId);
23 Bilet finish(Long bId);
24
25 boolean checkExpiration(Long bId);
26// void encode();
27}
Note: See TracBrowser for help on using the repository browser.