- Timestamp:
- 09/26/12 18:42:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/web/src/com/ether/ControllerSimulation.java
r556 r557 71 71 72 72 @ControllerMethod(jsonResult = true) 73 public JSONObject search PlateformsByVariable( @Mandatory @ParamName(ParameterConstants.PARAMETER_CODE) final String variableCode )73 public JSONObject searchMobilePlateformsByVariable( @Mandatory @ParamName(ParameterConstants.PARAMETER_CODE) final String variableCode ) 74 74 throws ServiceException 75 75 { 76 76 final List<Plateforme> plateformsByParameter = getEtherService().getPlateformsByParameter( variableCode ); 77 77 78 final List<Plateforme> mobilePlateforms = new ArrayList<Plateforme>(); 79 for( final Plateforme plateforme : plateformsByParameter ) 80 { 81 if( "MOBILE".equals( plateforme.getTypePlateforme().getTypePlateformeNom() ) ) 82 mobilePlateforms.add( plateforme ); 83 } 84 78 85 final JSONObject result = new JSONObject(); 79 result.put( ParameterConstants.PARAMETER_PLATEFORMS, getJsonHelper().toJSON( plateformsByParameter) );86 result.put( ParameterConstants.PARAMETER_PLATEFORMS, getJsonHelper().toJSON( mobilePlateforms ) ); 80 87 return result; 81 88 }
Note: See TracChangeset
for help on using the changeset viewer.