Search in sources :

Example 1 with Application

use of io.gravitee.rest.api.model.settings.Application in project gravitee-management-rest-api by gravitee-io.

the class ApplicationTypeServiceImpl method getApplicationTypesConfiguration.

public JsonNode getApplicationTypesConfiguration() {
    Application applicationConfig = configService.getPortalSettings().getApplication();
    Application.ApplicationTypes types = applicationConfig.getTypes();
    if (!applicationConfig.getRegistration().getEnabled()) {
        types.getBrowserType().setEnabled(false);
        types.getBackendToBackendType().setEnabled(false);
        types.getNativeType().setEnabled(false);
        types.getWebType().setEnabled(false);
    }
    return objectMapper.convertValue(types, JsonNode.class);
}
Also used : Application(io.gravitee.rest.api.model.settings.Application)

Aggregations

Application (io.gravitee.rest.api.model.settings.Application)1