@RequestMapping(value="/application/{applicationName}/rows/{nbRows}",method=RequestMethod.GET) public @ResponseBody List<Message> listMessagesForApplication(@PathVariable final String applicationName,@PathVariable final Integer nbRows) throws ServiceException, CheckException {
  if (logger.isDebugEnabled()) {
    logger.debug("--CALL LIST APPLICATION ACTIONS--");
    logger.debug("applicationName = " + applicationName);
    logger.debug("nbRows = " + nbRows);
  }
  User user=authentificationUtils.getAuthentificatedUser();
  String applicationNameLocal=applicationName.replaceAll("[^a-z]","");
  return messageService.listByApp(user,applicationNameLocal,nbRows);
}

@ RequestMapping ( value = "/application/{applicationName}/rows/{nbRows}" , method = RequestMethod . GET ) public @ ResponseBody List < Message > listMessagesForApplication ( @ PathVariable final String applicationName , @ PathVariable final Integer nbRows ) throws ServiceException , CheckException { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "--CALL LIST APPLICATION ACTIONS--" ) ; logger . debug ( "applicationName = " + applicationName ) ; logger . debug ( "nbRows = " + nbRows ) ; } User user = authentificationUtils . getAuthentificatedUser ( ) ; String applicationNameLocal = applicationName . replaceAll ( "[^a-z]" , "" ) ; return messageService . listByApp ( user , applicationNameLocal , nbRows ) ; }
retourne tous les messages d ' un utilisateur pour une application
