You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2024/01/08 20:29:00 UTC
[jira] [Created] (SLING-12224) Remove dependency on org.apache.sling.jcr.base
Eric Norman created SLING-12224:
-----------------------------------
Summary: Remove dependency on org.apache.sling.jcr.base
Key: SLING-12224
URL: https://issues.apache.org/jira/browse/SLING-12224
Project: Sling
Issue Type: Improvement
Reporter: Eric Norman
Assignee: Eric Norman
Fix For: JCR Jackrabbit Access Manager 4.0.2
Remove dependency on org.apache.sling.jcr.base since it is only used for AccessControlUtil methods to access the UserManager and PrincipalManager.
Since this bundle is a jackrabbit/oak specific implementation we can use the JackrabbitSession methods to accomplish the same without the dependency.
This refactoring simplifies using sling mocks for tests that interact with this code since you only need to mock the AccessControlManager itself and not also the AccessControlUtil static methods.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)