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

Make XWiki#getDocument(EntityReference) support any kind of reference

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 7.2-milestone-1
    • 7.0.1
    • Old Core
    • None
    • Unit
    • Unknown
    • javadoc

    Description

      Right now it just assume the reference is a document reference that may or may not be complete. But it would be nice to be able to pass any reference an let it find the corresponding document reference before loading the document (extract it when you pass an object reference, complete a space reference with the default space home page, etc).

      Also we should make XWiki#getDocument(EntityReference) public, api.XWiki only expose XWiki#getDocument(DocumentReference).

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: