Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11886

Simplify the implementation for main wiki document initializers

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0-milestone-2
    • Fix Version/s: 7.0-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      The current AbstractMandatoryDocumentInitializer helper is focused on local documents, so any main-wiki-only document initializer needs to do unnecessarily complex work in each subclass.

      The proposal is to support this in the helper base class and to expose a new method isMainWikiOnly that can be overridden to return true, signaling that the passed reference is a main wiki reference. Of course, if the passed reference already contains a wiki reference component, the method will be ignored and the reference will be used as initially passed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: