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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.2-milestone-1
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      javadoc
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: