fssa-batch3 / fssa-batch3/sec_b_mathivanan.pachiyappan__corejava_project_2
Create new user
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature: Create User
>Create a new user in a database.
#### Pre-requisites:
- [ ] taluk table
- [ ] taluk DAO (create taluk)
- [ ] taluk service (create (Taluk taluk))
- [ ] user table
- [ ] user DAO (create user )
- [ ] user service ( create (User user) )
#### Validations:
- [ ] Form Validation
* create( User user )
* user null
* user id (>0)
* password ( null, empty, pattern )
* voter id (>0)
* taluk id (>0)
* phone number ( length, >= 600000001 && <= 9999999999 )
create( Taluk taluk)
* id (>0)
- [ ] Business Validation
* check the User Already exists
* check the Taluk
#### Messages:
* Invalid User object
* Invalid password input
* Invalid phone number input
* Invalid Voter Id input
* User already exists
* Invalid Taluk object
* Invalid Taluk id
#### Flow:
```mermaid
graph TD;
A[User Service: Create User] --> B[Form Validation]
B -- Yes --> C[Business Validation]
B -- No --> G[Throws Exception]
C -- Yes --> T[Taluk Validation]
C -- No --> F[User Service: User Already Exists]
T -- Yes --> D[User DAO: Create User]
T -- No --> H[Throws Exception]
D --> E[User Service: User Created]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.