fssa-batch3 / fssa-batch3/sec_b_uthra.boopathy__corejava_project_2

Delete user

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

### User story :

User successfully deleted.

### Pre-requisites:- [ ] user DAO(delete user)

- [ ] completed feature 1 - create user
- [ ] user dao ( delete )
- [ ] user service ( delete )

#### Validations:

- [ ] Form Validation
* id (less than or equal to 0)
* phone number (greater than 6000000001 and less than 9999999999)
* email (null, empty, pattern)

- [ ] Business Validation
* Check whether the id exist

#### Messages:

* Id cannot be 0 or in negative
* Email cannot be null or empty
* Email should be match with the given pattern
* Phone number should match with the given pattern
* Name cannot be null or empty
* Name should be match with the given pattern
* Password cannot be null or empty
* Password must contains at least 8 characters
* Password should match with the given pattern
* User not found

#### Flow:
> Invalid When a user's phone number is not in use or when the input provided does not meet the criteria, users arise.

```mermaid
graph TD;

A(UserService - int id) --> B(Form Validation) -- Valid --> C(Business Validation)
B -- Invalid --> H(Validation Ecxeption)
C -- Valid --> D(Argument Passed to UserDAO)
D --> F(Set is_active=false in Database)
C -- Invalid --> G(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.