fssa-batch3 / fssa-batch3/sec_b_uthra.boopathy__corejava_project_2
Create user
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### User story :
User created successfully and the user details will be stored in database.
### Pre-requisites:- [ ] user DAO(create user)
- [ ] user table
- [ ] user model
- [ ] user DAO ( create )
- [ ] user service ( create )
#### Validations:
- [ ] Form validation
* user ( null )
* name ( null, empty, pattern )
* email ( null, empty, pattern )
* password ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )
- [ ] Business Validation
* Phone number already exists
* Email already exists
#### Messages:
* User object cannot be null
* Name cannot be null or empty
* Name should be match with the given pattern
* Email cannot be null or empty
* Email Should be match with the given pattern
* Phone number should be match with the given pattern
* Password cannot be null or empty
* Password must contains at least 8 characters
* Password should be match with the given pattern
* User already exists
#### Flow:
> Invalid When a user's phone number is already in use or when the input provided does not meet the criteria, users arise.
```mermaid
graph TD;
A(UserService - Object user) --> B(Form Validation) -- Valid --> C(Business Validation)
B -- Invalid --> H(Validation Exception)
C -- Valid --> D(Argument Passed to UserDAO)
D --> F(Store Value in Database)
C -- Invalid --> G(Validation Exception)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.