use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.CoreModuleModel in project ma-modules-public by infiniteautomation.
the class ModulesRestController method getCoreModule.
/**
* Create a Core Module Model
*
* @return
*/
private ModuleModel getCoreModule() {
CoreModuleModel coreModel = new CoreModuleModel(ModuleRegistry.getCoreModule());
coreModel.setGuid(Providers.get(ICoreLicense.class).getGuid());
coreModel.setInstanceDescription(SystemSettingsDao.getValue(SystemSettingsDao.INSTANCE_DESCRIPTION));
coreModel.setDistributor(Common.envProps.getString("distributor"));
coreModel.setUpgradeVersionState(SystemSettingsDao.getIntValue(SystemSettingsDao.UPGRADE_VERSION_STATE));
return coreModel;
}
Aggregations