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 Details

    • ValidateInventoryItemSaveDtoImpl

      public ValidateInventoryItemSaveDtoImpl()
  • Method Details

    • isValid

      public boolean isValid(InventoryItemSaveDto value, jakarta.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface jakarta.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.