Class BmCustomerBillOnDemandCreateValidator

java.lang.Object
de.hybris.platform.billmanagementtmfwebservices.v2.validators.BmCustomerBillOnDemandCreateValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class BmCustomerBillOnDemandCreateValidator extends Object implements org.springframework.validation.Validator
Validator for CustomerBillOnDemand.
Since:
2302
  • Constructor Details

    • BmCustomerBillOnDemandCreateValidator

      public BmCustomerBillOnDemandCreateValidator(TuaGenericService tuaGenericService)
  • Method Details

    • supports

      public boolean supports(Class clazz)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate(Object o, org.springframework.validation.Errors errors)
      Specified by:
      validate in interface org.springframework.validation.Validator
    • validateRelatedParty

      protected void validateRelatedParty(RelatedParty relatedParty, org.springframework.validation.Errors errors)
      Checks if relatedParty is valid. If it is a Party resource then the role must not be null.
      Parameters:
      relatedParty - the related party
      errors - the errors found
    • getTuaGenericService

      protected TuaGenericService getTuaGenericService()