package com.jspxcms.core.service; import java.util.Collection; import java.util.Date; import java.util.List; import java.util.Map; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import com.jspxcms.common.orm.Limitable; import com.jspxcms.common.util.RowSide; import com.jspxcms.core.domain.Special; /** * SpecialService * * @author liufang * */ public interface SpecialService { public Page<Special> findAll(Map<String, String[]> params, Pageable pageable); public RowSide<Special> findSide(Map<String, String[]> params, Special bean, Integer position, Sort sort); public List<Special> findList(Integer[] siteId, Integer[] categoryId, Date startDate, Date endDate, Boolean isWithImage, Boolean isRecommend, Limitable limitable); public Page<Special> findPage(Integer[] siteId, Integer[] categoryId, Date startDate, Date endDate, Boolean isWithImage, Boolean isRecommend, Pageable pageable); public Special get(Integer id); public Special save(Special bean, Integer categoryId, Integer creatorId, Integer siteId); public Special update(Special bean, Integer categoryId); public Special delete(Integer id); public Special[] delete(Integer[] ids); public Special refer(Integer beanId); public List<Special> refer(Integer[] beanIds); public void derefer(Special bean); public void derefer(Collection<Special> beans); }