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

Reference Resolver should support a null representation to be resolved

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.3 M1
    • 2.2
    • {Unused} Core
    • None
    • Unit
    • Unknown

    Description

      This will make it easier to generate a default reference by doing:

          @Requirement("default/reference")
          private DocumentReferenceResolver<EntityReference> defaultReferenceDocumentReferenceResolver;
      
      documentReference = this.defaultReferenceDocumentReferenceResolver.resolve(null, EntityType.DOCUMENT);
      

      This is especially needed since it's not possible to construct an EntityReference that has an empty or null name.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: