summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-09-14 09:28:23 +0000
committerOlivier Lamy <olamy@apache.org>2012-09-14 09:28:23 +0000
commit745421c23020c68c34f524e43882623cceea8b0f (patch)
treeb49b8268a9d7a3937fcbafbfbb2b3ab1f17943c9 /archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src
parentfa31d5bba58d7c0268ea59e63181cfc688da15f4 (diff)
downloadarchiva-745421c23020c68c34f524e43882623cceea8b0f.tar.gz
archiva-745421c23020c68c34f524e43882623cceea8b0f.zip
[MRM-918] Switch for disabling user registration.
implements ui part. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ArchivaAdministrationService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ArchivaAdministrationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ArchivaAdministrationService.java
index 180dec9bf..f2a6133f9 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ArchivaAdministrationService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ArchivaAdministrationService.java
@@ -207,6 +207,13 @@ public interface ArchivaAdministrationService
UiConfiguration getUiConfiguration()
throws ArchivaRestServiceException;
+ @Path( "registrationDisabled" )
+ @GET
+ @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
+ @RedbackAuthorization( noRestriction = true, noPermission = true )
+ Boolean registrationDisabled()
+ throws ArchivaRestServiceException;
+
@Path( "setUiConfiguration" )
@POST
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )