package com.jspxcms.core.service; import java.io.Serializable; 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.Comment; /** * CommentService * * @author liufang * */ public interface CommentService { public Page<Comment> findAll(Map<String, String[]> params, Pageable pageable); public RowSide<Comment> findSide(Map<String, String[]> params, Comment bean, Integer position, Sort sort); public List<Comment> findList(String ftype, Integer fid, Integer[] status, Integer[] siteId, Limitable limitable); public Page<Comment> findPage(String ftype, Integer fid, Integer[] status, Integer[] siteId, Pageable pageable); public Object getEntity(String entityName, Serializable id); public Comment get(Integer id); public Comment save(Comment bean, Integer userId, Integer siteId); public Comment update(Comment bean); public Comment delete(Integer id); public Comment[] delete(Integer[] ids); public Comment[] audit(Integer[] ids); public Comment[] unaudit(Integer[] ids); }