Changeset 657 for ether_statistics/web


Ignore:
Timestamp:
10/31/12 15:17:56 (12 years ago)
Author:
vmipsl
Message:

statistics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_statistics/web/src/com/ether/ControllerStatistics.java

    r586 r657  
    22 
    33import com.ether.annotation.ControllerMethod; 
     4import com.ether.annotation.Mandatory; 
     5import com.ether.annotation.ParamName; 
     6import net.sf.json.JSONObject; 
    47import org.apache.commons.logging.Log; 
    58import org.apache.commons.logging.LogFactory; 
     
    2124    /** *********************** VIEWS ***************************** **/ 
    2225    /** *********************************************************** **/ 
    23     // Default view if methodName is unknown 
     26    /** 
     27     * Default view if methodName is unknown 
     28     */ 
    2429    public ModelAndView home( final HttpServletRequest request, final HttpServletResponse response ) 
    2530            throws ServiceException 
     
    3237            throws ServiceException 
    3338    { 
     39//        final Calendar cal = Calendar.getInstance(); 
     40//        final Date today = cal.getTime(); 
     41//        cal.set( 1900, Calendar.JANUARY, 1 ); 
     42//        final Date begin = cal.getTime(); 
     43//        cal.set( Calendar.DST_OFFSET, 40001 ); 
     44//        final Date bob = cal.getTime(); 
    3445        return new HashMap<String, Object>(); 
    3546    } 
    36  
    37 //    @ControllerMethod(view = VIEW_VISUALIZATION_PARAMETER_BY_PLATEFORM) 
    38 //    public Map<String, Object> viewParametersByPlateform() 
    39 //            throws ServiceException 
    40 //    { 
    41 //        final List<Plateforme> plateforms = getEtherService().getAllPlateforms(); 
    42 //        final Date firstDate = getEtherService().getFirstDate(); 
    43 //        final Date endDate = getEtherService().getLastDate(); 
    44 // 
    45 //        final Map<String, Object> model = new HashMap<String, Object>(); 
    46 //        model.put( "plateforms", getJsonHelper().toJSON( plateforms ) ); 
    47 //        model.put( "axeTypesForFixedPlateforms", getJSONAxeTypesForFixedPlateforms() ); 
    48 //        model.put( "axeTypesForMobilePlateforms", getJSONAxeTypesForMobilePlateforms() ); 
    49 //        model.put( "firstDate", DateHelper.formatDate( firstDate, DateHelper.ENGLISH_DATE_PATTERN ) ); 
    50 //        model.put( "lastDate", DateHelper.formatDate( endDate, DateHelper.ENGLISH_DATE_PATTERN ) ); 
    51 //        return model; 
    52 //    } 
    5347 
    5448    /** *********************************************************** **/ 
    5549    /** *********************** CALLS ***************************** **/ 
    5650    /** *********************************************************** **/ 
    57 //    @ControllerMethod(jsonResult = true) 
    58 //    public JSONObject searchParametersByPlateform( @Mandatory @ParamName(ParameterConstants.PARAMETER_ID) final Integer plateformId ) 
    59 //            throws ServiceException 
    60 //    { 
     51    /** 
     52     * Search main statistics for the selected project 
     53     * 
     54     * @param projectName 
     55     * @return 
     56     * @throws ServiceException 
     57     */ 
     58    @ControllerMethod(jsonResult = true) 
     59    public JSONObject searchMainStatisticsByProject( @Mandatory @ParamName(ParameterConstants.PARAMETER_NAME) final String projectName ) 
     60            throws ServiceException 
     61    { 
    6162//        final List<Parametre> fullParametersByPlateform = getEtherService().getParametersByPlateformId( plateformId ); 
    6263//        final List<List<Parametre>> parametersByPlateform = getEtherService().manageMenusForParameterList( fullParametersByPlateform ); 
    63 // 
    64 //        final JSONObject result = new JSONObject(); 
     64 
     65        final JSONObject result = new JSONObject(); 
    6566//        result.put( ParameterConstants.PARAMETER_PARAMETERS, getJsonHelper().toJSON( parametersByPlateform ) ); 
    66 //        return result; 
    67 //    } 
    68  
    69 //    @ControllerMethod(jsonResult = true, requestMandatory = true, loginMandatory = true, defaultView = VIEW_ERRORS) 
    70 //    public JSONObject downloadData( @ParamName(ParameterConstants.PARAMETER_DATE_BEGIN) final String dateBegin, 
    71 //                                    @ParamName(ParameterConstants.PARAMETER_DATE_END) final String dateEnd, 
    72 //                                    @ParamName(ParameterConstants.PARAMETER_PFID_PID_LIST) final String pIdPIdArrayString, 
    73 //                                    @NotNull final HttpServletRequest request ) 
    74 //            throws ServiceException, WebException 
     67        return result; 
     68    } 
    7569 
    7670    private static final Log LOGGER = LogFactory.getLog( ControllerStatistics.class ); 
Note: See TracChangeset for help on using the changeset viewer.