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

Introduce relative UserReference

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 17.5.0
    • User
    • None
    • Unknown

    Description

      Sometimes, it's useful to refer to a user in the context of the current wiki. When using entity references, it's possible. XWiki.USERNAME will refer to the USERNAME user in the current wiki.

      It is currently not possible to use a UserReference for this. DocumentUserReference can be used to create a user reference from an entity reference, but this entity reference must be a DocumentReference, which requires a wiki to be set in the reference.

      This means that APIs dealing with local users cannot currently use the UserReference and must use LocalDocumentReference or EntityReference instead, which works but is weaker.

      A LocalDocumentUserReference or an EntityUserRference taking a relative reference would be nice to have.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rjakse Raphaƫl Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: