</description>
</field>
<field>
- <name>runtimeConfiguration</name>
+ <name>redbackRuntimeConfiguration</name>
<version>1.4.0+</version>
<association>
- <type>RuntimeConfiguration</type>
+ <type>RedbackRuntimeConfiguration</type>
<multiplicity>1</multiplicity>
</association>
- <description>
- The RuntimeConfiguration.
- </description>
+ <description>The RedbackRuntimeConfiguration.</description>
</field>
<field>
<name>proxyConnectorRuleConfigurations</name>
</class>
<class>
- <name>RuntimeConfiguration</name>
+ <name>RedbackRuntimeConfiguration</name>
<version>1.4.0+</version>
<description>
The runtime configuration.
import org.apache.archiva.admin.repository.AbstractRepositoryAdmin;
import org.apache.archiva.configuration.Configuration;
import org.apache.archiva.configuration.IndeterminateConfigurationException;
-import org.apache.archiva.configuration.RuntimeConfiguration;
+import org.apache.archiva.configuration.RedbackRuntimeConfiguration;
import org.apache.archiva.redback.components.registry.RegistryException;
import org.apache.archiva.redback.configuration.UserConfiguration;
import org.apache.commons.lang.StringUtils;
public ArchivaRuntimeConfiguration getArchivaRuntimeConfiguration()
throws RepositoryAdminException
{
- return build( getArchivaConfiguration().getConfiguration().getRuntimeConfiguration() );
+ return build( getArchivaConfiguration().getConfiguration().getRedbackRuntimeConfiguration() );
}
public void updateArchivaRuntimeConfiguration( ArchivaRuntimeConfiguration archivaRuntimeConfiguration )
throws RepositoryAdminException
{
- RuntimeConfiguration runtimeConfiguration = build( archivaRuntimeConfiguration );
+ RedbackRuntimeConfiguration runtimeConfiguration = build( archivaRuntimeConfiguration );
Configuration configuration = getArchivaConfiguration().getConfiguration();
- configuration.setRuntimeConfiguration( runtimeConfiguration );
+ configuration.setRedbackRuntimeConfiguration( runtimeConfiguration );
try
{
getArchivaConfiguration().save( configuration );
}
}
- private ArchivaRuntimeConfiguration build( RuntimeConfiguration runtimeConfiguration )
+ private ArchivaRuntimeConfiguration build( RedbackRuntimeConfiguration runtimeConfiguration )
{
return new BeanReplicator().replicateBean( runtimeConfiguration, ArchivaRuntimeConfiguration.class );
}
- private RuntimeConfiguration build( ArchivaRuntimeConfiguration archivaRuntimeConfiguration )
+ private RedbackRuntimeConfiguration build( ArchivaRuntimeConfiguration archivaRuntimeConfiguration )
{
- return new BeanReplicator().replicateBean( archivaRuntimeConfiguration, RuntimeConfiguration.class );
+ return new BeanReplicator().replicateBean( archivaRuntimeConfiguration, RedbackRuntimeConfiguration.class );
}
}