|
|
@ -32,64 +32,67 @@ 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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param tenantId tenantId of the commented application.
|
|
|
|
* @param tenantId tenantId of the commented application.
|
|
|
|
* @param comment comment of the application.
|
|
|
|
* @param comment comment of the application.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param parentId parent id of the parent comment.
|
|
|
|
* @param parentId parent id of the parent comment.
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @return Comment Id
|
|
|
|
* @return Comment Id
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param comment comment of the application.
|
|
|
|
* @param comment comment of the application.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param appType type of the commented application.
|
|
|
|
* @param appType type of the commented application.
|
|
|
|
* @param appName name of the commented application.
|
|
|
|
* @param appName name of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @param updatedComment comment after updated
|
|
|
|
* @param updatedComment comment after updated
|
|
|
|
* @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 {@link Comment}Updated comment
|
|
|
|
* @return {@link Comment}Updated comment
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @param updatedComment comment after updated
|
|
|
|
* @param updatedComment comment after updated
|
|
|
|
* @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 {@link Comment}Updated comment
|
|
|
|
* @return {@link Comment}Updated comment
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -97,8 +100,8 @@ public interface CommentDAO {
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @return {@link Comment}Comment
|
|
|
|
* @return {@link Comment}Comment
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
Comment getComment(int CommentId) throws CommentManagementException, SQLException, DBConnectionException;
|
|
|
|
Comment getComment(int CommentId) throws CommentManagementException, SQLException, DBConnectionException;
|
|
|
|
|
|
|
|
|
|
|
@ -108,32 +111,33 @@ public interface CommentDAO {
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @return {@link List} List of comments in the application
|
|
|
|
* @return {@link List} List of comments in the application
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getComment(String uuid) throws CommentManagementException, SQLException, DBConnectionException;
|
|
|
|
List<Comment> getComment(String uuid) throws CommentManagementException, SQLException, DBConnectionException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get all the comments
|
|
|
|
* To get all the comments
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @param request {@link PaginationRequest}pagination request with offSet and limit
|
|
|
|
* @param request {@link PaginationRequest}pagination request with offSet and limit
|
|
|
|
* @return {@link List}List of all the comments in an application
|
|
|
|
* @return {@link List}List of all the comments in an application
|
|
|
|
* @throws CommentManagementException Exception of the comment management
|
|
|
|
* @throws CommentManagementException Exception of the comment management
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param appReleasedId Id of the released version of the application.
|
|
|
|
* @param appReleasedId Id of the released version of the application.
|
|
|
|
* @param appId id of the commented application.
|
|
|
|
* @param appId id of the commented application.
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getComments(int appReleasedId,int appId)throws CommentManagementException;
|
|
|
|
List<Comment> getComments(int appReleasedId, int appId) throws CommentManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get list of comments using application type, application name and version of the application.
|
|
|
|
* To get list of comments using application type, application name and version of the application.
|
|
|
@ -143,10 +147,11 @@ public interface CommentDAO {
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -154,8 +159,8 @@ public interface CommentDAO {
|
|
|
|
* @param tenantId tenant id of the commented application
|
|
|
|
* @param tenantId tenant id of the commented application
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
List<Comment> getComments(int tenantId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
List<Comment> getComments(int tenantId) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
@ -165,10 +170,11 @@ public interface CommentDAO {
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -177,10 +183,11 @@ public interface CommentDAO {
|
|
|
|
* @param createdAt time of the comment created.
|
|
|
|
* @param createdAt time of the comment created.
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -188,10 +195,11 @@ public interface CommentDAO {
|
|
|
|
* @param modifiedBy Username of the modified person.
|
|
|
|
* @param modifiedBy Username of the modified person.
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -199,25 +207,27 @@ public interface CommentDAO {
|
|
|
|
* @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 List of comments
|
|
|
|
* @throws {@link List}CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws {@link List}CommentManagementException Exceptions of the comment management.
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param appType type of the commented application.
|
|
|
|
* @param appType type of the commented application.
|
|
|
|
* @param appName name of the commented application.
|
|
|
|
* @param appName name of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param parentId parent id of the parent comment.
|
|
|
|
* @param parentId parent id of the parent comment.
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @return {@link List}List of comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -225,8 +235,8 @@ public interface CommentDAO {
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @return Count of the comments
|
|
|
|
* @return Count of the comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getCommentCount(String uuid) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int getCommentCount(String uuid) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
@ -236,46 +246,49 @@ public interface CommentDAO {
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @param createdBy Username of the created person.
|
|
|
|
* @return Count of the comments
|
|
|
|
* @return Count of the comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getCommentCountByUser(String createdBy) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
int getCommentCountByUser(String createdBy) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get the comment count by parent comment id.
|
|
|
|
* To get the comment count by parent comment id.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @param parentId id of the parent comment
|
|
|
|
* @param parentId id of the parent comment
|
|
|
|
* @return Count of the comments
|
|
|
|
* @return Count of the comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param modifiedBy Username of the modified person.
|
|
|
|
* @param modifiedBy Username of the modified person.
|
|
|
|
* @param modifedAt time of the modification
|
|
|
|
* @param modifedAt time of the modification
|
|
|
|
* @return Count of the comments
|
|
|
|
* @return Count of the comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param appId id of the commented application.
|
|
|
|
* @param appId id of the commented application.
|
|
|
|
* @param appReleaseId Id of the released version of the application.
|
|
|
|
* @param appReleaseId Id of the released version of the application.
|
|
|
|
* @return Count of the comments
|
|
|
|
* @return Count of the comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -285,42 +298,43 @@ public interface CommentDAO {
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @return Count of the comments
|
|
|
|
* @return Count of the comments
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @param CommentId id of the comment
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @param uuid uuid of the comment
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void deleteComment(String uuid) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
void deleteComment(String uuid) throws CommentManagementException, DBConnectionException, SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To delete comments using application details.
|
|
|
|
* To delete comments using application details.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param appId id of the commented application.
|
|
|
|
* @param appId id of the commented application.
|
|
|
|
* @param appReleaseID Id of the released version of the application.
|
|
|
|
* @param appReleaseID Id of the released version of the application.
|
|
|
|
* @throws 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
@ -330,35 +344,34 @@ public interface CommentDAO {
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void deleteComments(String appType,String appName,String version)throws CommentManagementException;
|
|
|
|
void deleteComments(String appType, String appName, String version) throws CommentManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To delete comments using users created and application details.
|
|
|
|
* To delete comments using users created and application details.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param appType type of the commented application.
|
|
|
|
* @param appType type of the commented application.
|
|
|
|
* @param appName name of the commented application.
|
|
|
|
* @param appName name of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @param version version of the commented application.
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @param uuid uuid of the application
|
|
|
|
* @param parentId parent id of the parent comment.
|
|
|
|
* @param parentId parent id of the parent comment.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
* @throws CommentManagementException Exceptions of the comment management.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param stars Star value
|
|
|
|
* @param stars Star value
|
|
|
|
* @param uuid UUID of the application
|
|
|
|
* @param uuid UUID of the application
|
|
|
|
* @return Star value
|
|
|
|
* @return Star value
|
|
|
|
* @throws ApplicationManagementDAOException Application Management DAO Exception.
|
|
|
|
* @throws ApplicationManagementDAOException Application Management DAO Exception.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -371,7 +384,7 @@ public interface CommentDAO {
|
|
|
|
* @return Average of star values
|
|
|
|
* @return Average of star values
|
|
|
|
* @throws ApplicationManagementDAOException Application Management DAO Exception.
|
|
|
|
* @throws ApplicationManagementDAOException Application Management DAO Exception.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getStars(String uuid) throws ApplicationManagementDAOException;
|
|
|
|
int getStars(String uuid) throws ApplicationManagementDAOException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* To get number of rated users
|
|
|
|
* To get number of rated users
|
|
|
|