Search in sources :

Example 1 with CoreModuleModel

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;
}
Also used : CoreModuleModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.CoreModuleModel)

Aggregations

CoreModuleModel (com.serotonin.m2m2.web.mvc.rest.v1.model.modules.CoreModuleModel)1