diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java
index 496a4fcd6..fb88e6775 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java
@@ -51,6 +51,9 @@ public interface SearchService
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
@RedbackAuthorization( noPermission = true, noRestriction = false )
+ /**
+ * search will be apply on all repositories the user used has karma
+ */
List quickSearch( @QueryParam( "queryString" ) String queryString )
throws ArchivaRestServiceException;
@@ -58,6 +61,9 @@ public interface SearchService
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
@RedbackAuthorization( noPermission = true, noRestriction = false )
+ /**
+ * search will be apply on all repositories the user used has karma
+ */
List getArtifactVersions( @QueryParam( "groupId" ) String groupId,
@QueryParam( "artifactId" ) String artifactId,
@QueryParam( "packaging" ) String packaging )
@@ -67,6 +73,10 @@ public interface SearchService
@POST
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
@RedbackAuthorization( noPermission = true, noRestriction = false )
+ /**
+ * If searchRequest contains repositories, the search will be done only on those repositories.
+ * if no repositories, the search will be apply on all repositories the user used has karma
+ */
List searchArtifacts( SearchRequest searchRequest )
throws ArchivaRestServiceException;
@@ -74,6 +84,9 @@ public interface SearchService
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
@RedbackAuthorization( noPermission = true, noRestriction = false )
+ /**
+ * this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available
+ */
GroupIdList getAllGroupIds( @QueryParam( "selectedRepos" ) List selectedRepos )
throws ArchivaRestServiceException;