fssa-batch3 / fssa-batch3/sec_b_vigneshwar.vijayakumar__corejava_project_2

Update User Details

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

#### User Story:
> Existing user can update their details.

#### Pre-requisites:
- [ ] User DAO (update)
- [ ] User Service (update)

#### Validations:

- [ ] Form Validation:
- Id <= 0
- User Object
- User null
- Name ( null, empty, pattern )
- Password ( null, empty, pattern )
- Phone number ( length, >= 600000001 && <= 9999999999 )

- [ ] Business Validation:
- Check whether the Id exists.

#### Messages:
- User Id cannot be less than zero.
- User object cannot be null.
- Name cannot be null or empty.
- Password cannot be null or empty.
- Password does not match the pattern.
- Phone number cannot be less than or more than 10 digits.
- Phone number does not match the pattern.
- Id doesn't exists.

#### Flow:

```mermaid
graph TD;
A(Value Passed to UserService - Id & User object) --> B(Form Validation) -- Valid --> C(Business Validation)
B --Invalid --> H(Validation Exception)
C -- Valid--> D(Value Passed to UserDAO)
D --> E(Update value from Database)
C -- Invalid --> F(Validation Exception)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.