use of org.apache.archiva.configuration.Configuration 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.Configuration in project archiva by apache.
the class DefaultArchivaAdministration method setOrganisationInformation.
@Override
public void setOrganisationInformation(OrganisationInformation organisationInformation) throws RepositoryAdminException {
Configuration configuration = getArchivaConfiguration().getConfiguration();
if (organisationInformation != null) {
org.apache.archiva.configuration.OrganisationInformation organisationInformationModel = getModelMapper().map(organisationInformation, org.apache.archiva.configuration.OrganisationInformation.class);
configuration.setOrganisationInfo(organisationInformationModel);
} else {
configuration.setOrganisationInfo(null);
}
saveConfiguration(configuration);
}
use of org.apache.archiva.configuration.Configuration in project archiva by apache.
the class DefaultArchivaAdministration method deleteLegacyArtifactPath.
@Override
public void deleteLegacyArtifactPath(String path, AuditInformation auditInformation) throws RepositoryAdminException {
Configuration configuration = getArchivaConfiguration().getConfiguration();
org.apache.archiva.configuration.LegacyArtifactPath legacyArtifactPath = new org.apache.archiva.configuration.LegacyArtifactPath();
legacyArtifactPath.setPath(path);
configuration.removeLegacyArtifactPath(legacyArtifactPath);
saveConfiguration(configuration);
triggerAuditEvent("", "", AuditEvent.REMOVE_LEGACY_PATH, auditInformation);
}
use of org.apache.archiva.configuration.Configuration in project archiva by apache.
the class DefaultArchivaAdministration method removeInvalidContentConsumer.
@Override
public void removeInvalidContentConsumer(String invalidContentConsumer, AuditInformation auditInformation) throws RepositoryAdminException {
Configuration configuration = getArchivaConfiguration().getConfiguration();
configuration.getRepositoryScanning().removeInvalidContentConsumer(invalidContentConsumer);
saveConfiguration(configuration);
triggerAuditEvent("", "", AuditEvent.DISABLE_REPO_CONSUMER, auditInformation);
}
use of org.apache.archiva.configuration.Configuration in project archiva by apache.
the class DefaultArchivaAdministration method removeKnownContentConsumer.
@Override
public void removeKnownContentConsumer(String knownContentConsumer, AuditInformation auditInformation) throws RepositoryAdminException {
Configuration configuration = getArchivaConfiguration().getConfiguration();
configuration.getRepositoryScanning().removeKnownContentConsumer(knownContentConsumer);
saveConfiguration(configuration);
triggerAuditEvent("", "", AuditEvent.DISABLE_REPO_CONSUMER, auditInformation);
}
Aggregations