[xwiki/xwiki-platform] c104e1: [Misc] Move remaining XWiki.XWikiUsers property na...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: c104e133513f34a146c0208943a27037ad15c969 https://github.com/xwiki/xwiki-platform/commit/c104e133513f34a146c0208943a27... Author: Vincent Massol <[email protected]> Date: 2026-07-06 (Mon, 06 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/mandatory/XWikiUsersDocumentInitializer.java Log Message: ----------- [Misc] Move remaining XWiki.XWikiUsers property names to constants * Follow-up to the SonarCloud S1192 fix: route the remaining hardcoded XWiki.XWikiUsers property-name literals in XWiki through constants. * Add public FIRST_NAME_FIELD / LAST_NAME_FIELD constants in XWikiUsersDocumentInitializer and use them (in the class initializer and in XWiki). * Reuse the existing XWikiUser.ACTIVE_PROPERTY constant for the "active" property instead of duplicating the literal. * Document FIRST_NAME_FIELD/LAST_NAME_FIELD and the EMAIL_FIELD/ PASSWORD_FIELD/VALIDKEY_FIELD constants with @since 18.6.0RC1. * Drop the local XWIKIUSERS_CLASS constant in favor of the existing public XWikiUsersDocumentInitializer.CLASS_REFERENCE_STRING. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications