]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1490] Expose Archiva services trough REST : repository group admin tru rest...
authorOlivier Lamy <olamy@apache.org>
Tue, 6 Sep 2011 21:32:36 +0000 (21:32 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 6 Sep 2011 21:32:36 +0000 (21:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1165866 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoryGroupService.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml

index eb2767ac3414b570d3b08e3afed56e45c01d2843..500623995b4a5c544ebd5dc44e5ffa8879293588 100644 (file)
@@ -23,6 +23,7 @@ import org.apache.archiva.admin.repository.group.RepositoryGroupAdmin;
 import org.apache.archiva.rest.api.model.RepositoryGroup;
 import org.apache.archiva.rest.api.services.RepositoryGroupService;
 import org.apache.commons.lang.StringUtils;
+import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
 import java.util.ArrayList;
@@ -31,6 +32,7 @@ import java.util.List;
 /**
  * @author Olivier Lamy
  */
+@Service( "repositoryGroupService#rest" )
 public class DefaultRepositoryGroupService
     extends AbstractRestService
     implements RepositoryGroupService
index ef5f2f9d68cb9add6b438f19d44bdaec5950cc0d..fc358920eaab078dc6d4c5ce5d849ac16488a49d 100644 (file)
@@ -52,6 +52,7 @@
       <ref bean="repositoriesService#rest"/>
       <ref bean="managedRepositoriesService#rest"/>
       <ref bean="remoteRepositoriesService#rest"/>
+      <ref bean="repositoryGroupService#rest"/>
     </jaxrs:serviceBeans>
 
     <jaxrs:outInterceptors>