Search in sources :

Example 1 with WebappConfiguration

use of org.apache.archiva.configuration.WebappConfiguration in project archiva by apache.

the class DefaultArchivaAdministration method getUiConfiguration.

@Override
public UiConfiguration getUiConfiguration() throws RepositoryAdminException {
    WebappConfiguration webappConfiguration = getArchivaConfiguration().getConfiguration().getWebapp();
    if (webappConfiguration == null) {
        return null;
    }
    UserInterfaceOptions userInterfaceOptions = webappConfiguration.getUi();
    if (userInterfaceOptions == null) {
        return null;
    }
    return getModelMapper().map(userInterfaceOptions, UiConfiguration.class);
}
Also used : WebappConfiguration(org.apache.archiva.configuration.WebappConfiguration) UserInterfaceOptions(org.apache.archiva.configuration.UserInterfaceOptions)

Aggregations

UserInterfaceOptions (org.apache.archiva.configuration.UserInterfaceOptions)1 WebappConfiguration (org.apache.archiva.configuration.WebappConfiguration)1