Package de.xima.fc.gui.validator.name
Class UniqueClientResourceName
- java.lang.Object
-
- de.xima.fc.gui.validator.name.AUniqueBeanFieldValidator<TEntity,TField>
-
- de.xima.fc.gui.validator.name.AUniqueEntityFieldValidator<TEntity,String>
-
- de.xima.fc.gui.validator.name.AUniqueStringFieldValidator<TEntity>
-
- de.xima.fc.gui.validator.name.AUniqueNameValidator<MandantRessource>
-
- de.xima.fc.gui.validator.name.UniqueClientResourceName
-
- All Implemented Interfaces:
Serializable
,EventListener
,javax.faces.validator.Validator
public class UniqueClientResourceName extends AUniqueNameValidator<MandantRessource> implements javax.faces.validator.Validator, Serializable
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.validator.name.AUniqueStringFieldValidator
ignoreCase
-
Fields inherited from class de.xima.fc.gui.validator.name.AUniqueEntityFieldValidator
ATTR_VALUE
-
Fields inherited from class de.xima.fc.gui.validator.name.AUniqueBeanFieldValidator
beanClass, fieldClass
-
-
Constructor Summary
Constructors Constructor Description UniqueClientResourceName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
findBean(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Finds the entity to validate from the UI component.-
Methods inherited from class de.xima.fc.gui.validator.name.AUniqueNameValidator
addSearch
-
Methods inherited from class de.xima.fc.gui.validator.name.AUniqueStringFieldValidator
convertValue, hasValue
-
Methods inherited from class de.xima.fc.gui.validator.name.AUniqueEntityFieldValidator
addScope, hasDuplicates
-
Methods inherited from class de.xima.fc.gui.validator.name.AUniqueBeanFieldValidator
createError, createError, getValueExpressionBase, validate
-
-
-
-
Method Detail
-
findBean
protected Object findBean(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Description copied from class:AUniqueBeanFieldValidator
Finds the entity to validate from the UI component. The default implementation attempts to read the entity from the value expression base (e.g. when you usemyBean.selected.name
).- Overrides:
findBean
in classAUniqueBeanFieldValidator<MandantRessource,String>
- Parameters:
context
- Current faces context.component
- Component to validate.- Returns:
- The entity with a field to validate.
-
-