@Role
public interface DocumentRevisionProvider
The revision syntax is <provider hint>:<revision>
, default provide being database (the version of the
document in the history).
Modifier and Type | Method and Description |
---|---|
XWikiDocument |
getRevision(DocumentReference reference,
String revision)
Load the document in the provided revision.
|
XWikiDocument |
getRevision(XWikiDocument document,
String revision)
Load the document in the provided revision.
|
XWikiDocument getRevision(DocumentReference reference, String revision) throws XWikiException
reference
- the reference of the documentrevision
- the revision of the documentXWikiDocument
instance or null if none existingXWikiException
- when failing to load the document revisionXWikiDocument getRevision(XWikiDocument document, String revision) throws XWikiException
document
- the current documentrevision
- the revision of the documentXWikiDocument
instance or null if none existingXWikiException
- when failing to load the document revisionCopyright © 2004–2022 XWiki. All rights reserved.