|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
deleteComment(org.bejug.javacareers.jobs.model.Comment comment)
Delete the given comment. |
void |
deleteComment(java.lang.Integer id)
Delete the given comment by id. |
int |
getChildCommentCount(org.bejug.javacareers.jobs.model.Comment comment)
|
java.util.List |
getChildComments(java.lang.Integer commentId)
|
org.bejug.javacareers.jobs.model.Comment |
getComment(java.lang.Integer id)
find the given comment by id. |
org.bejug.javacareers.jobs.model.Comment |
getCommentBySubject(java.lang.Integer offerId,
java.lang.String subject)
get a comment. |
int |
getCommentCount(org.bejug.javacareers.jobs.model.Item offer)
|
java.util.List |
getComments(java.lang.Integer offerId,
boolean rootOnly)
Get all comments related to the offer. |
java.util.List |
getUserComments(org.bejug.javacareers.jobs.model.User user)
|
void |
store(org.bejug.javacareers.jobs.model.Comment comment)
Add a new comment. |
| Method Detail |
public void store(org.bejug.javacareers.jobs.model.Comment comment)
throws org.springframework.dao.DataAccessException
comment - the new commment.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
public java.util.List getComments(java.lang.Integer offerId,
boolean rootOnly)
throws org.springframework.dao.DataAccessException
rootOnly - if true, return only the root comment.offerId - the id of the offer to get the comment from.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
Todo: add offer to parameter list.
public java.util.List getChildComments(java.lang.Integer commentId)
throws org.springframework.dao.DataAccessException
commentId - the id of the comment to get the childcomments from.
org.springframework.dao.DataAccessException - e
public void deleteComment(org.bejug.javacareers.jobs.model.Comment comment)
throws org.springframework.dao.DataAccessException
comment - The comment to be removed.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public void deleteComment(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
id - The comment id.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public org.bejug.javacareers.jobs.model.Comment getComment(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
id - The commentid.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public org.bejug.javacareers.jobs.model.Comment getCommentBySubject(java.lang.Integer offerId,
java.lang.String subject)
offerId - The offer the comment is linked tosubject - The subject of the comment
public java.util.List getUserComments(org.bejug.javacareers.jobs.model.User user)
user - User
public int getChildCommentCount(org.bejug.javacareers.jobs.model.Comment comment)
comment - Comment
public int getCommentCount(org.bejug.javacareers.jobs.model.Item offer)
offer - Offer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||