fssa-batch3 / fssa-batch3/sec_b_karthikeyan.robert__corejava_project_2

delete user details

Open
#4 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 3: Delete User
#### User story
User can delete their profile.
#### Pre-requisites:
- Implements User Service(delete(int id))
- Implement User DAO(delete(int id))
- User table

#### 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.