org.bejug.javacareers.jobs.view.jsf.action
Interface CommentAction

All Known Implementing Classes:
CommentActionImpl

public interface CommentAction

This interface has to be implemented by any action that processes comments from the JSF comment component.

Version:
$Revision: 1.34 $ - $Date: 2005/12/08 14:53:46 $:
Author:
: Peter Symoens (Last modified by $Author: shally $)

Method Summary
 int getChildCommentCount(org.bejug.javacareers.jobs.model.Comment comment)
           
 java.util.List getChildComments(org.bejug.javacareers.jobs.model.Comment comment)
           
 int getCommentCount(org.bejug.javacareers.jobs.model.Item offer)
           
 java.util.List getComments(org.bejug.javacareers.jobs.model.Item offer)
           
 boolean isUserAuthenticated()
           
 void processPostAction(org.bejug.javacareers.jobs.model.Item offer, java.lang.String content)
           
 void processPostResponse(org.bejug.javacareers.jobs.model.Item offer, java.lang.Integer commentId, java.lang.String content)
           
 

Method Detail

processPostAction

public void processPostAction(org.bejug.javacareers.jobs.model.Item offer,
                              java.lang.String content)
Parameters:
offer - Offer
content - The content of the comment

getComments

public java.util.List getComments(org.bejug.javacareers.jobs.model.Item offer)
Parameters:
offer - Offer
Returns:
the comments of this offer

getChildComments

public java.util.List getChildComments(org.bejug.javacareers.jobs.model.Comment comment)
Parameters:
comment - Comment
Returns:
The childComments of this comment

processPostResponse

public void processPostResponse(org.bejug.javacareers.jobs.model.Item offer,
                                java.lang.Integer commentId,
                                java.lang.String content)
Parameters:
offer - Offer
commentId - The id of the parentComment
content - The content of the comment

getChildCommentCount

public int getChildCommentCount(org.bejug.javacareers.jobs.model.Comment comment)
Parameters:
comment - Comment
Returns:
nr of child comments of this comment

getCommentCount

public int getCommentCount(org.bejug.javacareers.jobs.model.Item offer)
Parameters:
offer - Offer
Returns:
commentCount Returns the nr of comments for this Offer.

isUserAuthenticated

public boolean isUserAuthenticated()
Returns:
true if user is authenticated.


Copyright © 2005-2006 BeJUG. All Rights Reserved.