fssa-batch3 / fssa-batch3/sec_b_boobalan.ravichandran__corejava_project_2

Update User

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

### Feature: Update User
#### Pre-requisites:
- [ ] Implements User Service(update(int id, User user))
- [ ] Implement User DAO(update(int id, User user))
#### Validations:

- [ ] Form Validation
* Id <= 0
* user null
* name ( null, empty, pattern )
* password ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )

- [ ] Business Validation
* Check whether the ID exists or not
#### Messages:
* Invalid user id
* Invalid User object
* Name cannot be null or empty
* Password cannot be null or empty
* Password doesn't match the required format
* Invalid phone number
* User ID not found
#### Flow:
> Update a User details in a database.

```mermaid
graph TD;
A(Argument Passed to UserService - User Object) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> E(Argument Passed to UserDAO)
E --> F(Store Value in Database)
C -- Invalid --> H(Throw 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.