Package de.xima.fc.gui.validator.name
Class UniqueClientResourceName
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description UniqueClientResourceName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
findEntity(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, createError, createError, getValueExpressionBase, validate
-
-
-
-
Method Detail
-
findEntity
protected Object findEntity(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Description copied from class:AUniqueEntityFieldValidator
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:
findEntity
in classAUniqueEntityFieldValidator<MandantRessource,String>
- Parameters:
context
- Current faces context.component
- Component to validate.- Returns:
- The entity with a field to validate.
-
-