Class CMSItemSearchDataValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

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

      • FIELD_NAME_CATALOG_ID

        public static final java.lang.String FIELD_NAME_CATALOG_ID
        See Also:
        Constant Field Values
      • FIELD_NAME_CATALOG_VERSION

        public static final java.lang.String FIELD_NAME_CATALOG_VERSION
        See Also:
        Constant Field Values
    • Constructor Detail

      • CMSItemSearchDataValidator

        public CMSItemSearchDataValidator()
    • Method Detail

      • supports

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

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

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

        protected java.util.List<java.lang.String> getTypeCodesList​(java.lang.String typeCodes)
        Get the list of typeCodes given the typeCodes String
        Parameters:
        typeCodes -
        Returns:
        the list of typeCodes
      • setCmsItemSearchService

        public void setCmsItemSearchService​(CMSItemSearchService cmsItemSearchService)