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)
-
Constructor Details
-
PublisherServiceImp
@Autowired public PublisherServiceImp(AuthorRepository authorRepository, PublisherRepository publisherRepository, BookRepository bookRepository, RequestMapper requestMapper)
-
-
Method Details
-
findById
- Specified by:
findById
in interfacePublisherService
-
createContract
public boolean createContract(java.lang.Long authorId, java.lang.Long publisherId)- Specified by:
createContract
in interfacePublisherService
-
publishNewBook
- Specified by:
publishNewBook
in interfacePublisherService
-