Class CMSItemSearchDataValidator

java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.validator.CMSItemSearchDataValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class CMSItemSearchDataValidator extends Object implements org.springframework.validation.Validator
CMSItemSearchDataValidator validates CMSItemSearchData objects, which are the search parameters used to perform CMSItemSearchService searches
  • Field Details

  • Constructor Details

    • CMSItemSearchDataValidator

      public CMSItemSearchDataValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> aClass)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

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

      protected List<String> getTypeCodesFromSearchData(CMSItemSearchData cmsItemSearchData)
      Get the list of typeCodes given the cmsItemSearchData.
      Parameters:
      cmsItemSearchData -
      Returns:
      the list of typeCodes
    • getTypeCodesList

      protected List<String> getTypeCodesList(String typeCodes)
      Get the list of typeCodes given the typeCodes String
      Parameters:
      typeCodes -
      Returns:
      the list of typeCodes
    • getCmsItemSearchService

      protected CMSItemSearchService getCmsItemSearchService()
    • setCmsItemSearchService

      public void setCmsItemSearchService(CMSItemSearchService cmsItemSearchService)