Search in sources :

Example 11 with UserInterfaceOptions

use of org.apache.archiva.configuration.model.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);
}
Also used : WebappConfiguration(org.apache.archiva.configuration.model.WebappConfiguration) UserInterfaceOptions(org.apache.archiva.configuration.model.UserInterfaceOptions)

Aggregations

UserInterfaceOptions (org.apache.archiva.configuration.model.UserInterfaceOptions)11 WebappConfiguration (org.apache.archiva.configuration.model.WebappConfiguration)10 RepositoryScanningConfiguration (org.apache.archiva.configuration.model.RepositoryScanningConfiguration)7 Configuration (org.apache.archiva.configuration.model.Configuration)6 ManagedRepositoryConfiguration (org.apache.archiva.configuration.model.ManagedRepositoryConfiguration)5 NetworkProxyConfiguration (org.apache.archiva.configuration.model.NetworkProxyConfiguration)5 ProxyConnectorConfiguration (org.apache.archiva.configuration.model.ProxyConnectorConfiguration)5 RemoteRepositoryConfiguration (org.apache.archiva.configuration.model.RemoteRepositoryConfiguration)5 RepositoryGroupConfiguration (org.apache.archiva.configuration.model.RepositoryGroupConfiguration)5 Test (org.junit.Test)5 ContextConfiguration (org.springframework.test.context.ContextConfiguration)5 Path (java.nio.file.Path)4 LegacyArtifactPath (org.apache.archiva.configuration.model.LegacyArtifactPath)4