org.nuxeo.ecm.platform.ui.web.validator
Class SortInfoListValidator
java.lang.Object
org.nuxeo.ecm.platform.ui.web.validator.SortInfoListValidator
- All Implemented Interfaces:
- EventListener, Validator
public class SortInfoListValidator
- extends Object
- implements Validator
Validator for a list of SortInfo
elements, checking that there is no
conflicting sort information (several sorts on same criterion)
- Author:
- Anahide Tchertchian
VALIDATOR_ID
public static final String VALIDATOR_ID
- See Also:
- Constant Field Values
INVALID_VALUE_MESSAGE_ID
public static final String INVALID_VALUE_MESSAGE_ID
- The message identifier of the
FacesMessage
to be created if the value
to validate is not a list of sort infos.
- See Also:
- Constant Field Values
CONFLICTING_CRITERIA_MESSAGE_ID
public static final String CONFLICTING_CRITERIA_MESSAGE_ID
- The message identifier of the
FacesMessage
to be created if the value
to validate is a list of sort infos with conflicting criteria (several
sorts on the same criterion).
The message format string for this message may optionally include the
following placeholders:
{0}
replaced by the first found duplicate criterion.
- See Also:
- Constant Field Values
EMPTY_CRITERION_MESSAGE_ID
public static final String EMPTY_CRITERION_MESSAGE_ID
- The message identifier of the
FacesMessage
to be created if the value
to validate contains a sort info with an empty sort criterion.
- See Also:
- Constant Field Values
SortInfoListValidator
public SortInfoListValidator()
validate
public void validate(FacesContext context,
UIComponent component,
Object value)
throws ValidatorException
- Specified by:
validate
in interface Validator
- Throws:
ValidatorException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.