this.repositories = repositories;
}
+ public String getMergedIndexPath()
+ {
+ return mergedIndexPath;
+ }
+
+ public void setMergedIndexPath( String mergedIndexPath )
+ {
+ this.mergedIndexPath = mergedIndexPath;
+ }
+
+ public RepositoryGroup mergedIndexPath( String mergedIndexPath )
+ {
+ this.mergedIndexPath = mergedIndexPath;
+ return this;
+ }
+
public boolean equals( Object other )
{
if ( this == other )
/**
* @author Olivier Lamy
*/
-@Service( "repositoryGroupAdmin#default" )
+@Service("repositoryGroupAdmin#default")
public class DefaultRepositoryGroupAdmin
extends AbstractRepositoryAdmin
implements RepositoryGroupAdmin
for ( RepositoryGroupConfiguration repositoryGroupConfiguration : getArchivaConfiguration().getConfiguration().getRepositoryGroups() )
{
repositoriesGroups.add( new RepositoryGroup( repositoryGroupConfiguration.getId(), new ArrayList<String>(
- repositoryGroupConfiguration.getRepositories() ) ) );
+ repositoryGroupConfiguration.getRepositories() ) ).mergedIndexPath(
+ repositoryGroupConfiguration.getMergedIndexPath() ) );
}
return repositoriesGroups;
RepositoryGroupConfiguration repositoryGroupConfiguration = new RepositoryGroupConfiguration();
repositoryGroupConfiguration.setId( repositoryGroup.getId() );
repositoryGroupConfiguration.setRepositories( repositoryGroup.getRepositories() );
+ repositoryGroupConfiguration.setMergedIndexPath( repositoryGroup.getMergedIndexPath() );
Configuration configuration = getArchivaConfiguration().getConfiguration();
configuration.addRepositoryGroup( repositoryGroupConfiguration );
saveConfiguration( configuration );
configuration.removeRepositoryGroup( repositoryGroupConfiguration );
repositoryGroupConfiguration.setRepositories( repositoryGroup.getRepositories() );
+ repositoryGroupConfiguration.setMergedIndexPath( repositoryGroup.getMergedIndexPath() );
configuration.addRepositoryGroup( repositoryGroupConfiguration );
saveConfiguration( configuration );
new ArrayList<RepositoryGroup>( repositoryGroupAdmin.getRepositoriesGroups().size() );
for ( org.apache.archiva.admin.model.beans.RepositoryGroup repoGroup : repositoryGroupAdmin.getRepositoriesGroups() )
{
- repositoriesGroups.add(
- new RepositoryGroup( repoGroup.getId(), new ArrayList<String>( repoGroup.getRepositories() ) ) );
+ repositoriesGroups.add( new RepositoryGroup( repoGroup.getId(), new ArrayList<String>(
+ repoGroup.getRepositories() ) ).mergedIndexPath( repoGroup.getMergedIndexPath() ) );
}
return repositoriesGroups;
}
{
return repositoryGroupAdmin.addRepositoryGroup(
new org.apache.archiva.admin.model.beans.RepositoryGroup( repoGroup.getId(), new ArrayList<String>(
- repoGroup.getRepositories() ) ), getAuditInformation() );
+ repoGroup.getRepositories() ) ).mergedIndexPath( repoGroup.getMergedIndexPath() ),
+ getAuditInformation() );
}
catch ( RepositoryAdminException e )
{
{
return repositoryGroupAdmin.updateRepositoryGroup(
new org.apache.archiva.admin.model.beans.RepositoryGroup( repoGroup.getId(), new ArrayList<String>(
- repoGroup.getRepositories() ) ), getAuditInformation() );
+ repoGroup.getRepositories() ) ).mergedIndexPath( repoGroup.getMergedIndexPath() ),
+ getAuditInformation() );
}
catch ( RepositoryAdminException e )
{