Class SolrFacetSearchConfigValidator
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.config.impl.SolrFacetSearchConfigValidator
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class SolrFacetSearchConfigValidator extends java.lang.Object implements ValidateInterceptor
Validator checks if there are mandatory attribute :Item types, Indexer configuration, Solr server confguration and forbids using xml document because it is no longer used since 4.6 version
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDOCUMENT_DEPRECATED_ERRORprotected static java.lang.StringREQUIRED_MEMBER_ITEMS
-
Constructor Summary
Constructors Constructor Description SolrFacetSearchConfigValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringBuildercheckMemberItems(SolrFacetSearchConfigModel config)protected java.lang.StringgetFieldDescriptor(java.lang.String qualifier)voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetTypeService(TypeService typeService)
-
-
-
Field Detail
-
DOCUMENT_DEPRECATED_ERROR
protected static final java.lang.String DOCUMENT_DEPRECATED_ERROR
- See Also:
- Constant Field Values
-
REQUIRED_MEMBER_ITEMS
protected static final java.lang.String REQUIRED_MEMBER_ITEMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
checkMemberItems
protected java.lang.StringBuilder checkMemberItems(SolrFacetSearchConfigModel config)
-
getFieldDescriptor
protected java.lang.String getFieldDescriptor(java.lang.String qualifier)
-
setTypeService
public void setTypeService(TypeService typeService)
- Parameters:
typeService- the typeService to set
-
-