Class CMSItemSearchDataValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.validator.CMSItemSearchDataValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class CMSItemSearchDataValidator extends java.lang.Object implements org.springframework.validation.ValidatorCMSItemSearchDataValidator validates CMSItemSearchData objects, which are the search parameters used to performCMSItemSearchServicesearches
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIELD_NAME_CATALOG_IDstatic java.lang.StringFIELD_NAME_CATALOG_VERSIONstatic java.lang.StringFIELD_TYPECODE
-
Constructor Summary
Constructors Constructor Description CMSItemSearchDataValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CMSItemSearchServicegetCmsItemSearchService()protected java.util.List<java.lang.String>getTypeCodesFromSearchData(CMSItemSearchData cmsItemSearchData)Get the list of typeCodes given the cmsItemSearchData.protected java.util.List<java.lang.String>getTypeCodesList(java.lang.String typeCodes)Get the list of typeCodes given the typeCodesStringvoidsetCmsItemSearchService(CMSItemSearchService cmsItemSearchService)booleansupports(java.lang.Class<?> aClass)voidvalidate(java.lang.Object target, org.springframework.validation.Errors errors)
-
-
-
Field Detail
-
FIELD_TYPECODE
public static final java.lang.String FIELD_TYPECODE
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> aClass)
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
public void validate(java.lang.Object target, org.springframework.validation.Errors errors)- Specified by:
validatein interfaceorg.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 typeCodesString- Parameters:
typeCodes-- Returns:
- the list of typeCodes
-
getCmsItemSearchService
protected CMSItemSearchService getCmsItemSearchService()
-
setCmsItemSearchService
public void setCmsItemSearchService(CMSItemSearchService cmsItemSearchService)
-
-