Class DefaultSearchValidator

java.lang.Object
com.broadleafcommerce.search.core.service.DefaultSearchValidator
All Implemented Interfaces:
SearchValidator

public class DefaultSearchValidator extends Object implements SearchValidator
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Check whether or not the search request in this context is valid.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultSearchValidator

      public DefaultSearchValidator()
  • Method Details

    • validate

      public void validate(com.broadleafcommerce.search.api.domain.SearchRequest searchRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) throws com.broadleafcommerce.search.api.InvalidSearchException
      Description copied from interface: SearchValidator
      Check whether or not the search request in this context is valid.
      Specified by:
      validate in interface SearchValidator
      Parameters:
      searchRequest - The query information to search by
      context - The context information surrounding sandboxing/multitenant state
      Throws:
      com.broadleafcommerce.search.api.InvalidSearchException - if the search request is not valid