@Role
public interface MandatoryDocumentInitializer
The role hint should be the local (or absolute if it's supposed to be used only for a specific wiki) reference of the document so that I can easily be found.
An additional Priority
annotation can be added to affect the order in which the
initializer will be executed when a wiki is initialized. If not specified, 1000 will be
assumed.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRIORITY
Default priority with which a document initializer will be executed along side other document initializers.
|
Modifier and Type | Method and Description |
---|---|
EntityReference |
getDocumentReference() |
boolean |
updateDocument(XWikiDocument document)
Update the provided document according to the need.
|
static final int DEFAULT_PRIORITY
EntityReference getDocumentReference()
boolean updateDocument(XWikiDocument document)
document
- the existing document to updateCopyright © 2004–2017 XWiki. All rights reserved.