From: Roland Häder Date: Mon, 31 Jul 2017 20:34:50 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=29d9c8afcc15875337cd1f48ec36193406584daf;p=addressbook-war.git Please cherry-pick: - BaseLongeValidator has been renamed to BaseNumberValidator as it also validates Integer and Short Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java b/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java index 4ac7388d..26eca6b6 100644 --- a/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java +++ b/src/java/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java @@ -28,7 +28,7 @@ import javax.naming.NamingException; import org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote; import org.mxchange.jaddressbook.exceptions.AddressbookNotFoundException; import org.mxchange.jaddressbook.model.addressbook.Addressbook; -import org.mxchange.jcoreee.validator.number.BaseLongValidator; +import org.mxchange.jcoreee.validator.number.BaseNumberValidator; /** * A validator for address book id verification @@ -36,7 +36,7 @@ import org.mxchange.jcoreee.validator.number.BaseLongValidator; * @author Roland Häder */ @FacesValidator ("AddressbookIdValidator") -public class AddressbookIdValidator extends BaseLongValidator { +public class AddressbookIdValidator extends BaseNumberValidator { /** * Serial number diff --git a/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java b/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java index f2d33568..1d0ce778 100644 --- a/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java +++ b/src/java/org/mxchange/addressbook/validator/phone/number/AddressbookPhoneNumberValidator.java @@ -21,7 +21,7 @@ import javax.faces.context.FacesContext; import javax.faces.validator.FacesValidator; import javax.faces.validator.Validator; import javax.faces.validator.ValidatorException; -import org.mxchange.jcoreee.validator.number.BaseLongValidator; +import org.mxchange.jcoreee.validator.number.BaseNumberValidator; /** * A validator for phone, fax and mobile numbers @@ -29,7 +29,7 @@ import org.mxchange.jcoreee.validator.number.BaseLongValidator; * @author Roland Häder */ @FacesValidator ("PhoneNumberValidator") -public class AddressbookPhoneNumberValidator extends BaseLongValidator implements Validator { +public class AddressbookPhoneNumberValidator extends BaseNumberValidator implements Validator { /** * Serial number diff --git a/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java b/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java index aca92c0b..3d7dccaa 100644 --- a/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java +++ b/src/java/org/mxchange/addressbook/validator/user/AddressbookUserIdValidator.java @@ -27,7 +27,7 @@ import javax.faces.validator.ValidatorException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; -import org.mxchange.jcoreee.validator.number.BaseLongValidator; +import org.mxchange.jcoreee.validator.number.BaseNumberValidator; import org.mxchange.jusercore.model.user.UserSessionBeanRemote; /** @@ -36,7 +36,7 @@ import org.mxchange.jusercore.model.user.UserSessionBeanRemote; * @author Roland Häder */ @FacesValidator ("UserIdValidator") -public class AddressbookUserIdValidator extends BaseLongValidator implements Validator { +public class AddressbookUserIdValidator extends BaseNumberValidator implements Validator { /** * Remote bean