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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 5.0-milestone-1
    • 4.5
    • Model
    • None
    • Unit
    • Easy

    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

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

              Dates

                Created:
                Updated:
                Resolved: