From b8029bb7cc28d97d10f363d8538cd7992f8c054b Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 30 May 2019 16:52:02 +0200 Subject: [PATCH] Renamed domain RequestManagement to Request --- application/symfony/config/packages/doctrine.yaml | 2 +- application/symfony/config/packages/twig.yaml | 2 +- application/symfony/config/services.yaml | 8 ++++---- .../src/Attribut/RequestedEntityAttribut.php | 2 +- .../Attribut/RequestedEntityAttributInterface.php | 2 +- .../symfony/src/Attribut/RequestedRightAttribut.php | 2 +- .../Attribut/RequestedRightAttributInterface.php | 2 +- .../src/Controller/API/Rest/LayerController.php | 2 +- .../Domain/Action/ActionDependenciesDAOService.php | 4 ++-- .../ActionDependenciesDAOServiceInterface.php | 2 +- .../symfony/src/Domain/Dom/EntityDomService.php | 2 +- .../src/Domain/Form/RequestedActionFormBuilder.php | 2 +- .../Form/RequestedActionFormBuilderInterface.php | 2 +- .../Form/RequestedActionFormBuilderService.php | 2 +- .../symfony/src/Domain/Process/ProcessService.php | 2 +- application/symfony/src/Domain/README.md | 2 +- .../.meta/uml-class-diagram.dia | Bin .../.meta/uml-class-diagram.svg | 0 .../Action/RequestedAction.php | 6 +++--- .../Action/RequestedActionInterface.php | 4 ++-- .../Action/RequestedActionService.php | 4 ++-- .../Action/RequestedActionServiceInterface.php | 2 +- .../Action/RequestedActionStack.php | 10 +++++----- .../Action/RequestedActionStackInterface.php | 2 +- .../Entity/LazyRequestedEntity.php | 4 ++-- .../Entity/RequestedEntity.php | 10 +++++----- .../Entity/RequestedEntityInterface.php | 2 +- .../Entity/RequestedEntityService.php | 2 +- .../Entity/RequestedEntityServiceInterface.php | 2 +- .../Domain/{RequestManagement => Request}/README.md | 0 .../Right/AbstractRequestedRightFacade.php | 6 +++--- .../Right/RequestedRight.php | 10 +++++----- .../Right/RequestedRightInterface.php | 2 +- .../Right/RequestedRightService.php | 4 ++-- .../Right/RequestedRightServiceInterface.php | 2 +- .../User/RequestedUser.php | 8 ++++---- .../User/RequestedUserInterface.php | 4 ++-- .../User/RequestedUserService.php | 4 ++-- .../User/RequestedUserServiceInterface.php | 2 +- .../RightManagement/RightTransformerService.php | 2 +- .../RightTransformerServiceInterface.php | 2 +- .../SecureRequestedRightCheckerService.php | 2 +- .../SecureRequestedRightCheckerServiceInterface.php | 2 +- .../TemplateManagement/TemplateNameService.php | 2 +- .../src/Repository/Source/SourceRepository.php | 2 +- .../Repository/Source/SourceRepositoryInterface.php | 2 +- .../Action/ActionHandlerServiceIntegrationTest.php | 2 +- .../Create/CreateSourceActionIntegrationTest.php | 10 +++++----- ...estedActionFormBuilderServiceIntegrationTest.php | 6 +++--- ...LayerRepositoryFactoryServiceIntegrationTest.php | 2 +- .../RequestedActionServiceIntegrationTest.php | 6 +++--- .../RequestedEntityServiceIntegrationTest.php | 4 ++-- .../Right/RequestedRightServiceIntegrationTest.php | 4 ++-- .../User/RequestedUserServiceIntegrationTest.php | 4 ++-- .../SecureRequestedRightCheckerIntegrationTest.php | 4 ++-- .../Unit/Attribut/RequestedEntityAttributTest.php | 2 +- .../Unit/Attribut/RequestedRightAttributTest.php | 2 +- .../Unit/Domain/Action/ActionFactoryServiceTest.php | 6 +++--- .../tests/Unit/Domain/Action/ActionServiceTest.php | 6 +++--- .../Domain/Action/Create/CreateSourceActionTest.php | 2 +- .../Domain/Action/Read/ReadSourceActionTest.php | 4 ++-- .../tests/Unit/Domain/Dom/EntityDomServiceTest.php | 2 +- .../Domain/Form/RequestedActionFormBuilderTest.php | 2 +- .../Action/RequestedActionServiceTest.php | 8 ++++---- .../Action/RequestedActionTest.php | 12 ++++++------ .../Entity/LazyRequestedEntityTest.php | 8 ++++---- .../Entity/RequestedEntityTest.php | 6 +++--- .../Right/AbstractRequestedRightFacadeTest.php | 10 +++++----- .../Right/RequestedRightTest.php | 10 +++++----- .../User/RequestedUserRightServiceTest.php | 8 ++++---- .../User/RequestedUserRightTest.php | 8 ++++---- .../RightManagement/RightTransformerServiceTest.php | 4 ++-- .../SecureRequestedRightCheckerTest.php | 6 +++--- .../TemplateManagement/TemplateNameServiceTest.php | 4 ++-- .../Unit/Repository/Source/SourceRepositoryTest.php | 2 +- 75 files changed, 149 insertions(+), 149 deletions(-) rename application/symfony/src/Domain/{RequestManagement => Request}/.meta/uml-class-diagram.dia (100%) rename application/symfony/src/Domain/{RequestManagement => Request}/.meta/uml-class-diagram.svg (100%) rename application/symfony/src/Domain/{RequestManagement => Request}/Action/RequestedAction.php (67%) rename application/symfony/src/Domain/{RequestManagement => Request}/Action/RequestedActionInterface.php (71%) rename application/symfony/src/Domain/{RequestManagement => Request}/Action/RequestedActionService.php (74%) rename application/symfony/src/Domain/{RequestManagement => Request}/Action/RequestedActionServiceInterface.php (77%) rename application/symfony/src/Domain/{RequestManagement => Request}/Action/RequestedActionStack.php (77%) rename application/symfony/src/Domain/{RequestManagement => Request}/Action/RequestedActionStackInterface.php (94%) rename application/symfony/src/Domain/{RequestManagement => Request}/Entity/LazyRequestedEntity.php (91%) rename application/symfony/src/Domain/{RequestManagement => Request}/Entity/RequestedEntity.php (93%) rename application/symfony/src/Domain/{RequestManagement => Request}/Entity/RequestedEntityInterface.php (93%) rename application/symfony/src/Domain/{RequestManagement => Request}/Entity/RequestedEntityService.php (90%) rename application/symfony/src/Domain/{RequestManagement => Request}/Entity/RequestedEntityServiceInterface.php (69%) rename application/symfony/src/Domain/{RequestManagement => Request}/README.md (100%) rename application/symfony/src/Domain/{RequestManagement => Request}/Right/AbstractRequestedRightFacade.php (93%) rename application/symfony/src/Domain/{RequestManagement => Request}/Right/RequestedRight.php (89%) rename application/symfony/src/Domain/{RequestManagement => Request}/Right/RequestedRightInterface.php (92%) rename application/symfony/src/Domain/{RequestManagement => Request}/Right/RequestedRightService.php (76%) rename application/symfony/src/Domain/{RequestManagement => Request}/Right/RequestedRightServiceInterface.php (75%) rename application/symfony/src/Domain/{RequestManagement => Request}/User/RequestedUser.php (84%) rename application/symfony/src/Domain/{RequestManagement => Request}/User/RequestedUserInterface.php (74%) rename application/symfony/src/Domain/{RequestManagement => Request}/User/RequestedUserService.php (83%) rename application/symfony/src/Domain/{RequestManagement => Request}/User/RequestedUserServiceInterface.php (69%) rename application/symfony/tests/Integration/Domain/{RequestManagement => Request}/Action/RequestedActionServiceIntegrationTest.php (83%) rename application/symfony/tests/Integration/Domain/{RequestManagement => Request}/Entity/RequestedEntityServiceIntegrationTest.php (85%) rename application/symfony/tests/Integration/Domain/{RequestManagement => Request}/Right/RequestedRightServiceIntegrationTest.php (85%) rename application/symfony/tests/Integration/Domain/{RequestManagement => Request}/User/RequestedUserServiceIntegrationTest.php (85%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/Action/RequestedActionServiceTest.php (70%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/Action/RequestedActionTest.php (87%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/Entity/LazyRequestedEntityTest.php (93%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/Entity/RequestedEntityTest.php (96%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/Right/AbstractRequestedRightFacadeTest.php (92%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/Right/RequestedRightTest.php (93%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/User/RequestedUserRightServiceTest.php (69%) rename application/symfony/tests/Unit/Domain/{RequestManagement => Request}/User/RequestedUserRightTest.php (94%) diff --git a/application/symfony/config/packages/doctrine.yaml b/application/symfony/config/packages/doctrine.yaml index 8c3ebc3..24fa211 100644 --- a/application/symfony/config/packages/doctrine.yaml +++ b/application/symfony/config/packages/doctrine.yaml @@ -30,4 +30,4 @@ doctrine: prefix: 'Infinito\Entity' alias: App #resolve_target_entities: - # Infinito\Domain\RequestManagement\Right\RequestedRightServiceInterface: Infinito\Domain\RequestManagement\Right\RequestedRightService2 \ No newline at end of file + # Infinito\Domain\Request\Right\RequestedRightServiceInterface: Infinito\Domain\Request\Right\RequestedRightService2 \ No newline at end of file diff --git a/application/symfony/config/packages/twig.yaml b/application/symfony/config/packages/twig.yaml index 023081f..9751f54 100644 --- a/application/symfony/config/packages/twig.yaml +++ b/application/symfony/config/packages/twig.yaml @@ -5,7 +5,7 @@ twig: form_themes: ['bootstrap_4_layout.html.twig'] globals: layer_action_map: "@Infinito\\Domain\\Layer\\LayerActionMap" - requested_action_service: "@Infinito\\Domain\\RequestManagement\\Action\\RequestedActionService" + requested_action_service: "@Infinito\\Domain\\Request\\Action\\RequestedActionService" action_icon_class_map: "@Infinito\\Domain\\TwigManagement\\ActionIconClassMap" layer_icon_class_map: "@Infinito\\Domain\\TwigManagement\\LayerIconClassMap" action_template_name_service: "@Infinito\\Domain\\TemplateManagement\\ActionTemplateNameServiceInterface" diff --git a/application/symfony/config/services.yaml b/application/symfony/config/services.yaml index 0616f37..048187d 100644 --- a/application/symfony/config/services.yaml +++ b/application/symfony/config/services.yaml @@ -38,15 +38,15 @@ services: Infinito\Domain\TemplateManagement\TemplateNameServiceInterface: "@Infinito\\Domain\\TemplateManagement\\TemplateNameService" # Needed for integration tests - Infinito\Domain\RequestManagement\Entity\RequestedEntityService: + Infinito\Domain\Request\Entity\RequestedEntityService: public: true - Infinito\Domain\RequestManagement\Right\RequestedRightService: + Infinito\Domain\Request\Right\RequestedRightService: public: true Infinito\Domain\UserManagement\UserSourceDirectorService: public: true - Infinito\Domain\RequestManagement\User\RequestedUserService: + Infinito\Domain\Request\User\RequestedUserService: public: true - Infinito\Domain\RequestManagement\Action\RequestedActionService: + Infinito\Domain\Request\Action\RequestedActionService: public: true Infinito\Domain\Form\RequestedActionFormBuilderService: public: true diff --git a/application/symfony/src/Attribut/RequestedEntityAttribut.php b/application/symfony/src/Attribut/RequestedEntityAttribut.php index 46037cd..2d74742 100644 --- a/application/symfony/src/Attribut/RequestedEntityAttribut.php +++ b/application/symfony/src/Attribut/RequestedEntityAttribut.php @@ -2,7 +2,7 @@ namespace Infinito\Attribut; -use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Attribut/RequestedEntityAttributInterface.php b/application/symfony/src/Attribut/RequestedEntityAttributInterface.php index 0beac71..5380628 100644 --- a/application/symfony/src/Attribut/RequestedEntityAttributInterface.php +++ b/application/symfony/src/Attribut/RequestedEntityAttributInterface.php @@ -2,7 +2,7 @@ namespace Infinito\Attribut; -use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Attribut/RequestedRightAttribut.php b/application/symfony/src/Attribut/RequestedRightAttribut.php index d75c4a2..7c0c002 100644 --- a/application/symfony/src/Attribut/RequestedRightAttribut.php +++ b/application/symfony/src/Attribut/RequestedRightAttribut.php @@ -2,7 +2,7 @@ namespace Infinito\Attribut; -use Infinito\Domain\RequestManagement\Right\RequestedRightInterface; +use Infinito\Domain\Request\Right\RequestedRightInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Attribut/RequestedRightAttributInterface.php b/application/symfony/src/Attribut/RequestedRightAttributInterface.php index 7ab636a..ae78bd9 100644 --- a/application/symfony/src/Attribut/RequestedRightAttributInterface.php +++ b/application/symfony/src/Attribut/RequestedRightAttributInterface.php @@ -2,7 +2,7 @@ namespace Infinito\Attribut; -use Infinito\Domain\RequestManagement\Right\RequestedRightInterface; +use Infinito\Domain\Request\Right\RequestedRightInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Controller/API/Rest/LayerController.php b/application/symfony/src/Controller/API/Rest/LayerController.php index fe78b0e..012456c 100644 --- a/application/symfony/src/Controller/API/Rest/LayerController.php +++ b/application/symfony/src/Controller/API/Rest/LayerController.php @@ -6,7 +6,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use Infinito\Controller\API\AbstractAPIController; -use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\Domain\MVC\MVCRoutineServiceInterface; use Infinito\DBAL\Types\ActionType; use Infinito\Attribut\ClassAttributInterface; diff --git a/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php b/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php index ca65a7f..9ca395e 100644 --- a/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php +++ b/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php @@ -2,7 +2,7 @@ namespace Infinito\Domain\Action; -use Infinito\Domain\RequestManagement\Action\RequestedActionInterface; +use Infinito\Domain\Request\Action\RequestedActionInterface; use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; @@ -10,7 +10,7 @@ use Infinito\Repository\RepositoryInterface; use Symfony\Component\Form\FormBuilderInterface; use Doctrine\ORM\EntityManagerInterface; use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; -use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\Domain\SecureManagement\SecureRequestedRightCheckerServiceInterface; /** diff --git a/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php b/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php index 8aa132c..b2b5b1c 100644 --- a/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php +++ b/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php @@ -2,7 +2,7 @@ namespace Infinito\Domain\Action; -use Infinito\Domain\RequestManagement\Action\RequestedActionInterface; +use Infinito\Domain\Request\Action\RequestedActionInterface; use Symfony\Component\HttpFoundation\Request; use Infinito\Repository\RepositoryInterface; use Symfony\Component\Form\FormBuilderInterface; diff --git a/application/symfony/src/Domain/Dom/EntityDomService.php b/application/symfony/src/Domain/Dom/EntityDomService.php index cebfba5..a12406d 100644 --- a/application/symfony/src/Domain/Dom/EntityDomService.php +++ b/application/symfony/src/Domain/Dom/EntityDomService.php @@ -4,7 +4,7 @@ namespace Infinito\Domain\Dom; use Infinito\Entity\EntityInterface; use Doctrine\Common\Collections\Collection; -use Infinito\Domain\RequestManagement\Entity\RequestedEntityServiceInterface; +use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Layer\LayerInterfaceMap; use FOS\UserBundle\Model\UserInterface; diff --git a/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php b/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php index 778fd78..622d4a1 100644 --- a/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php +++ b/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php @@ -3,7 +3,7 @@ namespace Infinito\Domain\Form; use Symfony\Component\Form\FormBuilderInterface; -use Infinito\Domain\RequestManagement\Action\RequestedActionInterface; +use Infinito\Domain\Request\Action\RequestedActionInterface; use Symfony\Component\Form\FormFactoryInterface; use Infinito\Exception\Attribut\UndefinedAttributException; diff --git a/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php b/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php index 02efee0..785a217 100644 --- a/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php +++ b/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php @@ -3,7 +3,7 @@ namespace Infinito\Domain\Form; use Symfony\Component\Form\FormBuilderInterface; -use Infinito\Domain\RequestManagement\Action\RequestedActionInterface; +use Infinito\Domain\Request\Action\RequestedActionInterface; /** * Allowes to create an form which fits to an entity. diff --git a/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php b/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php index 6613ec6..ab6b958 100644 --- a/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php +++ b/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php @@ -3,7 +3,7 @@ namespace Infinito\Domain\Form; use Symfony\Component\Form\FormBuilderInterface; -use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Symfony\Component\Form\FormFactoryInterface; /** diff --git a/application/symfony/src/Domain/Process/ProcessService.php b/application/symfony/src/Domain/Process/ProcessService.php index ff87c41..6e95a2d 100644 --- a/application/symfony/src/Domain/Process/ProcessService.php +++ b/application/symfony/src/Domain/Process/ProcessService.php @@ -2,7 +2,7 @@ namespace Infinito\Domain\Process; -use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\Domain\SecureManagement\SecureRequestedRightCheckerServiceInterface; use Infinito\Domain\Action\ActionHandlerServiceInterface; use Infinito\Entity\Source\Primitive\Text\TextSource; diff --git a/application/symfony/src/Domain/README.md b/application/symfony/src/Domain/README.md index 4f38de8..1a5ff1b 100644 --- a/application/symfony/src/Domain/README.md +++ b/application/symfony/src/Domain/README.md @@ -34,7 +34,7 @@ Maps a path to a namespace. ## Request Management -Offers classes to manage requests for rights, users and sources. A [detailed description](./RequestManagement/README.md) is available. +Offers classes to manage requests for rights, users and sources. A [detailed description](./Request/README.md) is available. ## Right Management ### Right Checker ### Checks if the crud, layer and source combination is granted by a right. diff --git a/application/symfony/src/Domain/RequestManagement/.meta/uml-class-diagram.dia b/application/symfony/src/Domain/Request/.meta/uml-class-diagram.dia similarity index 100% rename from application/symfony/src/Domain/RequestManagement/.meta/uml-class-diagram.dia rename to application/symfony/src/Domain/Request/.meta/uml-class-diagram.dia diff --git a/application/symfony/src/Domain/RequestManagement/.meta/uml-class-diagram.svg b/application/symfony/src/Domain/Request/.meta/uml-class-diagram.svg similarity index 100% rename from application/symfony/src/Domain/RequestManagement/.meta/uml-class-diagram.svg rename to application/symfony/src/Domain/Request/.meta/uml-class-diagram.svg diff --git a/application/symfony/src/Domain/RequestManagement/Action/RequestedAction.php b/application/symfony/src/Domain/Request/Action/RequestedAction.php similarity index 67% rename from application/symfony/src/Domain/RequestManagement/Action/RequestedAction.php rename to application/symfony/src/Domain/Request/Action/RequestedAction.php index 010dba8..8c2c806 100644 --- a/application/symfony/src/Domain/RequestManagement/Action/RequestedAction.php +++ b/application/symfony/src/Domain/Request/Action/RequestedAction.php @@ -1,9 +1,9 @@