Ignore:
Timestamp:
09/26/12 18:42:00 (12 years ago)
Author:
vmipsl
Message:

simulation

  • display real data
  • getPlateformsByParameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/src/com/ether/ControllerSimulation.java

    r556 r557  
    7171 
    7272    @ControllerMethod(jsonResult = true) 
    73     public JSONObject searchPlateformsByVariable( @Mandatory @ParamName(ParameterConstants.PARAMETER_CODE) final String variableCode ) 
     73    public JSONObject searchMobilePlateformsByVariable( @Mandatory @ParamName(ParameterConstants.PARAMETER_CODE) final String variableCode ) 
    7474            throws ServiceException 
    7575    { 
    7676        final List<Plateforme> plateformsByParameter = getEtherService().getPlateformsByParameter( variableCode ); 
    7777 
     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 
    7885        final JSONObject result = new JSONObject(); 
    79         result.put( ParameterConstants.PARAMETER_PLATEFORMS, getJsonHelper().toJSON( plateformsByParameter ) ); 
     86        result.put( ParameterConstants.PARAMETER_PLATEFORMS, getJsonHelper().toJSON( mobilePlateforms ) ); 
    8087        return result; 
    8188    } 
Note: See TracChangeset for help on using the changeset viewer.