-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
629 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
src/main/java/adapters/controllers/ClientRegisterControl.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package adapters.controllers; | ||
|
||
import usecases.inputboundary.UserRegisterInputBoundary; | ||
import usecases.requests.RegistrationData; | ||
import usecases.responses.BaseResponseModel; | ||
|
||
/** | ||
* This class represents responsible for handling user registration. | ||
*/ | ||
public class RegisterControl { | ||
private final UserRegisterInputBoundary inputBoundary; | ||
|
||
/** | ||
* Constructs a new instance of ClientRegisterControl. | ||
* | ||
* @param inputBoundary The input boundary for user registration. | ||
*/ | ||
public RegisterControl(UserRegisterInputBoundary inputBoundary) { | ||
this.inputBoundary = inputBoundary; | ||
} | ||
|
||
/** | ||
* Creates a new user registration based on the provided information. | ||
* | ||
* @param requestModel @return A RegisterResponseModel indicating the result of the registration attempt. | ||
*/ | ||
public BaseResponseModel create(RegistrationData requestModel){ | ||
return inputBoundary.create(requestModel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/usecases/interactors/AttorneyRegisterInteractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package usecases.interactors; | ||
|
||
import entities.factories.AttorneyFactory; | ||
import entities.factories.UserFactory; | ||
import entities.user.Attorney; | ||
import usecases.gateway.AttorneyGateway; | ||
import usecases.gateway.UserGateway; | ||
import usecases.outputboundary.BaseOutputBoundary; | ||
|
||
public class AttorneyRegisterInteractor extends UserRegisterInteractor<AttorneyGateway, AttorneyFactory, Attorney> { | ||
public AttorneyRegisterInteractor(AttorneyGateway userGateway, BaseOutputBoundary outputBoundary, AttorneyFactory userFactory) { | ||
super(userGateway, outputBoundary, userFactory); | ||
} | ||
} |
Oops, something went wrong.