Interface RistoranteService

All Known Implementing Classes:
RistoranteServiceImpl

public interface RistoranteService
Interfaccia per i metodi del sottosistema ristorante
Author:
Jacopo Gennaro Esposito
  • 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 inserimento
      email - 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 ristorante
      idRistorante - 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

      org.springframework.http.ResponseEntity<Ristorante> getRistoranteByID(Integer idRistorante)
      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 ristorante
      nomeRistorante - 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 menu
      email - 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 prodotto
      idProdotto - ID del prodotto da aggiungere
      idRistorante - 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 prodotto
      idProdotto - ID del prodotto da rimuovere
      idRistorante - ID del ristorante
      Returns:
      HttpStatusCode ResponseEntity Codice di stato http
    • getMenusByRistoranteID

      org.springframework.http.ResponseEntity<Set<Menu>> getMenusByRistoranteID(Integer ID)
      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

      org.springframework.http.ResponseEntity<Menu> getMenusByID(Integer idMenu)
      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

      org.springframework.http.ResponseEntity<Set<Prodotto>> getProdottiByMenuID(Integer idMenu)
      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 inserimento
      email - Email del ristoratore che effettua la richiesta
      Returns:
      ResponseEntity HttpStatus Codice di stato HTTP
    • getTavoliRistorante

      org.springframework.http.ResponseEntity<Set<Tavolo>> getTavoliRistorante(Integer idRistorante)
      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 tavoli
      idRistorante - ID del ristorante
      Returns:
      ResponseEntity Response entity contenente i dettagli del tavolo