import com.opensymphony.xwork2.Action;
import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
-import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin;
import org.apache.archiva.indexer.search.RepositorySearch;
import org.apache.archiva.indexer.search.SearchFields;
import org.apache.archiva.indexer.search.SearchResultHit;
SearchResults results = new SearchResults();
results.setLimits( limits );
results.setTotalHits( 1 );
- results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+ results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
userReposControl.expectAndReturn( userRepos.getObservableRepositoryIds( "user" ), selectedRepos );
SearchResults results = new SearchResults();
results.setLimits( limits );
results.setTotalHits( 1 );
- results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+ results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
userReposControl.expectAndReturn( userRepos.getObservableRepositoryIds( "user" ), selectedRepos );
SearchResults results = new SearchResults();
results.setLimits( limits );
results.setTotalHits( 1 );
- results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+ results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
List<String> selectedRepos = new ArrayList<String>();
selectedRepos.add( "internal" );
SearchResults results = new SearchResults();
results.setLimits( limits );
results.setTotalHits( 1 );
- results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration" ), hit );
+ results.addHit( SearchUtil.getHitId( "org.apache.archiva", "archiva-configuration", null, "jar" ), hit );
List<String> selectedRepos = new ArrayList<String>();
selectedRepos.add( "internal" );