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

Add an API for resolving a string Space Reference to the Model Script Service

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 5.0-milestone-1
    • Component/s: Model
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Easy
    • Similar issues:

      Description

      Example usage:

      #set ($spaceReference = $services.model.resolveSpace("mywiki:MySpace"))
      ## Passing a resolver hint.
      #set ($spaceReference = $services.model.resolveSpace("MySpace", "current"))
      ## Passing also an entity reference against which the space reference will be resolved.
      #set ($spaceReference = $services.model.resolveSpace("MySpace", "default", $wikiReference))
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                mflorea Marius Dumitru Florea
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: