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 booleancreateContract(java.lang.Long authorId, java.lang.Long publisherId)PublisherfindById(java.lang.Long id)java.lang.LongpublishNewBook(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:
findByIdin interfacePublisherService
-
createContract
public boolean createContract(java.lang.Long authorId, java.lang.Long publisherId)- Specified by:
createContractin interfacePublisherService
-
publishNewBook
- Specified by:
publishNewBookin interfacePublisherService
-