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

Simplify the implementation for main wiki document initializers

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 7.0-rc-1
    • 7.0-milestone-2
    • Old Core
    • None
    • Unknown
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: