fssa-batch3 / fssa-batch3/sec_b_maruthan.alagar__corejava_project_2
Update User Details
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature 3 : Update User Details
#### User Story:
Shop can update User or Customer details.
#### Prerequisites:
- [ ] Complete User Module Feature 1.
- [ ] Implement User DAO (Update)
#### Validations:
##### Form Validation:
- [ ] Name (Null , Pattern & Length)
- [ ] Phone Number ( Pattern )
- [ ] Email ( Null , Pattern) **(Optional)**
- [ ] Address (Null , Empty , Length) **(Optional)**
##### Business Validation:
- [ ] Check the user is exists or not.
#### Messages:
- Name Cannot be Null or Empty.
- Phone Number doesn't match the Pattern.
- Email doesn't match the Pattern.
- Address Cannot be Empty.
#### Flow:
```mermaid
graph TD;
A[User Service: Update User] --> B[Form Validation]
B -- Yes --> C{Business Validation}
B -- No --> G[Throws Exception]
C -- Yes --> D[User DAO: Update User]
D --> E[User Service: User Successfully Updated]
C -- No --> F[User Service: User Not Found ]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.