|
|
@ -32,8 +32,7 @@ import java.util.List;
|
|
|
|
* This interface specifies the database access operations performed for comments.
|
|
|
|
* This interface specifies the database access operations performed for comments.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("ALL")
|
|
|
|
@SuppressWarnings("ALL") public interface CommentDAO {
|
|
|
|
public interface CommentDAO {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To add a comment to a application.
|
|
|
|
* To add a comment to a application.
|
|
|
@ -47,7 +46,8 @@ public interface CommentDAO {
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int addComment(int tenantId , Comment comment, String createdBy, int parentId, String uuid) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int addComment(int tenantId, Comment comment, String createdBy, int parentId, String uuid)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To add a comment to a application.
|
|
|
|
* To add a comment to a application.
|
|
|
@ -60,7 +60,8 @@ public interface CommentDAO {
|
|
|
|
* @return comment id
|
|
|
|
* @return comment id
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int addComment(int tenantId, Comment comment,String createdBy,String appType,String appName,String version) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int addComment(int tenantId, Comment comment, String createdBy, String appType, String appName, String version)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To update already added comment.
|
|
|
|
* To update already added comment.
|
|
|
@ -74,7 +75,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception
|
|
|
|
* @throws DBConnectionException db connection exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
Comment updateComment(int CommentId, String updatedComment,String modifiedBy, Timestamp modifiedAt) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
Comment updateComment(int CommentId, String updatedComment, String modifiedBy, Timestamp modifiedAt)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To update already added comment.
|
|
|
|
* To update already added comment.
|
|
|
@ -89,7 +91,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception
|
|
|
|
* @throws DBConnectionException db connection exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
Comment updateComment(String uuid, int CommentId,String updatedComment,String modifiedBy, Timestamp modifiedAt) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
Comment updateComment(String uuid, int CommentId, String updatedComment, String modifiedBy, Timestamp modifiedAt)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get the comment with id.
|
|
|
|
* To get the comment with id.
|
|
|
@ -123,7 +126,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception
|
|
|
|
* @throws DBConnectionException db connection exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
List<Comment> getAllComments(String uuid,PaginationRequest request) throws CommentManagementException, SQLException, DBConnectionException;
|
|
|
|
List<Comment> getAllComments(String uuid, PaginationRequest request)
|
|
|
|
|
|
|
|
throws CommentManagementException, SQLException, DBConnectionException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments using release id and application id.
|
|
|
|
* To get list of comments using release id and application id.
|
|
|
@ -146,7 +150,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getComments(String appType,String appName,String version) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getComments(String appType, String appName, String version)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments using tenant id.
|
|
|
|
* To get list of comments using tenant id.
|
|
|
@ -168,7 +173,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getCommentsByUser(String createdBy) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getCommentsByUser(String createdBy)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments by created use and created time.
|
|
|
|
* To get list of comments by created use and created time.
|
|
|
@ -180,7 +186,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getCommentsByUser(String createdBy,Timestamp createdAt) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getCommentsByUser(String createdBy, Timestamp createdAt)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments by modified users.
|
|
|
|
* To get list of comments by modified users.
|
|
|
@ -191,7 +198,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getCommentsByModifiedUser(String modifiedBy) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getCommentsByModifiedUser(String modifiedBy)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments using modified user's name and modified time.
|
|
|
|
* To get list of comments using modified user's name and modified time.
|
|
|
@ -203,7 +211,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getCommentsByModifiedUser(String modifiedBy,Timestamp modifiedAt) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getCommentsByModifiedUser(String modifiedBy, Timestamp modifiedAt)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments using application type, application name , application version and parent id of the comment.
|
|
|
|
* To get list of comments using application type, application name , application version and parent id of the comment.
|
|
|
@ -217,7 +226,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getComments(String appType,String appName,String version,int parentId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getComments(String appType, String appName, String version, int parentId)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get a count of the comments by usernames.
|
|
|
|
* To get a count of the comments by usernames.
|
|
|
@ -251,7 +261,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getCommentCountByParent(String uuid,int parentId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int getCommentCountByParent(String uuid, int parentId)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get a count of comments by modification details.
|
|
|
|
* To get a count of comments by modification details.
|
|
|
@ -263,7 +274,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getCommentCountByUser(String modifiedBy,Timestamp modifedAt) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int getCommentCountByUser(String modifiedBy, Timestamp modifedAt)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get count of comments by application versions.
|
|
|
|
* To get count of comments by application versions.
|
|
|
@ -275,7 +287,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getCommentCountByApp(int appId, int appReleaseId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int getCommentCountByApp(int appId, int appReleaseId)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get count of comments by application details.
|
|
|
|
* To get count of comments by application details.
|
|
|
@ -288,7 +301,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getCommentCountByApp(String appType,String appName,String version) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int getCommentCountByApp(String appType, String appName, String version)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To delete comment using comment id.
|
|
|
|
* To delete comment using comment id.
|
|
|
@ -300,7 +314,6 @@ public interface CommentDAO {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void deleteComment(int CommentId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
void deleteComment(int CommentId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To delete comment using comment id.
|
|
|
|
* To delete comment using comment id.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -320,7 +333,8 @@ public interface CommentDAO {
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws DBConnectionException db connection exception.
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
* @throws SQLException sql exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void deleteComments(int appId,int appReleaseID) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
void deleteComments(int appId, int appReleaseID)
|
|
|
|
|
|
|
|
throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To delete comments using application details.
|
|
|
|
* To delete comments using application details.
|
|
|
@ -341,8 +355,8 @@ public interface CommentDAO {
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void deleteComments(String appType,String appName,String version,String createdBy)throws CommentManagementException;
|
|
|
|
void deleteComments(String appType, String appName, String version, String createdBy)
|
|
|
|
|
|
|
|
throws CommentManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To delete comments by parent id of the comment.
|
|
|
|
* To delete comments by parent id of the comment.
|
|
|
@ -353,7 +367,6 @@ public interface CommentDAO {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void deleteComments(String uuid, int parentId) throws CommentManagementException;
|
|
|
|
void deleteComments(String uuid, int parentId) throws CommentManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To add the star rating to the application.
|
|
|
|
* To add the star rating to the application.
|
|
|
|
*
|
|
|
|
*
|
|
|
|