Package overit.geocall.ui
Interface ValueValidator
- All Known Implementing Classes:
AjaxInputDecoder,ColumnInput,ColumnInputBoolean,ColumnInputCurrency,ColumnInputDate,ColumnInputDouble,ColumnInputDoubleGreater,ColumnInputDoubleLess,ColumnInputLong,ColumnInputLongGreater,ColumnInputLongGreaterLess,ColumnInputLongLess,ColumnInputMeasure,ColumnInputMulti,ColumnInputRegExp,ColumnInputTime,overit.geocall.basic.mail.EmailEditor,overit.geocallapp.wfm.mail.EmailEditor,Input,InputCheckBox,InputCheckBoxes,InputCode,InputColorBar,InputCurrency,InputDataCollection,InputDate,InputDecoder,InputDecoderDataCollectionType,InputDecoderForecastHeader,InputDecoderImpiantiNotification,overit.geocallapp.wfm.technicalobject.decoder.InputDecoderTechnicalObject,overit.geocallapp.wfm.amministrazione.anautente.decodifica.InputDecoderUtenti,InputDouble,InputDoubleDataCollection,InputDTZ,InputEmail,InputFileName,InputHtml,InputImage,InputLanguage,InputLong,InputLongDataCollection,InputLookup,InputMeasure,InputMultiDecoder,InputMultiDecoderDataCollectionSheetDynamicPanel,InputMultiDecoderForecastActivity,InputMultiDecoderMaterials,InputMultiDecoderMultistageGroups,InputMultiDecoderMultistageOperations,InputMultiDecoderTransferRequest,InputMultiDecoderWarehouse,InputMultiLookup,InputMultiSelectLookup,InputPassword,InputRadio,InputRegExp,InputSymbolBar,InputTel,InputText,InputTextDataCollection,InputTime,InputTimeDataCollection,InputTimeRange,InputTimesheetUserDecoder,InputUpload,SearchField,SortableGenericGridComponents,SortableGridComponents,SortableListComponents,SortableTableComponents,TemplateEmail
public interface ValueValidator
Interface that must be implemented by all the component that has a value that can be submit to the server, to validate the value to avoid tampering values.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateValue(String name, Object value, boolean strong, Map values) Makes the validation to avoid tampering values of a component and it's value.
When a submit event to the server is triggered, is checked that the component is in the validator set, the value is not changed (if the component is RO), the value is changed with an allow value ecc ecc.
-
Method Details
-
validateValue
void validateValue(String name, Object value, boolean strong, Map values) throws ValidationException Makes the validation to avoid tampering values of a component and it's value.
When a submit event to the server is triggered, is checked that the component is in the validator set, the value is not changed (if the component is RO), the value is changed with an allow value ecc ecc.- Parameters:
name- The name associated to the component to validate.value- The value to validatestrong- Defines if the validation must be strong or not (for not null component).values- AMapwith all the components (and their values) arriving from submit.- Throws:
ValidationException- Raised if the validation failed.
-