public abstract class AbstractMandatoryClassInitializer extends AbstractMandatoryDocumentInitializer
documentSheetBinder, resolver, wikiDescriptorManagerDEFAULT_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, updateTitlepublic 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)
MandatoryDocumentInitializerupdateDocument in interface MandatoryDocumentInitializerupdateDocument in class AbstractMandatoryDocumentInitializerdocument - 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–2021 XWiki. All rights reserved.