Hi,
the title of this proposal is pretty much self-explanatory: right now we have a class DocumentVersionReference
whose goal is to declare a reference to a specific document version which is an API exposed in xwiki-platform-extension-handler-xar
module under org.xwiki.extension.xar.job.diff
package.
IMO this API should be part of the model since it’s a common UC to needs a reference to a specific document version. As a matter of fact, I’m opening this proposal today because I have the need in an extension I’m working on, and I was being re-inventing the wheel.
Now moving the API to another module is easy, but moving it to another package will involve some addition for backward compatibility support.
So I propose to make the following changes:
- Move DocumentVersionReference class to
xwiki-platform-model
underorg.xwiki.model.reference
package - Deprecate
org.xwiki.extension.xar.job.diff.DocumentVersionReference
and move it to a legacy module
WDYT?