# Move DefaultAuthorizationManager to an internal package

**URL:** <https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926>\
**Category:** Development\
**Tags:** vote\
**Created:** [November 14, 2024, 3:05pm UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926 "2024-11-14T15:05:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [November 14, 2024, 3:05pm UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/1 "2024-11-14T15:05:13Z")

</div>

Hi everyone,

I discovered when working on it that DefaultAuthorizationManager currently belongs to the package `org.xwiki.security.authorization` making it de facto an API.  
IMO that’s a mistake, as this component is an implementation and there’s no reason for it to be an API.

So my proposal is to move it to the package `org.xwiki.security.authorization.internal` starting in XWiki 17.0.0. This is a breaking API change, but I honestly doubt it would have any impact.

I’m opening this vote for 1 week until thursday 21st of november.

Here’s my +1.

Thanks

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [November 14, 2024, 4:23pm UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/2 "2024-11-14T16:23:42Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 15, 2024, 8:31am UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/3 "2024-11-15T08:31:53Z")

</div>

+1 thanks

---

<div class="post-metadata">

**Author:** ![acotiuga](https://forum.xwiki.org/user_avatar/forum.xwiki.org/acotiuga/32/3815_2.png) [@acotiuga](https://forum.xwiki.org/u/acotiuga)\
**Post date:** [November 16, 2024, 12:00pm UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/4 "2024-11-16T12:00:43Z")

</div>

+1

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [November 22, 2024, 9:35am UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/5 "2024-11-22T09:35:02Z")

</div>

Closing this vote with 4 +1. I created a ticket for doing the improvment: [Loading...](https://jira.xwiki.org/browse/XWIKI-22683)

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [January 7, 2025, 9:06am UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/6 "2025-01-07T09:06:50Z")

</div>

> [@surli](#):
>
> but I honestly doubt it would have any impact.

There’s actually some impacts internally for the move: a few APIs, in particular in Right class, needs to be publicly exposed while they were package private before. See [XWIKI-22683: Move org.xwiki.security.authorization.DefaultAuthorizationManager to internal package by surli · Pull Request #3791 · xwiki/xwiki-platform · GitHub](https://github.com/xwiki/xwiki-platform/pull/3791) so let me know if you want to change your opinion with that info: I will merge the PR at the end of the week if there’s no more comment.

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [January 15, 2025, 3:00pm UTC](https://forum.xwiki.org/t/move-defaultauthorizationmanager-to-an-internal-package/15926/7 "2025-01-15T15:00:23Z")

</div>

FTR I’m putting the changes on hold for now since @MichaelHamann made good points against my proposed changes and there’s no hurry to perform this move.
