Changeset 657 for ether_statistics/web
- Timestamp:
- 10/31/12 15:17:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_statistics/web/src/com/ether/ControllerStatistics.java
r586 r657 2 2 3 3 import com.ether.annotation.ControllerMethod; 4 import com.ether.annotation.Mandatory; 5 import com.ether.annotation.ParamName; 6 import net.sf.json.JSONObject; 4 7 import org.apache.commons.logging.Log; 5 8 import org.apache.commons.logging.LogFactory; … … 21 24 /** *********************** VIEWS ***************************** **/ 22 25 /** *********************************************************** **/ 23 // Default view if methodName is unknown 26 /** 27 * Default view if methodName is unknown 28 */ 24 29 public ModelAndView home( final HttpServletRequest request, final HttpServletResponse response ) 25 30 throws ServiceException … … 32 37 throws ServiceException 33 38 { 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(); 34 45 return new HashMap<String, Object>(); 35 46 } 36 37 // @ControllerMethod(view = VIEW_VISUALIZATION_PARAMETER_BY_PLATEFORM)38 // public Map<String, Object> viewParametersByPlateform()39 // throws ServiceException40 // {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 // }53 47 54 48 /** *********************************************************** **/ 55 49 /** *********************** CALLS ***************************** **/ 56 50 /** *********************************************************** **/ 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 { 61 62 // final List<Parametre> fullParametersByPlateform = getEtherService().getParametersByPlateformId( plateformId ); 62 63 // final List<List<Parametre>> parametersByPlateform = getEtherService().manageMenusForParameterList( fullParametersByPlateform ); 63 // 64 //final JSONObject result = new JSONObject();64 65 final JSONObject result = new JSONObject(); 65 66 // 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 } 75 69 76 70 private static final Log LOGGER = LogFactory.getLog( ControllerStatistics.class );
Note: See TracChangeset
for help on using the changeset viewer.