Package cvut.fel.service

# Class LibraryServiceImp

java.lang.Object
cvut.fel.service.LibraryServiceImp

All Implemented Interfaces:
  `LibraryService`

    @Service
    public class LibraryServiceImp
    extends java.lang.Object
    implements LibraryService

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `LibraryServiceImp​(LibraryRepository libraryRepository, BookRepository bookRepository)` |

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `boolean` | `addBookToLibrary​(java.lang.Long libraryId, java.lang.Long bookId)` |
  `Library` | `findById​(java.lang.Long id)` |

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LibraryServiceImp

    @Autowired public LibraryServiceImp​(LibraryRepository libraryRepository, BookRepository bookRepository)

- ## Method Details

  - ### addBookToLibrary

    public boolean addBookToLibrary​(java.lang.Long libraryId, java.lang.Long bookId)
    Specified by:
      `addBookToLibrary` in interface `LibraryService`

  - ### findById

    public Library findById​(java.lang.Long id)
    Specified by:
      `findById` in interface `LibraryService`