Interface Assortment

  • All Known Implementing Classes:
    AssortmentImpl

    public interface Assortment
    Represents the catalogue of all indexed books.
    Author:
    Maximilian Schiedermeier
    • Method Detail

      • getEntireAssortment

        Collection<Long> getEntireAssortment()
        Retrieves all books that are indexed, no matter if they are in stock somewhere or not.
        Returns:
        the list off registered isbns.
      • getBookDetails

        BookDetailsImpl getBookDetails​(Long isbn)
        Retrieved book details for a specific book, identified by isbn.
        Parameters:
        isbn - for the identifier of the book in question.
        Returns:
        A BookDetail object, containing the static metadata of the requested book.
      • addBookToAssortment

        void addBookToAssortment​(BookDetailsImpl bookDetails)
        Indexes a new book. The isbn of the bookDetails parameter bean must not conflict with an existing book.
        Parameters:
        bookDetails - for the exact data of the book to be added to the assortment.