public class Systemmodule extends SModule
SModule.ModuleDataInit
Constructor and Description |
---|
Systemmodule() |
Modifier and Type | Method and Description |
---|---|
void |
DataUpdateStep1()
launches all the migrators of the module after checking if they have been
executed or not
|
ActionExecution |
getAction(java.lang.String name)
This method allows to get an action from the name, typically when a client
requests a specific action
|
protected ActionExecution |
getActionForDefaultPage() |
DataObject |
getDataObjectBasedOnGenericId(DataObjectId genericid) |
java.lang.String |
getFrontPageMessage() |
SMenu |
getModuleMenu(SPage parentaddonpage)
defines the menu for this module
|
SPageAddon |
getPageAddonForModule()
provides the add-on for the module.
|
SPage |
getShowPageBasedOnObjectId(DataObjectId genericid)
This methods allows to generically call show page on an object.
|
void |
initiateData()
This method allows a module to generate basic data for the module once the
objects have been created.
|
void |
updateDataModelStep1()
this step should generate definition of all objects
|
void |
updateDataModelStep2()
this step should generate fields for all objects
|
void |
updateDataModelStep3()
this step should generate calculated fields for all objects
|
void |
updateDataModelStep4()
this step should update data module for all objects
|
void |
updateDataModelStep5()
generates comments
|
addObjectDefinition, addPage, getCode, getDefaultPage, getEmailMessage, getFrameworkversion, getGenerationdate, getLabel, getModuleversion, getObjectDefinition, isFrameworkfinalversion, setEmailMessage
changeName, cleanName, equals, getName
public ActionExecution getAction(java.lang.String name)
SModule
protected ActionExecution getActionForDefaultPage()
getActionForDefaultPage
in class SModule
public void updateDataModelStep1()
SModule
updateDataModelStep1
in class SModule
public void updateDataModelStep2()
SModule
updateDataModelStep2
in class SModule
public void updateDataModelStep3()
SModule
updateDataModelStep3
in class SModule
public void updateDataModelStep4()
SModule
updateDataModelStep4
in class SModule
public void updateDataModelStep5()
SModule
updateDataModelStep5
in class SModule
public void initiateData()
SModule
initiateData
in class SModule
public SPageAddon getPageAddonForModule()
SModule
getPageAddonForModule
in class SModule
public void DataUpdateStep1()
SModule
DataUpdateStep1
in class SModule
public java.lang.String getFrontPageMessage()
getFrontPageMessage
in class SModule
public SPage getShowPageBasedOnObjectId(DataObjectId genericid)
SModule
getShowPageBasedOnObjectId
in class SModule
public DataObject getDataObjectBasedOnGenericId(DataObjectId genericid)
getDataObjectBasedOnGenericId
in class SModule
genericid
- a data object of unprecised typepublic SMenu getModuleMenu(SPage parentaddonpage)
SModule
getModuleMenu
in class SModule
parentaddonpage
- the page to generate the menu for