1 package org.bejug.javacareers.jobs.view.jsf.action;
2
3 import java.util.List;
4
5 import org.bejug.javacareers.jobs.model.Comment;
6 import org.bejug.javacareers.jobs.model.Item;
7
8 /***
9 * This interface has to be implemented by any action that processes comments from the JSF comment component.
10 *
11 * @author : Peter Symoens (Last modified by $Author: shally $)
12 * @version $Revision: 1.34 $ - $Date: 2005/12/08 14:53:46 $:
13 */
14 public interface CommentAction {
15
16
17 /***
18 * @param offer Offer
19 * @param content The content of the comment
20 */
21 public void processPostAction(Item offer, String content);
22
23 /***
24 * @param offer Offer
25 * @return the comments of this offer
26 */
27 public List getComments(Item offer);
28
29
30 /***
31 * @param comment Comment
32 * @return The childComments of this comment
33 */
34 public List getChildComments(Comment comment);
35
36 /***
37 *
38 * @param offer Offer
39 * @param commentId The id of the parentComment
40 * @param content The content of the comment
41 */
42 void processPostResponse(Item offer, Integer commentId, String content);
43
44 /***
45 *
46 * @param comment Comment
47 * @return nr of child comments of this comment
48 */
49 int getChildCommentCount(Comment comment);
50
51 /***
52 * @param offer Offer
53 * @return commentCount Returns the nr of comments for this Offer.
54 */
55 public int getCommentCount(Item offer);
56
57 /***
58 *
59 * @return true if user is authenticated.
60 */
61 public boolean isUserAuthenticated();
62
63
64 }
65 /***
66 * $Log: CommentAction.java,v $
67 * Revision 1.34 2005/12/08 14:53:46 shally
68 * Opkuis voor checkstyle.
69 *
70 * Revision 1.33 2005/09/19 14:16:51 bavo_jcs
71 * Refactored comments to use Items
72 *
73 * Revision 1.32 2005/09/13 08:11:06 schauwvliege
74 * organize imports
75 *
76 * Revision 1.31 2005/08/30 14:06:59 psong09
77 * added javadoc
78 *
79 * Revision 1.30 2005/08/30 13:07:47 psong09
80 * renamed author: psong09
81 *
82 * Revision 1.29 2005/08/24 13:05:34 psong09
83 * moved isUserAuthenticated method from renderer to here
84 *
85 * Revision 1.28 2005/08/24 12:32:12 psong09
86 * Added spinner component and renamed commentAction
87 *
88 * Revision 1.10 2005/08/19 13:13:53 psong09
89 * introduced synchroniser token
90 *
91 * Revision 1.9 2005/08/10 09:04:49 bavo_jcs
92 * Optimized imports according to checkstyle
93 *
94 * Revision 1.8 2005/08/09 12:59:56 bavo_jcs
95 * Optimized imports
96 *
97 * Revision 1.7 2005/08/08 09:38:21 bme_jcs
98 * resolved checkstyle errors
99 *
100 * Revision 1.6 2005/07/12 16:12:48 psong09
101 * update comment component
102 *
103 * Revision 1.5 2005/07/11 12:57:47 stephan_janssen
104 * Added CVS utils.
105 *
106 */