Change in ovirt-engine[master]: core: Add configured range validator

masayag at redhat.com masayag at redhat.com
Mon Jul 16 21:36:57 UTC 2012


Moti Asayag has submitted this change and it was merged.

Change subject: core: Add configured range validator
......................................................................


core: Add configured range validator

The patch introduces configured range validator which could be set on
business entities properties to enforce the valid range of a given
input.

The declaration of the validator requires a configuration value to
specify the upper limit of the range. The lower limit could be specified
either by a configuration value or by setting a constant or using the
default (zero).

Change-Id: I23642aa79b263019acbdde4ee44e27f5a0ac992e
Signed-off-by: Moti Asayag <masayag at redhat.com>
---
A backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/validation/ConfiguredRangeValidator.java
A backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/validation/annotation/ConfiguredRange.java
A backend/manager/modules/common/src/test/java/org/ovirt/engine/core/common/utils/ConfiguredRangeValidatorTest.java
3 files changed, 234 insertions(+), 0 deletions(-)

Approvals:
  Moti Asayag: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/6286
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I23642aa79b263019acbdde4ee44e27f5a0ac992e
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>



More information about the Engine-commits mailing list