Package fr.paris.lutece.util.bean
Class BeanUtil
java.lang.Object
fr.paris.lutece.util.bean.BeanUtil
Bean Utils
-
Method Summary
Modifier and TypeMethodDescriptionconvertMap(Map<String, String[]> mapInput) Convert map by casifying parameters names.static StringconvertUnderscores(String strSource) Remove underscore and set the next letter in capsstatic voidinit()BeanUtil initialization, considering Lutèce availables locales and date format propertiesstatic voidPopulate a bean using parameters in http requeststatic voidPopulate a bean using parameters in http request, with locale date format controls
-
Method Details
-
init
public static void init()BeanUtil initialization, considering Lutèce availables locales and date format properties -
populate
Populate a bean using parameters in http request- Parameters:
bean-request-
-
populate
public static void populate(Object bean, javax.servlet.http.HttpServletRequest request, Locale locale) Populate a bean using parameters in http request, with locale date format controls- Parameters:
bean- bean to populaterequest- http requestlocale-
-
convertMap
Convert map by casifying parameters names.- Parameters:
mapInput- The input map- Returns:
- The output map
-
convertUnderscores
Remove underscore and set the next letter in caps- Parameters:
strSource- The source- Returns:
- The converted string
-