public class LoggedInUserValidator extends AbstractShoppingCartValidator
| Constructor and Description |
|---|
LoggedInUserValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getValidationFormHtml(List<ShoppingCartItem> listItemsToValidate,
Locale locale)
Get the HTML content of the form of this validator to display to users
before they can validate their shopping cart.
|
String |
getValidatorDescription(Locale locale)
Get a short description of the validator
|
String |
getValidatorId()
Get the unique id of the validator
|
boolean |
hasValidationForm()
Check if this validator needs to display a form before validating data
|
String |
validateShoppingCart(fr.paris.lutece.portal.service.security.LuteceUser user,
List<ShoppingCartItem> listItemsToValidate,
Map<String,String[]> mapRequestParameters)
Validate items of the shopping cart of a user.
|
getEnabled, getSecurityKeyForItems, setEnabledpublic String getValidatorId()
public String getValidatorDescription(Locale locale)
locale - The localepublic String validateShoppingCart(fr.paris.lutece.portal.service.security.LuteceUser user, List<ShoppingCartItem> listItemsToValidate, Map<String,String[]> mapRequestParameters)
user - The user associated with the shopping cart. May be null if
the user has not logged inlistItemsToValidate - The list of items to validatemapRequestParameters - The map containing request parameters if the
validator needs to display a form, or null if the validator
does not need to display a formpublic boolean hasValidationForm()
public String getValidationFormHtml(List<ShoppingCartItem> listItemsToValidate, Locale locale)
listItemsToValidate - The list of items that will be displayedlocale - The locale to useCopyright © 2014 Mairie de Paris. All rights reserved.