Class AUniqueBeanStringFieldValidator<TBean>
java.lang.Object
de.xima.fc.gui.common.validator.AUniqueBeanFieldValidator<TBean,String>
de.xima.fc.gui.common.validator.AUniqueBeanStringFieldValidator<TBean>
- Type Parameters:
TBean- Type of the bean owning the field.
- All Implemented Interfaces:
Serializable, EventListener, javax.faces.validator.Validator
- Direct Known Subclasses:
UniquePromptConnectionName, UniquePromptQueryName, UniqueUserPortalViewModelAliasValidator, UniqueUserPortalViewModelNameValidator
public abstract class AUniqueBeanStringFieldValidator<TBean>
extends AUniqueBeanFieldValidator<TBean,String>
Abstract base class for faces validators that check whether a certain string field of a bean is unique amongst all
existing entities (within a certain scope).
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class AUniqueBeanFieldValidator
ATTR_VALUE, beanClass, fieldClassFields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AUniqueBeanFieldValidator
createError, createError, findBean, getValueExpressionBase, hasDuplicates, hasDuplicates, validate
-
Constructor Details
-
AUniqueBeanStringFieldValidator
-
-
Method Details
-
convertValue
- Specified by:
convertValuein classAUniqueBeanFieldValidator<TBean,String> - Parameters:
value- Value as received from the UI.- Returns:
- The value, converted to the expected type.
-
hasValue
- Specified by:
hasValuein classAUniqueBeanFieldValidator<TBean,String> - Parameters:
value- The converted field value.- Returns:
trueif the value is non-empty, orfalseotherwise. When empty, this validator is skipped.
-