dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27845
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13874: minor code reformat in PersonController
------------------------------------------------------------
revno: 13874
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-01-28 16:03:46 +0700
message:
minor code reformat in PersonController
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.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/api/controller/event/PersonController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.java 2014-01-23 14:18:27 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.java 2014-01-28 09:03:46 +0000
@@ -82,10 +82,9 @@
@RequestMapping( value = "", method = RequestMethod.GET )
@PreAuthorize( "hasRole('ALL') or hasRole('F_ACCESS_PATIENT_ATTRIBUTES')" )
- public String getPersons( @RequestParam( value = "orgUnit", required = false )
- String orgUnitUid, @RequestParam( value = "program", required = false )
- String programUid, @RequestParam( required = false )
- Map<String, String> parameters, Model model )
+ public String getPersons( @RequestParam( value = "orgUnit", required = false ) String orgUnitUid,
+ @RequestParam( value = "program", required = false ) String programUid,
+ @RequestParam( required = false ) Map<String, String> parameters, Model model )
throws Exception
{
WebOptions options = new WebOptions( parameters );
@@ -119,9 +118,7 @@
@RequestMapping( value = "/{id}", method = RequestMethod.GET )
@PreAuthorize( "hasRole('ALL') or hasRole('F_ACCESS_PATIENT_ATTRIBUTES')" )
- public String getPerson( @PathVariable
- String id, @RequestParam
- Map<String, String> parameters, Model model )
+ public String getPerson( @PathVariable String id, @RequestParam Map<String, String> parameters, Model model )
throws NotFoundException
{
WebOptions options = new WebOptions( parameters );
@@ -196,8 +193,7 @@
@RequestMapping( value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_XML_VALUE )
@ResponseStatus( value = HttpStatus.NO_CONTENT )
@PreAuthorize( "hasRole('ALL') or hasRole('F_PATIENT_ADD')" )
- public void updatePersonXml( @PathVariable
- String id, HttpServletRequest request, HttpServletResponse response )
+ public void updatePersonXml( @PathVariable String id, HttpServletRequest request, HttpServletResponse response )
throws IOException
{
ImportSummary importSummary = personService.updatePersonXml( id, request.getInputStream() );
@@ -207,8 +203,7 @@
@RequestMapping( value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE )
@ResponseStatus( value = HttpStatus.NO_CONTENT )
@PreAuthorize( "hasRole('ALL') or hasRole('F_PATIENT_ADD')" )
- public void updatePersonJson( @PathVariable
- String id, HttpServletRequest request, HttpServletResponse response )
+ public void updatePersonJson( @PathVariable String id, HttpServletRequest request, HttpServletResponse response )
throws IOException
{
ImportSummary importSummary = personService.updatePersonJson( id, request.getInputStream() );
@@ -222,8 +217,7 @@
@RequestMapping( value = "/{id}", method = RequestMethod.DELETE )
@ResponseStatus( value = HttpStatus.NO_CONTENT )
@PreAuthorize( "hasRole('ALL') or hasRole('F_PATIENT_DELETE')" )
- public void deletePerson( @PathVariable
- String id )
+ public void deletePerson( @PathVariable String id )
throws NotFoundException
{
Person person = getPerson( id );