Nuxeo Enterprise Platform 5.4

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:
java.util.EventListener, javax.faces.validator.Validator

public class SortInfoListValidator
extends java.lang.Object
implements javax.faces.validator.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String VALIDATOR_ID
           
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
SortInfoListValidator()
           
 
Method Summary
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.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 java.lang.String VALIDATOR_ID
See Also:
Constant Field Values

INVALID_VALUE_MESSAGE_ID

public static final java.lang.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 java.lang.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 java.lang.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(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
Specified by:
validate in interface javax.faces.validator.Validator
Throws:
javax.faces.validator.ValidatorException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.