Example #1
0
 @Descriptor("Update book")
 public void update(
     @Descriptor("isbn") String isbn,
     @Descriptor("author") String author,
     @Descriptor("title") String title) {
   BookDTO dto = new BookDTO();
   dto.setAuthor(author);
   dto.setISBN(isbn);
   dto.setTitle(title);
   // TODO BookCategory
   BookServiceFacade bookServiceFacade = lookupService();
   bookServiceFacade.updateBook(dto);
 }
Example #2
0
 @Descriptor("Load an book by ISBN")
 public BookDTO load(@Descriptor("isbn") String isbn) {
   BookServiceFacade bookServiceFacade = lookupService();
   return bookServiceFacade.loadBook(isbn);
 }