fssa-batch3 / fssa-batch3/sec_b_kishore.sugumar__corejava_project_2

Update User

Open
#3 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: Update User
> The update user feature update exists users in the users table of the database.
#### Pre-requisites:
* Create user table
* User entity
* User model
* user DAO (update)
* user service
#### Validations:

* Form Validation
* User Object
* user null
* name ( null, empty, pattern )
* email ( null, empty, pattern )
* password ( null, empty, pattern )
* Location ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )
* Business Validation
* user does exists or not
* Status is active
#### Message:

* Invalid user input
* Name cannot be null or empty
* Email cannot be null or empty
* Password cannot be null or empty
* Location cannot be null or empty
* Name cannot be null or empty
* Location cannot be null or empty
* Invalid number input
* Invalid email pattern
* Invalid name pattern
* Invalid location pattern
* User doesn't exists
#### Flow:
> Invalid Users occur when a user doesn't exist in the database or when the input provided doesn't meet the criteria.
```mermaid
graph TD;
A(Argument Passed to UserService - User Object) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> D(Argument Passed to UserDAO)
D --> E(Update Value in Database)
C -- Invalid --> F(Throw 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.