-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from szymonpoltorak/data-validation
Data validation
- Loading branch information
Showing
32 changed files
with
1,730 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
.../dev/corn/cornbackend/entities/backlog/comment/constants/BacklogItemCommentConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package dev.corn.cornbackend.entities.backlog.comment.constants; | ||
|
||
public final class BacklogItemCommentConstants { | ||
public static final String BACKLOG_ITEM_COMMENT_COMMENT_BLANK_MSG = "Comment cannot be null and has to contain at least one non-whitespace character"; | ||
public static final String BACKLOG_ITEM_COMMENT_COMMENT_WRONG_SIZE_MSG = "Comment must consist of max 500 characters"; | ||
public static final int BACKLOG_ITEM_COMMENT_MAX_SIZE = 500; | ||
public static final String BACKLOG_ITEM_COMMENT_COMMENT_FIELD_NAME = "comment"; | ||
|
||
public static final String BACKLOG_ITEM_COMMENT_USER_NULL_MSG = "User cannot be null"; | ||
public static final String BACKLOG_ITEM_COMMENT_USER_FIELD_NAME = "user"; | ||
|
||
public static final String BACKLOG_ITEM_COMMENT_BACKLOG_ITEM_NULL_MSG = "BackLogItem cannot be null"; | ||
public static final String BACKLOG_ITEM_COMMENT_BACKLOG_ITEM_FIELD_NAME = "backlogItem"; | ||
|
||
private BacklogItemCommentConstants() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
.../main/java/dev/corn/cornbackend/entities/backlog/item/constants/BacklogItemConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package dev.corn.cornbackend.entities.backlog.item.constants; | ||
|
||
public final class BacklogItemConstants { | ||
public static final String BACKLOG_ITEM_TITLE_BLANK_MSG = "Title cannot be null and has to contain at least one non-whitespace character"; | ||
public static final String BACKLOG_ITEM_TITLE_WRONG_SIZE_MSG = "Title must consist of max 100 characters"; | ||
public static final String BACKLOG_ITEM_TITLE_FIELD_NAME = "title"; | ||
public static final int BACKLOG_ITEM_TITLE_MAX_SIZE = 100; | ||
|
||
public static final String BACKLOG_ITEM_DESCRIPTION_BLANK_MSG = "Title cannot be null and has to contain at least one non-whitespace character"; | ||
public static final String BACKLOG_ITEM_DESCRIPTION_WRONG_SIZE_MSG = "Description must consist of max 500 characters"; | ||
public static final String BACKLOG_ITEM_DESCRIPTION_FIELD_NAME = "description"; | ||
public static final int BACKLOG_ITEM_DESCRIPTION_MAX_SIZE = 500; | ||
|
||
public static final String BACKLOG_ITEM_STATUS_NULL_MSG = "Item status cannot be null"; | ||
public static final String BACKLOG_ITEM_STATUS_FIELD_NAME = "status"; | ||
|
||
public static final String BACKLOG_ITEM_COMMENTS_NULL_ELEMENTS_MSG = "Comments cannot be null nor contain null elements"; | ||
public static final String BACKLOG_ITEM_COMMENTS_FIELD_NAME = "comments"; | ||
|
||
public static final String BACKLOG_ITEM_ASSIGNEE_NULL_MSG = "Assignee cannot be null"; | ||
public static final String BACKLOG_ITEM_ASSIGNEE_FIELD_NAME = "assignee"; | ||
|
||
public static final String BACKLOG_ITEM_SPRINT_NULL_MSG = "Sprint cannot be null"; | ||
public static final String BACKLOG_ITEM_SPRINT_FIELD_NAME = "sprint"; | ||
|
||
public static final String BACKLOG_ITEM_PROJECT_NULL_MSG = "Project cannot be null"; | ||
public static final String BACKLOG_ITEM_PROJECT_FIELD_NAME = "project"; | ||
|
||
private BacklogItemConstants() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ckend/src/main/java/dev/corn/cornbackend/entities/project/constants/ProjectConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.corn.cornbackend.entities.project.constants; | ||
|
||
|
||
public final class ProjectConstants { | ||
public static final String PROJECT_NAME_FIELD_NAME = "name"; | ||
public static final String PROJECT_NAME_BLANK_MSG = "Name cannot be null and has to contain at least one non-whitespace character"; | ||
public static final String PROJECT_NAME_WRONG_SIZE_MSG = "Name must consist of max 100 characters"; | ||
public static final int PROJECT_NAME_MAX_SIZE = 100; | ||
|
||
public static final String PROJECT_SPRINTS_FIELD_NAME = "sprints"; | ||
public static final String PROJECT_SPRINTS_NULL_ELEMENTS_MSG = "Sprints cannot be null nor contain null elements"; | ||
|
||
public static final String PROJECT_OWNER_FIELD_NAME = "owner"; | ||
public static final String PROJECT_OWNER_NULL_MSG = "Owner cannot be null"; | ||
|
||
private ProjectConstants() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...n/java/dev/corn/cornbackend/entities/project/member/constants/ProjectMemberConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package dev.corn.cornbackend.entities.project.member.constants; | ||
|
||
public final class ProjectMemberConstants { | ||
public static final String PROJECT_MEMBER_BACKLOG_ITEM_FIELD_NAME = "backlogItems"; | ||
public static final String PROJECT_MEMBER_BACKLOG_ITEM_NULL_ELEMENTS_MSG = "BacklogItems cannot be null nor contain null elements"; | ||
|
||
public static final String PROJECT_MEMBER_PROJECT_FIELD_NAME = "project"; | ||
public static final String PROJECT_MEMBER_PROJECT_NULL_MSG = "Project cannot be null"; | ||
|
||
public static final String PROJECT_MEMBER_USER_FIELD_NAME = "user"; | ||
public static final String PROJECT_MEMBER_USER_NULL_MSG = "User cannot be null"; | ||
|
||
|
||
private ProjectMemberConstants() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.