Branch: refs/heads/master
Home:
https://github.com/xwiki/xwiki-platform
Commit: d9830e7a0082f22afd4eef830b22231d91b1b447
https://github.com/xwiki/xwiki-platform/commit/d9830e7a0082f22afd4eef830b22…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2024-11-29 (Fri, 29 Nov 2024)
Changed paths:
M xwiki-platform-core/xwiki-platform-oldcore/pom.xml
R
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/document/DefaultDocumentRequiredRightsManager.java
A
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/document/DefaultSimpleDocumentCache.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/document/DocumentRequiredRightsReader.java
A
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/internal/document/SimpleDocumentCache.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/META-INF/components.txt
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/api/DocumentTest.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/test/MockitoOldcore.java
R
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/document/DefaultDocumentRequiredRightsManagerTest.java
A
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/org/xwiki/internal/document/DefaultSimpleDocumentCacheTest.java
A
xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/main/java/org/xwiki/security/authorization/internal/DefaultDocumentRequiredRightsManager.java
M
xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/main/resources/META-INF/components.txt
A
xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/test/java/org/xwiki/security/authorization/internal/DefaultDocumentRequiredRightsManagerTest.java
M
xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-page/src/main/java/org/xwiki/test/page/PageComponentList.java
Log Message:
-----------
XWIKI-22665: Required rights should be cached (#3695)
* Introduce a new `SimpleDocumentCache` for caching values associated with document
references.
* Use the cache in the `DocumentRequiredRightsManager`.
* Return static instances in `DocumentRequiredRightsReader` to reduce the memory usage of
the cache.
* Remove `DocumentRequiredRightsManager` from the page test component list and instead add
a mock in `MockitoOldcore`.
* Move `DocumentRequiredRightsManager` to the authorization bridge as it fits better there
and with the mock implementation in `MockitoOldcore` there is no need to have it available
for tests.
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications