use of org.apache.archiva.configuration.UserInterfaceOptions in project archiva by apache.
the class DefaultArchivaAdministration method updateUiConfiguration.
@Override
public void updateUiConfiguration(UiConfiguration uiConfiguration) throws RepositoryAdminException {
Configuration configuration = getArchivaConfiguration().getConfiguration();
if (uiConfiguration != null) {
UserInterfaceOptions userInterfaceOptions = getModelMapper().map(uiConfiguration, UserInterfaceOptions.class);
configuration.getWebapp().setUi(userInterfaceOptions);
} else {
configuration.getWebapp().setUi(null);
}
saveConfiguration(configuration);
}
use of org.apache.archiva.configuration.UserInterfaceOptions 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);
}
Aggregations