public class GlobalFacetAdminService extends java.lang.Object implements SearchStateApplicableFacetAdminService
SearchStateApplicableFacetAdminService that uses
GlobalSolrSearchProfileModel attributes to manage facets order
and facets visibility. The GlobalSolrSearchProfileModel is a root search profile for category search profiles.
If there is no GlobalSolrSearchProfileModel in the database for a given facet then it will be created.| Constructor and Description |
|---|
GlobalFacetAdminService() |
| Modifier and Type | Method and Description |
|---|---|
protected GlobalSolrSearchProfileModel |
createGlobalSolrSearchProfile(SolrIndexedTypeModel solrIndexedTypeModel) |
protected SolrFacetReconfigurationModel |
findFacetReconfiguration(java.lang.String facetCode,
GlobalSolrSearchProfileModel globalSolrSearchProfiles) |
protected GlobalSolrSearchProfileModel |
findGlobalSolrSearchProfileModel(SolrIndexedTypeModel solrIndexedType) |
boolean |
isApplicable(FacetSearchStateData facetSearchStateData)
Checks if implementation is applicable for the current search state.
|
void |
moveFacetAbove(java.lang.String movedFacetCode,
java.lang.String stationaryFacetCode,
FacetSearchStateData facetSearchStateData)
This method moves the given facet above the stationary facet for a given search state (for a keyword or category).
|
void |
moveFacetBelow(java.lang.String movedFacetCode,
java.lang.String stationaryFacetCode,
FacetSearchStateData facetSearchStateData)
This method moves the given facet below the stationary facet for a given search state (for a keyword or category).
|
protected boolean |
noFacetReconfigurationFound(SolrFacetReconfigurationModel facetReconfigurationToChange) |
protected boolean |
noProfileFound(GlobalSolrSearchProfileModel globalSolrSearchProfile) |
void |
setFacetAdminHelper(DefaultFacetAdminHelper facetAdminHelper) |
void |
setFacetDao(FacetDao facetDao) |
void |
setFacetReconfigurationService(FacetReconfigurationService facetReconfigurationService) |
void |
setModelService(ModelService modelService) |
void |
setSearchProfileDao(SearchProfileDao searchProfileDao) |
boolean |
toggleFacetVisibility(java.lang.String toggledFacetCode,
FacetSearchStateData facetSearchStateData)
This method toggles facet visibility for a given search state (for a keyword or category).
|
public boolean isApplicable(FacetSearchStateData facetSearchStateData)
SearchStateApplicableFacetAdminServiceisApplicable in interface SearchStateApplicableFacetAdminServicefacetSearchStateData - - the facet search datapublic boolean toggleFacetVisibility(java.lang.String toggledFacetCode,
FacetSearchStateData facetSearchStateData)
FacetAdminServicetoggleFacetVisibility in interface FacetAdminServicetoggledFacetCode - Facet code of facet that should be toggled.facetSearchStateData - Facet search state data contains the current search statepublic void moveFacetAbove(java.lang.String movedFacetCode,
java.lang.String stationaryFacetCode,
FacetSearchStateData facetSearchStateData)
FacetAdminServicemoveFacetAbove in interface FacetAdminServicemovedFacetCode - Facet code of facet that should be moved above.stationaryFacetCode - Facet code of stationary facet.facetSearchStateData - Facet search state data contains the current search statepublic void moveFacetBelow(java.lang.String movedFacetCode,
java.lang.String stationaryFacetCode,
FacetSearchStateData facetSearchStateData)
FacetAdminServicemoveFacetBelow in interface FacetAdminServicemovedFacetCode - Facet code of facet that should be moved below.stationaryFacetCode - Facet code of stationary facet.facetSearchStateData - Facet search state data contains the current search stateprotected GlobalSolrSearchProfileModel findGlobalSolrSearchProfileModel(SolrIndexedTypeModel solrIndexedType)
protected boolean noProfileFound(GlobalSolrSearchProfileModel globalSolrSearchProfile)
protected GlobalSolrSearchProfileModel createGlobalSolrSearchProfile(SolrIndexedTypeModel solrIndexedTypeModel)
protected SolrFacetReconfigurationModel findFacetReconfiguration(java.lang.String facetCode, GlobalSolrSearchProfileModel globalSolrSearchProfiles)
protected boolean noFacetReconfigurationFound(SolrFacetReconfigurationModel facetReconfigurationToChange)
public void setSearchProfileDao(SearchProfileDao searchProfileDao)
public void setFacetDao(FacetDao facetDao)
public void setModelService(ModelService modelService)
public void setFacetReconfigurationService(FacetReconfigurationService facetReconfigurationService)
public void setFacetAdminHelper(DefaultFacetAdminHelper facetAdminHelper)
Copyright © 2018 SAP SE. All Rights Reserved.