Skip to content

Instantly share code, notes, and snippets.

@felipebizz
Created February 13, 2015 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipebizz/6922288c0d757b0f64cb to your computer and use it in GitHub Desktop.
Save felipebizz/6922288c0d757b0f64cb to your computer and use it in GitHub Desktop.
Meodo de Classe Java que recebe uma lista de ids no Controller, vindo de um form JQuery
/**
* Exemplo que recebe uma lista de ids no Controller, vindo de um form JQuery
*
* @param ids businessFiles
* @return modelAndView
* @throws BusinessFileAccessDeniedException
*/
@RequestMapping(method = RequestMethod.POST, value = MultiAssetsSelectionView.METADATA_EDIT_ROUTE)
@RolesAllowed({"visto.dam.asset.multiselection.multi.edition.edit"})
public ModelAndView loadForm(@Valid final @RequestParam("ids") List<String> ids)
throws BusinessFileAccessDeniedException {
return loadFormMetadataMulti(ids, MultiAssetsSelectionView.MULTI_METADATA_EDITION);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment