Search in sources :

Example 1 with UIModuleConfig

use of org.jboss.pnc.common.json.moduleconfig.UIModuleConfig in project pnc by project-ncl.

the class UiConfigRestBuilder method build.

public static UiConfigRest build(Configuration configuration) throws ConfigurationParseException {
    GlobalModuleGroup globalConfig = configuration.getGlobalConfig();
    UIModuleConfig uiModuleConfig = configuration.getModuleConfig(new PncConfigProvider<>(UIModuleConfig.class));
    ScmModuleConfig scmModuleConfig = configuration.getModuleConfig(new PncConfigProvider<>(ScmModuleConfig.class));
    return new UiConfigRest(globalConfig, uiModuleConfig, scmModuleConfig.getInternalScmAuthority());
}
Also used : ScmModuleConfig(org.jboss.pnc.common.json.moduleconfig.ScmModuleConfig) GlobalModuleGroup(org.jboss.pnc.common.json.GlobalModuleGroup) UIModuleConfig(org.jboss.pnc.common.json.moduleconfig.UIModuleConfig)

Aggregations

GlobalModuleGroup (org.jboss.pnc.common.json.GlobalModuleGroup)1 ScmModuleConfig (org.jboss.pnc.common.json.moduleconfig.ScmModuleConfig)1 UIModuleConfig (org.jboss.pnc.common.json.moduleconfig.UIModuleConfig)1