root/nextboard/src/org/springframework/samples/kyuriboard/domain/logic/KyuriBoardFacade.java

리비전 3, 4.6 kB (mefour에 의해 체크인됨, 16 년 전)

ASSIGNED - # 1: 인큐페이터 사이트를 위한 개념 정립
http://221.150.127.106:8081/projects/hubproject/ticket/1

Line 
1 /**
2  *
3  */
4 package org.springframework.samples.kyuriboard.domain.logic;
5
6 import java.util.List;
7
8 import org.springframework.dao.DataAccessException;
9 import org.springframework.samples.kyuriboard.domain.Board;
10 import org.springframework.samples.kyuriboard.domain.Memo;
11 import org.springframework.samples.kyuriboard.domain.User;
12
13 /**
14  * @author DAMI(archy712@naver.com)
15  *
16  */
17 public interface KyuriBoardFacade {
18        
19         // -----------------------------------------------------------
20         // Board
21         // -----------------------------------------------------------
22        
23         /**
24          * 주어진 게시물ID로 게시물 객체를 반환한다
25          * @param boardId 게시물ID
26          * @return Board 게시물 객체
27          * @throws DataAccessException
28          */
29         Board getBoardByBoardId(int boardId) throws DataAccessException;
30        
31        
32         /**
33          * 게시물의 총 리스트를 반환한다.
34          * @return java.util.List 게시물 총 리스트
35          * @throws DataAccessException
36          */
37         List getBoardList() throws DataAccessException;
38        
39        
40         /**
41          * 주어진 사용자ID에 해당하는 게시물 리스트를 반환한다.
42          * @param userId 사용자ID
43          * @return java.util.List 게시물 리스트
44          * @throws DataAccessException
45          */
46         List getBoardListByUserId(String userId) throws DataAccessException;
47        
48        
49         /**
50          * 주어진 사용자명에 해당하는 게시물 리스트를 반환한다.
51          * @param userName 사용자명
52          * @return java.util.List 게시물 리스트
53          * @throws DataAccessException
54          */
55         List getBoardListByUserName(String userName) throws DataAccessException;
56        
57        
58         /**
59          * 주어진 제목에 해당하는 게시물 리스트를 반환한다.
60          * @param title 게시물 제목
61          * @return java.util.List 게시물 리스트
62          * @throws DataAccessException
63          */
64         List getBoardListByTitle(String title) throws DataAccessException;
65        
66        
67         /**
68          * 주어진 게시물을 입력한다.
69          * @param board 입력할 게시물
70          * @throws DataAccessException
71          */
72         void insertBoard(Board board) throws DataAccessException;
73        
74        
75         /**
76          * 주어진 게시물을 수정한다.
77          * @param board 입력할 게시물
78          * @throws DataAccessException
79          */
80         void updateBoard(Board board) throws DataAccessException;
81        
82        
83         /**
84          * 주어진 게시물을 삭제한다.
85          * @param boardId 삭제할 게시물 ID
86          * @throws DataAccessException
87          */
88         void deleteBoard(int boardId) throws DataAccessException;
89        
90        
91         // ---------------------------------------------------------
92         // Memo
93         // ---------------------------------------------------------
94        
95        
96         /**
97          * 주어진 메모ID에 해당하는 메모를 반환한다.
98          * @param memoId 메모ID
99          * @return Memo 메모 객체
100          * @throws DataAccessException
101          */
102         Memo getMemoByMemoId(int memoId) throws DataAccessException;
103        
104        
105         /**
106          * 주어진 게시물ID에 해당하는 메모 리스트를 반환한다.
107          * @param boardId 게시물ID
108          * @return java.util.List 메모 리스트
109          * @throws DataAccessException
110          */
111         List getMemoListByBoardId(int boardId) throws DataAccessException;
112        
113        
114         /**
115          * 주어진 메모를 입력한다.
116          * @param memo 입력할 메모
117          * @throws DataAccessException
118          */
119         void insertMemo(Memo memo) throws DataAccessException;
120        
121        
122         /**
123          * 주어진 메모를 수정한다.
124          * @param memo 수정할 메모
125          * @throws DataAccessException
126          */
127         void updateMemo(Memo memo) throws DataAccessException;
128        
129        
130         /**
131          * 주어진 메모ID에 해당하는 메모를 삭제한다.
132          * @param memoId 삭제할 메모 ID
133          * @throws DataAccessException
134          */
135         void deleteMemo(int memoId) throws DataAccessException;
136        
137        
138         /**
139          * 주어진 게시물ID에 해당하는 메모들을 삭제한다.
140          * @param boardId
141          * @throws DataAccessException
142          */
143         void deleteMemoByBoardId(int boardId) throws DataAccessException;
144        
145        
146         // ---------------------------------------------------------
147         // User
148         // ---------------------------------------------------------
149        
150
151         /**
152          * 주어진 사용자ID에 해당하는 사용자를 반환한다.
153          * @param userId 사용자 ID
154          * @return User 사용자
155          * @throws DataAccessException
156          */
157         User getUserByUserId(String userId) throws DataAccessException;
158        
159        
160         /**
161          * 주어진 사용자ID와 비밀번호를 만족하는 사용자를 반환한다.
162          * @param userId 사용자 ID
163          * @param passwd 사용자 비밀번호
164          * @return User 사용자
165          * @throws DataAccessException
166          */
167         User getUserByUserIdAndPasswd(String userId, String passwd) throws DataAccessException;
168        
169        
170         /**
171          * 주어진 사용자를 등록한다.
172          * @param user 등록할 사용자
173          * @throws DataAccessException
174          */
175         void insertUser(User user) throws DataAccessException;
176        
177        
178         /**
179          * 주어진 사용자를 수정한다.
180          * @param user 수정할 사용자
181          * @throws DataAccessException
182          */
183         void updateUser(User user) throws DataAccessException;
184        
185        
186         /**
187          * 사용자 리스트를 반환한다.
188          * @return java.util.List 사용자 리스트
189          * @throws DataAccessException
190          */
191         List getUserList() throws DataAccessException;
192
193 }
참고: 소스 브라우저를 사용하면서 도움이 필요하다면, TracBrowser를 참고하십시오.