public abstract class AbstractMandatoryClassInitializer extends AbstractMandatoryDocumentInitializer
documentSheetBinder, resolver, wikiDescriptorManager
DEFAULT_PRIORITY
Constructor and Description |
---|
AbstractMandatoryClassInitializer(EntityReference reference) |
AbstractMandatoryClassInitializer(EntityReference reference,
String title) |
Modifier and Type | Method and Description |
---|---|
protected void |
createClass(BaseClass xclass) |
protected boolean |
updateClassDocumentFields(XWikiDocument document)
Update document with standard class related properties.
|
boolean |
updateDocument(XWikiDocument document)
Update the provided document according to the need.
|
protected boolean |
updateDocumentSheet(XWikiDocument document)
Update document sheet.
|
getDocumentReference, getTitle, initialize, intFromBoolean, isMainWikiOnly, updateDocumentFields, updateTitle
public AbstractMandatoryClassInitializer(EntityReference reference)
reference
- the reference of the document to update. Can be either local or absolute depending if the
document is associated to a specific wiki or notpublic AbstractMandatoryClassInitializer(EntityReference reference, String title)
reference
- the reference of the document to update. Can be either local or absolute depending if the
document is associated to a specific wiki or nottitle
- the title of the documentpublic boolean updateDocument(XWikiDocument document)
MandatoryDocumentInitializer
updateDocument
in interface MandatoryDocumentInitializer
updateDocument
in class AbstractMandatoryDocumentInitializer
document
- the existing document to updateprotected void createClass(BaseClass xclass)
xclass
- the class to createprotected boolean updateClassDocumentFields(XWikiDocument document)
document
- the document to updateprotected boolean updateDocumentSheet(XWikiDocument document)
document
- the document to updateCopyright © 2004–2022 XWiki. All rights reserved.