deleted deprecated code

This commit is contained in:
Kevin Frantz
2019-04-13 22:08:13 +02:00
parent b90456fd38
commit 4a74ef9fcc
16 changed files with 19 additions and 905 deletions

View File

@@ -8,6 +8,7 @@ use Infinito\Domain\SecureManagement\SecureRequestedRightCheckerServiceInterface
use Infinito\Domain\ActionManagement\ActionHandlerServiceInterface;
use Infinito\Entity\Source\Primitive\Text\TextSource;
use Infinito\Domain\DataAccessManagement\ActionsResultsDAOServiceInterface;
use Infinito\Domain\ParameterManagement\ValidGetParameterServiceInterface;
/**
* @author kevinfrantz
@@ -34,18 +35,24 @@ final class ProcessService implements ProcessServiceInterface
*/
private $actionsResultsDAOService;
/**
* @var ValidGetParameterServiceInterface
*/
private $validGetParameterService;
/**
* @param ActionHandlerServiceInterface $actionHandlerService
* @param ActionsResultsDAOServiceInterface $actionTemplateDataStore
* @param RequestedActionServiceInterface $requestedActionService
* @param SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService
*/
public function __construct(ActionHandlerServiceInterface $actionHandlerService, ActionsResultsDAOServiceInterface $actionTemplateDataStore, RequestedActionServiceInterface $requestedActionService, SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService)
public function __construct(ActionHandlerServiceInterface $actionHandlerService, ActionsResultsDAOServiceInterface $actionTemplateDataStore, RequestedActionServiceInterface $requestedActionService, SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService, ValidGetParameterServiceInterface $validGetParameterService)
{
$this->actionHandlerService = $actionHandlerService;
$this->actionsResultsDAOService = $actionTemplateDataStore;
$this->requestedActionService = $requestedActionService;
$this->secureRequestedRightCheckerService = $secureRequestedRightCheckerService;
$this->validGetParameterService = $validGetParameterService;
}
/**
@@ -59,15 +66,19 @@ final class ProcessService implements ProcessServiceInterface
if ($this->requestedActionService->hasRequestedEntity() && $this->requestedActionService->getRequestedEntity()->hasIdentity()) {
// READ VIEW
if ($this->secureRequestedRightCheckerService->check($this->requestedActionService)) {
$read = $this->actionHandlerService->handle();
$this->actionsResultsDAOService->setData(ActionType::READ, $read);
$actionType = $this->requestedActionService->getActionType();
switch ($actionType) {
case ActionType::READ:
$read = $this->actionHandlerService->handle();
$this->actionsResultsDAOService->setData($actionType, $read);
break;
case ActionType::UPDATE:
$updateForm = $this->requestedActionFormBuilderService->createByService()->getForm()->createView();
$this->actionTemplateDataStore->setData(ActionType::UPDATE, $updateForm);
}
}
// $this->requestedActionService->setActionType(ActionType::UPDATE);
// UPDATE VIEW
// if ($this->secureRequestedRightCheckerService->check($this->requestedActionService)) {
// $updateForm = $this->requestedActionFormBuilderService->createByService()->getForm()->createView();
// $this->actionTemplateDataStore->setData(ActionType::UPDATE, $updateForm);
// }
// DELETE VIEW
// EXECUTE VIEW
} else {