CommentId changed into commentId

feature/appm-store/pbac
nishadi 7 years ago
parent 27d3862ac8
commit 7242c63e60

@ -45,12 +45,12 @@ public interface CommentsManager {
/** /**
* To validate the pre-request of the comment * To validate the pre-request of the comment
* *
* @param CommentId ID of the comment. * @param commentId ID of the comment.
* @param comment comment needed to be validate. * @param comment comment needed to be validate.
* @return validated the comment. * @return validated the comment.
* @throws CommentManagementException Exceptions of the comment management. * @throws CommentManagementException Exceptions of the comment management.
*/ */
Boolean validateComment(int CommentId, String comment) throws CommentManagementException; Boolean validateComment(int commentId, String comment) throws CommentManagementException;
/** /**
* Get all comments to pagination * Get all comments to pagination

@ -206,8 +206,8 @@ import java.util.List;
* *
* @param modifiedBy Username of the modified person. * @param modifiedBy Username of the modified person.
* @param modifiedAt time of the modification * @param modifiedAt time of the modification
* @return List of comments * @return {@link List}List of comments
* @throws {@link List}CommentManagementException Exceptions of the comment management. * @throws CommentManagementException Exceptions of the comment management.
* @throws DBConnectionException db connection exception. * @throws DBConnectionException db connection exception.
* @throws SQLException sql exception * @throws SQLException sql exception
*/ */

@ -86,21 +86,21 @@ public class CommentsManagerImpl implements CommentsManager {
/** /**
* To validate the pre-request of the comment * To validate the pre-request of the comment
* *
* @param CommentId ID of the comment. * @param commentId ID of the comment.
* @param comment comment needed to be validate. * @param comment comment needed to be validate.
* @return Application related with the UUID. * @return Application related with the UUID.
* @throws CommentManagementException Exceptions of the comment management. * @throws CommentManagementException Exceptions of the comment management.
*/ */
public Boolean validateComment(int CommentId, String comment) throws CommentManagementException { public Boolean validateComment(int commentId, String comment) throws CommentManagementException {
if (CommentId <= 0) { if (commentId <= 0) {
throw new CommentManagementException( throw new CommentManagementException(
"Comment ID is null or negative. Comment id is a required parameter to get the " "Comment ID is null or negative. Comment id is a required parameter to get the "
+ "relevant comment."); + "relevant comment.");
} }
if (comment == null) { if (comment == null) {
log.error("Comment can not be null, but Comment at comment id " + CommentId + " is null."); log.error("Comment can not be null, but Comment at comment id " + commentId + " is null.");
return false; return false;
} }
return true; return true;

Loading…
Cancel
Save