Package cvut.fel.service

# Class PublisherServiceImp

java.lang.Object
cvut.fel.service.PublisherServiceImp

All Implemented Interfaces:
  `PublisherService`

    @Service
    public class PublisherServiceImp
    extends java.lang.Object
    implements PublisherService

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `PublisherServiceImp​(AuthorRepository authorRepository, PublisherRepository publisherRepository, BookRepository bookRepository, RequestMapper requestMapper)` |

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `boolean` | `createContract​(java.lang.Long authorId, java.lang.Long publisherId)` |
  `Publisher` | `findById​(java.lang.Long id)` |
  `java.lang.Long` | `publishNewBook​(java.lang.Long publisherId, BookCreate bookCreate)` |

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

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

- ## Constructor Details

  - ### PublisherServiceImp

    @Autowired public PublisherServiceImp​(AuthorRepository authorRepository, PublisherRepository publisherRepository, BookRepository bookRepository, RequestMapper requestMapper)

- ## Method Details

  - ### findById

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

  - ### createContract

    public boolean createContract​(java.lang.Long authorId, java.lang.Long publisherId)
    Specified by:
      `createContract` in interface `PublisherService`

  - ### publishNewBook

    public java.lang.Long publishNewBook​(java.lang.Long publisherId, BookCreate bookCreate)
    Specified by:
      `publishNewBook` in interface `PublisherService`