fssa-batch3 / fssa-batch3/sec_b_mathivanan.pachiyappan__corejava_project_2

Update user details

Open
#3 1 comment 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
>Update user in a database.
#### Pre-requisites:
- [ ] Complete create User feature
- [ ] taluk table
- [ ] taluk DAO (update taluk)
- [ ] taluk service (update (Taluk taluk))
- [ ] user table
- [ ] user DAO (update user )
- [ ] user service ( update (User user) )

#### Validations:
- [ ] Form Validation
* update ( User user )
* user null
* user Id (>0)
* password ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )
* voter Id (>0)
* taluk Id (>0)
* update (Taluk taluk)
* id (>0)
- [ ] Business Validation
* check the user and update
* check the Taluk
#### Messages:
* Invalid User object
* Invalid User Id input
* Invalid password input
* Invalid phone number input
* Invalid voter Id input
* User not found
* Invalid Taluk Object
* Invalid Taluk Id
#### Flow:
```mermaid
graph TD;

A[User Service: Update User] --> B[Form Validation]

B -- Yes --> C[Business Validation]
B -- No --> G[Throws Exception]

C -- Yes --> T[Taluk Validation]
C -- No --> F[User Service: User Not Found]

T -- Yes --> D[User DAO: Update User]
T -- No --> H[Throws Exception]

D --> E[User Service: User Updated]
```

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.