Class ValidateInventoryItemSaveDtoImpl
java.lang.Object
org.xbricks.inventories.inventory.validation.ValidateInventoryItemSaveDtoImpl
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<ValidateInventoryItemSaveDto,
InventoryItemSaveDto>
public class ValidateInventoryItemSaveDtoImpl
extends Object
implements jakarta.validation.ConstraintValidator<ValidateInventoryItemSaveDto,InventoryItemSaveDto>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areTagsValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isCommentValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isDeliveryValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isDepotValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Checks that the depot path is set and matches the regular expression pattern specified by the class DepotService.boolean
isInventoryItemTypeValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Checks that the inventory item type path is set and matches the regular expression pattern specified by the class InventoryItemTypeService.boolean
isInventoryNumberValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Review: This function contains PureSolution specific code!boolean
isInventoryRegistrationDateValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isInventoryUnregistrationDateValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isManufacturerValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isNameValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isOwnerValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isParentValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) boolean
isPositionInTreeStructureValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Prüft, ob das Element sich selbst als Eltern- bzw.boolean
isValid
(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
ValidateInventoryItemSaveDtoImpl
public ValidateInventoryItemSaveDtoImpl()
-
-
Method Details
-
isValid
public boolean isValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) - Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<ValidateInventoryItemSaveDto,
InventoryItemSaveDto>
-
isInventoryItemTypeValid
public boolean isInventoryItemTypeValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Checks that the inventory item type path is set and matches the regular expression pattern specified by the class InventoryItemTypeService. -
isNameValid
public boolean isNameValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isManufacturerValid
public boolean isManufacturerValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isDeliveryValid
public boolean isDeliveryValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isDepotValid
public boolean isDepotValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Checks that the depot path is set and matches the regular expression pattern specified by the class DepotService. -
isOwnerValid
public boolean isOwnerValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isCommentValid
public boolean isCommentValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isInventoryNumberValid
public boolean isInventoryNumberValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Review: This function contains PureSolution specific code! -
isInventoryRegistrationDateValid
public boolean isInventoryRegistrationDateValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isInventoryUnregistrationDateValid
public boolean isInventoryUnregistrationDateValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isParentValid
public boolean isParentValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
areTagsValid
public boolean areTagsValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) -
isPositionInTreeStructureValid
public boolean isPositionInTreeStructureValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context) Prüft, ob das Element sich selbst als Eltern- bzw. Vorfahrenelement hat und somit einen Ring bilden würde.- Parameters:
value
- Das zu prüfende Element.- Returns:
- True oder False.
-