Interface RistoranteService
- All Known Implementing Classes:
RistoranteServiceImpl
public interface RistoranteService
Interfaccia per i metodi del sottosistema ristorante
- Author:
- Jacopo Gennaro Esposito
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> addProductToMenu
(Integer idMenu, Integer idProdotto, Integer idRistorante, String name) Firma del metodo per aggiungere un prdotto ad un menuorg.springframework.http.ResponseEntity
<Set<Ristorante>> getAllRistorantiByRistoratore
(Integer idRistoratore) Firma del metodo per recuperare tutti i ristoranti associati ad un dato ristoratoreorg.springframework.http.ResponseEntity
<Menu> getMenusByID
(Integer idMenu) Firma del metodo per ottenere il menu associato ad un dato idFirma del metodo per ottenere i menu associati ad un ristorantegetProdottiByMenuID
(Integer idMenu) Firma del metodo per ottenere i prodotti associati ad un dato menuorg.springframework.http.ResponseEntity
<Ristorante> getRistoranteByID
(Integer idRistorante) Firma del metodo per recuperare i dettagli di un ristorantegetTavoliRistorante
(Integer idRistorante) Firma del metodo per recuperare i tavoli associati ad un ristoranteorg.springframework.http.ResponseEntity
<Tavolo> getTavoloByID
(String idTavolo, Integer idRistorante) Firma del metodo per recuperare i dettagli di un tavolo dato il suo IDorg.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> insertMenu
(InsertMenuRequest insertMenuRequest, String email) Firma del metodo per aggiungere un menuorg.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> insertRistorante
(InsertRistoranteRequest insertRistoranteRequest, String email) Firma del metodo per inserire un nuovo ristoranteorg.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> insertTavolo
(InsertTavoloRequest insertTavoloRequest, String email) Firma del metodo per inserire un nuovo tavoloorg.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> removeProductFromMenu
(Integer idMenu, Integer idProdotto, Integer idRistorante, String mail) Firma del metodo per rimuovere un prodotto ad un menuorg.springframework.http.ResponseEntity
<Set<Ristorante>> searchRistorante
(SearchRistoranteRequest searchRistoranteRequest, String nomeRistorante) Firma del metodo per recuperare i ristoranti dato una serie di parametri in inputorg.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> updateRistorante
(UpdateRistoranteRequest updateRistoranteRequest, Integer idRistorante, String email) Firma del metodo per aggiornare i dettagli di un ristorante
-
Method Details
-
insertRistorante
org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> insertRistorante(InsertRistoranteRequest insertRistoranteRequest, String email) Firma del metodo per inserire un nuovo ristorante- Parameters:
insertRistoranteRequest
- Oggetto che rappresenta una richiesta di inserimentoemail
- Email del ristoratore che effettua la richiesta- Returns:
- ResponseEntity HttpStatus Codice di stato HTTP
-
updateRistorante
org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> updateRistorante(UpdateRistoranteRequest updateRistoranteRequest, Integer idRistorante, String email) Firma del metodo per aggiornare i dettagli di un ristorante- Parameters:
updateRistoranteRequest
- rappresenta la richiesta di modifica dei dettagli del ristoranteidRistorante
- Id univoco del ristorante di cui mondificare i dati- Returns:
- ResponseEntity HttpStatus Codice di stato HTTP
-
getAllRistorantiByRistoratore
org.springframework.http.ResponseEntity<Set<Ristorante>> getAllRistorantiByRistoratore(Integer idRistoratore) Firma del metodo per recuperare tutti i ristoranti associati ad un dato ristoratore- Parameters:
idRistoratore
- rappresenta l'id del ristoratore per il quale si vuole recuperare la lista dei ristoranti- Returns:
- ResponseEntity ResponseEntity contenente la lista dei ristoranti associati
-
getRistoranteByID
Firma del metodo per recuperare i dettagli di un ristorante- Parameters:
idRistorante
- rappresenta l'id del ristorante per il quale si vuole recuperarne i dettagli- Returns:
- ResponseEntity ResponseEntity contenente i dettagli del ristorante
-
searchRistorante
org.springframework.http.ResponseEntity<Set<Ristorante>> searchRistorante(SearchRistoranteRequest searchRistoranteRequest, String nomeRistorante) Firma del metodo per recuperare i ristoranti dato una serie di parametri in input- Parameters:
searchRistoranteRequest
- rappresenta la richiesta di ricerca di un ristorantenomeRistorante
- nome del ristorante da cercare- Returns:
- ResponseEntity ResponseEntity contenente la lista dei ristoranti trovati
-
insertMenu
org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> insertMenu(InsertMenuRequest insertMenuRequest, String email) Firma del metodo per aggiungere un menu- Parameters:
insertMenuRequest
- rappresenta la richiesta di inserimento di un menuemail
- Email associata al proprietario del ristorante- Returns:
- HttpStatusCode ResponseEntity Codice di stato http
-
addProductToMenu
org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> addProductToMenu(Integer idMenu, Integer idProdotto, Integer idRistorante, String name) Firma del metodo per aggiungere un prdotto ad un menu- Parameters:
idMenu
- ID del menu per il quale si intende aggiungere un prodottoidProdotto
- ID del prodotto da aggiungereidRistorante
- ID del ristorante- Returns:
- HttpStatusCode ResponseEntity Codice di stato http
-
removeProductFromMenu
org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> removeProductFromMenu(Integer idMenu, Integer idProdotto, Integer idRistorante, String mail) Firma del metodo per rimuovere un prodotto ad un menu- Parameters:
idMenu
- ID del menu per il quale si intende rimuovere un prodottoidProdotto
- ID del prodotto da rimuovereidRistorante
- ID del ristorante- Returns:
- HttpStatusCode ResponseEntity Codice di stato http
-
getMenusByRistoranteID
Firma del metodo per ottenere i menu associati ad un ristorante- Parameters:
ID
- Id del ristorante per il quale si vuole recuperare la lista dei menu- Returns:
- ResponseEntity ResponseEntity contenente la lista dei menu associati
-
getMenusByID
Firma del metodo per ottenere il menu associato ad un dato id- Parameters:
idMenu
- Id del ristorante per il quale si vuole recuperare la lista dei menu- Returns:
- ResponseEntity ResponseEntity contenente la lista dei menu associati
-
getProdottiByMenuID
Firma del metodo per ottenere i prodotti associati ad un dato menu- Parameters:
idMenu
- Id del menu per il quale si vuole recuperare la lista dei prodotti- Returns:
- ResponseEntity ResponseEntity contenente la lista dei prodotti associati
-
insertTavolo
org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> insertTavolo(InsertTavoloRequest insertTavoloRequest, String email) Firma del metodo per inserire un nuovo tavolo- Parameters:
insertTavoloRequest
- Oggetto che rappresenta una richiesta di inserimentoemail
- Email del ristoratore che effettua la richiesta- Returns:
- ResponseEntity HttpStatus Codice di stato HTTP
-
getTavoliRistorante
Firma del metodo per recuperare i tavoli associati ad un ristorante- Parameters:
idRistorante
- ID del ristorante per il quale si vuole ottenere la lista dei tavoli- Returns:
- ResponseEntity Set contenente la lista dei tavoli
-
getTavoloByID
org.springframework.http.ResponseEntity<Tavolo> getTavoloByID(String idTavolo, Integer idRistorante) Firma del metodo per recuperare i dettagli di un tavolo dato il suo ID- Parameters:
idTavolo
- ID del ristorante per il quale si vuole ottenere la lista dei tavoliidRistorante
- ID del ristorante- Returns:
- ResponseEntity Response entity contenente i dettagli del tavolo
-