package com.syzton.sunread.service.recommend;
import java.util.ArrayList;
import javassist.NotFoundException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.syzton.sunread.dto.recommend.RecommendDTO;
import com.syzton.sunread.model.book.Book;
import com.syzton.sunread.model.recommend.Recommend;
/**
* @author Morgan-Leon
* @Date 2015年5月12日
*
*/
public interface RecommendService {
// public Recommend deleteById(Long id) throws NotFoundException;
public Recommend findById(Long id) throws NotFoundException;
Page<Recommend> findAll(Pageable pageable) throws NotFoundException;
/**
* @param recommendDTO
* @param teacherId
* @param bookInShelfId
* @return
*/
RecommendDTO add(RecommendDTO recommendDTO, Long teacherId, Long bookInShelfId);
ArrayList<RecommendDTO> addToClazz(RecommendDTO recommendDTO, Long teacherId, Long clazzId);
/**
* @param teacherId
* @return
*/
ArrayList<RecommendDTO> findByTeacher(Long teacherId);
/**
* @param teacherId
* @param pageable
* @return
*/
Page<RecommendDTO> findByTeacher(Long teacherId, Pageable pageable);
/**
* @param pageable
* @return
*/
ArrayList<Book> findRecommendBooks(long teacherId);
// ArrayList<RecommendDTO> findByBookinshelf();
}