[!!!][TASK] Doctrine: Simplify restriction handling 49/48049/29
authorHelmut Hummel <info@helhum.io>
Fri, 3 Jun 2016 05:46:45 +0000 (07:46 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Fri, 3 Jun 2016 10:47:43 +0000 (12:47 +0200)
commitd31e9a6964ce5610e9ba18ed6f7eca5c8831ce4b
tree6e48bd802012fe9c30289fe80d2f7585ea91e047
parent1baca11082a5cda48c151cff635d932226a248d3
[!!!][TASK] Doctrine: Simplify restriction handling

To make the set of restrictions that are in effect when creating queries
with the QueryBuilder becomes more understandable,
we need to remove the QueryContext and the magic applied to that and replace it
with the following behavior:

delete, hidden, starttime, endtime restrictions are always enabled
and need to be removed if needed.
Other restrictions need to be provided manually depending on the desired result.

Resolves: #76167
Resolves: #76264
Releases: master
Change-Id: Iaf0cb08475ed44966838c3fbdd5756d3ba6ebcc1
Reviewed-on: https://review.typo3.org/48049
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
57 files changed:
typo3/sysext/backend/Classes/Backend/Avatar/DefaultAvatarProvider.php
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/backend/Classes/Configuration/TranslationConfigurationProvider.php
typo3/sysext/backend/Classes/History/RecordHistory.php
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
typo3/sysext/backend/Classes/Tree/View/PagePositionMap.php
typo3/sysext/belog/Classes/Controller/SystemInformationController.php
typo3/sysext/beuser/Classes/Domain/Repository/BackendUserSessionRepository.php
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Database/Connection.php
typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php
typo3/sysext/core/Classes/Database/Query/QueryBuilder.php
typo3/sysext/core/Classes/Database/Query/QueryContext.php [deleted file]
typo3/sysext/core/Classes/Database/Query/QueryContextType.php [deleted file]
typo3/sysext/core/Classes/Database/Query/QueryRestrictionBuilder.php [deleted file]
typo3/sysext/core/Classes/Database/Query/Restriction/AbstractRestrictionContainer.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/BackendWorkspaceRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/DefaultRestrictionContainer.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/DeletedRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/EndTimeRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendGroupRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendRestrictionContainer.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendWorkspaceRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/HiddenRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/QueryRestrictionContainerInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/QueryRestrictionInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/RootLevelRestriction.php [new file with mode: 0644]
typo3/sysext/core/Classes/Database/Query/Restriction/StartTimeRestriction.php [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/8.1/Feature-75454-DoctrineDBALForDatabaseConnections.rst
typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php
typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php
typo3/sysext/core/Tests/Unit/Database/Query/QueryContextTest.php [deleted file]
typo3/sysext/core/Tests/Unit/Database/Query/QueryRestrictionBuilderTest.php [deleted file]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/BackendWorkspaceRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DefaultRestrictionContainerTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DeletedRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/EndTimeRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendGroupRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/HiddenRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/RootLevelRestrictionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/StartTimeRestrictionTest.php [new file with mode: 0644]
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php
typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php
typo3/sysext/filelist/Classes/FileFacade.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/lowlevel/Classes/MissingRelationsCommand.php
typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php
typo3/sysext/recycler/Classes/Domain/Model/Tables.php
typo3/sysext/recycler/Classes/Task/CleanerTask.php
typo3/sysext/recycler/Classes/Utility/RecyclerUtility.php
typo3/sysext/recycler/Tests/Unit/Task/CleanerTaskTest.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php
typo3/sysext/sys_note/Classes/Core/Bootstrap.php