public interface IShoppingCartValidator
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEnabled()
Check if this validator is enabled
|
String |
getSecurityKeyForItems(List<ShoppingCartItem> listItems)
Get a unique security key of the given list for this validator.
|
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
|
void |
setEnabled(boolean bEnabled)
Enable or disable this validator
|
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.
|
String getValidatorId()
String getValidatorDescription(Locale locale)
locale - The localeString 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 formboolean hasValidationForm()
String getValidationFormHtml(List<ShoppingCartItem> listItemsToValidate, Locale locale)
listItemsToValidate - The list of items that will be displayedlocale - The locale to useboolean getEnabled()
void setEnabled(boolean bEnabled)
bEnabled - True to enable this validator, false to disable itString getSecurityKeyForItems(List<ShoppingCartItem> listItems)
listItems - The list of itemsCopyright © 2014 Mairie de Paris. All rights reserved.