← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20636: Minor

 

------------------------------------------------------------
revno: 20636
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-10-12 14:54:35 +0200
message:
  Minor
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/KeyJsonValueController.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/KeyJsonValueController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/KeyJsonValueController.java	2015-10-09 17:01:55 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/KeyJsonValueController.java	2015-10-12 12:54:35 +0000
@@ -71,9 +71,7 @@
      * @throws IOException
      */
     @RequestMapping( value = "", method = RequestMethod.GET, produces = "application/json" )
-    public
-    @ResponseBody
-    List<String> getNamespaces( HttpServletResponse response )
+    public @ResponseBody List<String> getNamespaces( HttpServletResponse response )
         throws IOException
     {
         return keyJsonValueService.getNamespaces();
@@ -89,11 +87,7 @@
      * @throws WebMessageException
      */
     @RequestMapping( value = "/{namespace}", method = RequestMethod.GET, produces = "application/json" )
-    public
-    @ResponseBody
-    List<String> getKeysInNamespace(
-        @PathVariable String namespace,
-        HttpServletResponse response )
+    public @ResponseBody List<String> getKeysInNamespace( @PathVariable String namespace, HttpServletResponse response )
         throws IOException, WebMessageException
     {
         if ( !keyJsonValueService.getNamespaces().contains( namespace ) )
@@ -114,11 +108,7 @@
      * @throws WebMessageException
      */
     @RequestMapping( value = "/{namespace}", method = RequestMethod.DELETE )
-    public
-    @ResponseBody
-    WebMessage deleteNamespace(
-        @PathVariable String namespace,
-        HttpServletResponse response )
+    public @ResponseBody WebMessage deleteNamespace( @PathVariable String namespace, HttpServletResponse response )
         throws WebMessageException
     {
         if ( !hasAccess( namespace ) )
@@ -149,12 +139,8 @@
      * @throws WebMessageException
      */
     @RequestMapping( value = "/{namespace}/{key}", method = RequestMethod.GET, produces = "application/json" )
-    public
-    @ResponseBody
-    KeyJsonValue getKeyJsonValue(
-        @PathVariable String namespace,
-        @PathVariable String key,
-        HttpServletResponse response )
+    public @ResponseBody KeyJsonValue getKeyJsonValue(
+        @PathVariable String namespace, @PathVariable String key, HttpServletResponse response )
         throws IOException, WebMessageException
     {
         if ( !hasAccess( namespace ) )
@@ -186,13 +172,8 @@
      * @throws WebMessageException
      */
     @RequestMapping( value = "/{namespace}/{key}", method = RequestMethod.POST, produces = "application/json", consumes = "application/json" )
-    public
-    @ResponseBody
-    KeyJsonValue addKey(
-        @PathVariable String namespace,
-        @PathVariable String key,
-        @RequestBody String body,
-        HttpServletResponse response )
+    public @ResponseBody KeyJsonValue addKey(
+        @PathVariable String namespace, @PathVariable String key, @RequestBody String body, HttpServletResponse response )
         throws IOException, WebMessageException
     {
         if ( !hasAccess( namespace ) )
@@ -237,14 +218,8 @@
      * @throws IOException
      */
     @RequestMapping( value = "/{namespace}/{key}", method = RequestMethod.PUT, produces = "application/json", consumes = "application/json" )
-    public
-    @ResponseBody
-    KeyJsonValue updateKeyJsonValue(
-        @PathVariable String namespace,
-        @PathVariable String key,
-        @RequestBody String body,
-        HttpServletRequest request,
-        HttpServletResponse response )
+    public @ResponseBody KeyJsonValue updateKeyJsonValue( @PathVariable String namespace, @PathVariable String key, @RequestBody String body,
+        HttpServletRequest request, HttpServletResponse response )
         throws WebMessageException, IOException
     {
 
@@ -284,12 +259,8 @@
      * @throws WebMessageException
      */
     @RequestMapping( value = "/{namespace}/{key}", method = RequestMethod.DELETE, produces = "application/json" )
-    public
-    @ResponseBody
-    WebMessage deleteKeyJsonValue(
-        @PathVariable String namespace,
-        @PathVariable String key,
-        HttpServletResponse response )
+    public @ResponseBody WebMessage deleteKeyJsonValue(
+        @PathVariable String namespace, @PathVariable String key, HttpServletResponse response )
         throws WebMessageException
     {
         if ( !hasAccess( namespace ) )