Class SearchFieldResolverImpl

java.lang.Object
org.broadleafcommerce.openadmin.web.service.SearchFieldResolverImpl
All Implemented Interfaces:
SearchFieldResolver

@Service("blSearchFieldResolver") public class SearchFieldResolverImpl extends Object implements SearchFieldResolver
Author:
Andre Azzolini (apazzolini)
See Also:
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • service

      protected AdminEntityService service
  • Constructor Details

    • SearchFieldResolverImpl

      public SearchFieldResolverImpl()
  • Method Details

    • resolveField

      public String resolveField(String className) throws org.broadleafcommerce.common.exception.ServiceException
      Description copied from interface: SearchFieldResolver
      Returns the name of the field to use for searching for the given entity classname.
      Specified by:
      resolveField in interface SearchFieldResolver
      Returns:
      the field name
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • resolveField

      public String resolveField(String className, List<SectionCrumb> sectionCrumbs) throws org.broadleafcommerce.common.exception.ServiceException
      Description copied from interface: SearchFieldResolver
      Returns the name of the field to use for searching for the given entity classname, inspecting it with the given section crumbs. Use this when the entity is being inspected as the target of a lookup field, so the inspect is authorized the same way as the lookup fetch itself (through the owning entity's crumb) rather than requiring direct permission on the looked-up entity.
      Specified by:
      resolveField in interface SearchFieldResolver
      Returns:
      the field name
      Throws:
      org.broadleafcommerce.common.exception.ServiceException