dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33667
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17225: Code style
------------------------------------------------------------
revno: 17225
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-10-23 10:08:15 +0200
message:
Code style
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.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/AbstractCrudController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.java 2014-10-23 05:40:21 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.java 2014-10-23 08:08:15 +0000
@@ -129,8 +129,8 @@
//--------------------------------------------------------------------------
@RequestMapping( method = RequestMethod.GET )
- public @ResponseBody RootNode getObjectList(
- @RequestParam Map<String, String> parameters, HttpServletResponse response, HttpServletRequest request )
+ public @ResponseBody RootNode getObjectList( @RequestParam Map<String, String> parameters,
+ HttpServletResponse response, HttpServletRequest request )
{
List<String> fields = Lists.newArrayList( contextService.getParameterValues( "fields" ) );
List<String> filters = Lists.newArrayList( contextService.getParameterValues( "filter" ) );
@@ -334,7 +334,8 @@
//--------------------------------------------------------------------------
@RequestMapping( method = RequestMethod.POST, consumes = { "application/xml", "text/xml" } )
- public void postXmlObject( HttpServletResponse response, HttpServletRequest request, InputStream input ) throws Exception
+ public void postXmlObject( HttpServletResponse response, HttpServletRequest request, InputStream input )
+ throws Exception
{
if ( !aclService.canCreate( currentUserService.getCurrentUser(), getEntityClass() ) )
{
@@ -362,7 +363,8 @@
}
@RequestMapping( method = RequestMethod.POST, consumes = "application/json" )
- public void postJsonObject( HttpServletResponse response, HttpServletRequest request, InputStream input ) throws Exception
+ public void postJsonObject( HttpServletResponse response, HttpServletRequest request, InputStream input )
+ throws Exception
{
if ( !aclService.canCreate( currentUserService.getCurrentUser(), getEntityClass() ) )
{
@@ -394,8 +396,8 @@
//--------------------------------------------------------------------------
@RequestMapping( value = "/{uid}", method = RequestMethod.PUT, consumes = { MediaType.APPLICATION_XML_VALUE, MediaType.TEXT_XML_VALUE } )
- public void putXmlObject( HttpServletResponse response, HttpServletRequest request, @PathVariable( "uid" ) String uid, InputStream
- input ) throws Exception
+ public void putXmlObject( HttpServletResponse response, HttpServletRequest request,
+ @PathVariable( "uid" ) String uid, InputStream input ) throws Exception
{
List<T> objects = getEntity( uid );
@@ -426,8 +428,8 @@
}
@RequestMapping( value = "/{uid}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE )
- public void putJsonObject( HttpServletResponse response, HttpServletRequest request, @PathVariable( "uid" ) String uid, InputStream
- input ) throws Exception
+ public void putJsonObject( HttpServletResponse response, HttpServletRequest request,
+ @PathVariable( "uid" ) String uid, InputStream input ) throws Exception
{
List<T> objects = getEntity( uid );
@@ -462,8 +464,8 @@
//--------------------------------------------------------------------------
@RequestMapping( value = "/{uid}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE )
- public void deleteObject( HttpServletResponse response, HttpServletRequest request, @PathVariable( "uid" ) String uid )
- throws Exception
+ public void deleteObject( HttpServletResponse response, HttpServletRequest request,
+ @PathVariable( "uid" ) String uid ) throws Exception
{
List<T> objects = getEntity( uid );
@@ -661,17 +663,14 @@
protected void postProcessEntities( List<T> entityList, WebOptions options, Map<String, String> parameters )
{
-
}
/**
* Override to process entities after it has been retrieved from
* storage and before it is returned to the view. Entities is null-safe.
*/
-
protected void postProcessEntities( List<T> entityList )
{
-
}
/**