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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Logprotected AdminEntityService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveField(String className) Returns the name of the field to use for searching for the given entity classname.resolveField(String className, List<SectionCrumb> sectionCrumbs) Returns the name of the field to use for searching for the given entity classname, inspecting it with the given section crumbs.
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
service
-
-
Constructor Details
-
SearchFieldResolverImpl
public SearchFieldResolverImpl()
-
-
Method Details
-
resolveField
public String resolveField(String className) throws org.broadleafcommerce.common.exception.ServiceException Description copied from interface:SearchFieldResolverReturns the name of the field to use for searching for the given entity classname.- Specified by:
resolveFieldin interfaceSearchFieldResolver- 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:SearchFieldResolverReturns 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:
resolveFieldin interfaceSearchFieldResolver- Returns:
- the field name
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-