fssa-batch3 / fssa-batch3/sec_b_vignesh.ramachandran__corejava_project_2
Delete User
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature 3: Delete User
#### User story
User can delete their profile.
#### Pre-requisites:
- Implements User Service(delete(int id))
- Implement User DAO(delete(int id))
#### Validation
- [ ] Form validation
- id <=0
- [ ] Business validation
- Check whether id is in the table or not
#### Messages
- [ ] Invalid Id
- [ ] User Id not found(Business validation)
#### Flow:
```mermaid
graph TD;
A["User Service: User Delete"] --> B["Input Validation"]
B -- Valid --> C0["Business Validation"]
C0 --> C["Whether the ID is in the database or not"]
B -- Invalid --> C1["Validation Exception: Invalid input"]
C -- Yes --> D["User DAO: Delete User"]
D --> E["User Service: User Dleleted(Response)"]
C -- No --> F["Validation Exception: User not found for the given ID (Error Response)"]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.