NoteService.java
资源名称:Myblog.rar [点击查看]
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.opensource.blog.service;
- import java.util.List;
- import com.laoer.comm.web.PageList;
- import com.laoer.comm.web.Pages;
- import com.opensource.blog.exception.BlogException;
- import com.opensource.blog.model.Note;
- public interface NoteService {
- /**
- *
- * @param note Note
- * @return Note
- * @throws BlogException
- */
- public Note saveNote(Note note) throws BlogException;
- /**
- *
- * @param id long
- * @param blogID long
- * @return Note
- */
- public Note findNoteByID_BlogID(long id, long blogID);
- /**
- *
- * @param artID long
- * @return int
- */
- public int getNoteCountByArtID(long artID);
- /**
- *
- * @param artID long
- * @return List
- */
- public List findNotesByArtID(long artID);
- /**
- *
- * @param blogID long
- * @return int
- */
- public int getNoteCountByBlogID(long blogID);
- /**
- *
- * @param blogID long
- * @param pages Pages
- * @return PageList
- */
- public PageList findNotesByBlogID(long blogID, Pages pages);
- /**
- *
- * @param note Note
- * @throws BlogException
- */
- public void removeNote(Note note) throws BlogException;
- }