ArticleService.java
资源名称:Myblog.rar [点击查看]
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:3k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.opensource.blog.service;
- import com.laoer.comm.web.*;
- import com.opensource.blog.exception.BlogException;
- import com.opensource.blog.model.Article;
- import com.opensource.blog.model.Blog;
- import java.util.List;
- public interface ArticleService {
- /**
- *
- * @param article Article
- * @return Article
- * @throws BlogException
- */
- public Object[] createArticle(Article article, Blog blog) throws BlogException;
- /**
- *
- * @param article Article
- * @return Article
- * @throws BlogException
- */
- public Article saveArticle(Article article) throws BlogException;
- /**
- *
- * @param id long
- * @param blogID long
- * @return Article
- */
- public Article findArticleByID_BlogID(long id, long blogID);
- /**
- *
- * @param blogID long
- * @return int
- */
- public int getArticleNumByBlogID(long blogID);
- /**
- *
- * @param blogID long
- * @param pages Pages
- * @return PageList
- */
- public PageList findArticlesByBlogID(long blogID, Pages pages);
- /**
- *
- * @param blogID long
- * @param sortID long
- * @return int
- */
- public int getArticleNumBySort(long blogID, long sortID);
- /**
- *
- * @param blogID long
- * @param sortID long
- * @param pages Pages
- * @return PageList
- */
- public PageList findArticlesBySort(long blogID, long sortID, Pages pages);
- /**
- *
- * @param blogID long
- * @param postDate String
- * @return int
- */
- public int getArticleNumByPostDate(long blogID, String postDate);
- /**
- *
- * @param blogID long
- * @param postDate String
- * @param pages Pages
- * @return PageList
- */
- public PageList findArticlesByPostDate(long blogID, String postDate, Pages pages);
- /**
- *
- * @param blogID long
- * @param ishide int
- * @return int
- */
- public int getArticleNumByBlogID_IsHide(long blogID, int ishide);
- /**
- *
- * @param blogID long
- * @param ishide int
- * @param pages Pages
- * @return PageList
- */
- public PageList findArticlesByBlogID_IsHide(long blogID, int ishide, Pages pages);
- /**
- *
- * @param blogID long
- * @return List
- */
- public List findArticlesGroupByPostDate(long blogID);
- /**
- *
- * @param blogID long
- * @return String
- */
- public String getPostDateStr(long blogID);
- /**
- *
- * @param pages Pages
- * @return PageList
- */
- public PageList findArticlesAll(Pages pages);
- /**
- *
- * @param article Article
- * @throws BlogException
- */
- public void removeArticle(Article article) throws BlogException;
- }