Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.validator
Class SortInfoListValidator

java.lang.Object
  extended by 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

Field Summary
static 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).
static 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.
static 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.
static String VALIDATOR_ID
           
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
SortInfoListValidator()
           
 
Method Summary
 void validate(FacesContext context, UIComponent component, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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:

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
Constructor Detail

SortInfoListValidator

public SortInfoListValidator()
Method Detail

validate

public void validate(FacesContext context,
                     UIComponent component,
                     Object value)
              throws ValidatorException
Specified by:
validate in interface Validator
Throws:
ValidatorException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.