@Service(value="blSearchFacetDTOService") public class SearchFacetDTOServiceImpl extends Object implements SearchFacetDTOService
Modifier and Type | Field and Description |
---|---|
protected ExploitProtectionService |
exploitProtectionService |
Constructor and Description |
---|
SearchFacetDTOServiceImpl() |
Modifier and Type | Method and Description |
---|---|
SearchCriteria |
buildSearchCriteria(javax.servlet.http.HttpServletRequest request)
Given a servlet request and a list of available facets for this request (could be search or category based),
this method will build out a SearchCriteria object to be used by the ProductSearchService.
|
protected SearchCriteria |
createSearchCriteria() |
protected int |
getDefaultPageSize() |
protected int |
getMaxPageSize() |
String |
getUrlKey(SearchFacetDTO result) |
String |
getUrlKey(SearchFacetResultDTO result)
Gets the url abbreviation associated with a given SearchFacetResultDTO.
|
String |
getValue(SearchFacetResultDTO result)
Gets the value of the given SearchFacetResultDTO.
|
boolean |
isActive(SearchFacetResultDTO result,
javax.servlet.http.HttpServletRequest request)
Returns whether or not the SearchFacetResultDTO's key/value pair is present in the servlet request
|
void |
setActiveFacetResults(List<SearchFacetDTO> facets,
javax.servlet.http.HttpServletRequest request)
Sets the "active" boolean on a given SearchFacetResultDTO as determined by the current request
|
protected ExploitProtectionService exploitProtectionService
protected int getDefaultPageSize()
protected int getMaxPageSize()
public SearchCriteria buildSearchCriteria(javax.servlet.http.HttpServletRequest request)
SearchFacetDTOService
buildSearchCriteria
in interface SearchFacetDTOService
protected SearchCriteria createSearchCriteria()
public void setActiveFacetResults(List<SearchFacetDTO> facets, javax.servlet.http.HttpServletRequest request)
SearchFacetDTOService
setActiveFacetResults
in interface SearchFacetDTOService
public boolean isActive(SearchFacetResultDTO result, javax.servlet.http.HttpServletRequest request)
SearchFacetDTOService
isActive
in interface SearchFacetDTOService
public String getUrlKey(SearchFacetResultDTO result)
SearchFacetDTOService
getUrlKey
in interface SearchFacetDTOService
public String getValue(SearchFacetResultDTO result)
SearchFacetDTOService
getValue
in interface SearchFacetDTOService
public String getUrlKey(SearchFacetDTO result)
getUrlKey
in interface SearchFacetDTOService
Copyright © 2019. All rights reserved.