Class SearchServiceInstanceFactory
- java.lang.Object
-
- org.ametys.web.frontoffice.search.instance.SearchServiceInstanceFactory
-
- All Implemented Interfaces:
Component
,Serviceable
public class SearchServiceInstanceFactory extends Object implements Component, Serviceable
The component able tocreate
someSearchServiceInstance
s.
-
-
Field Summary
Fields Modifier and Type Field Description private JSONUtils
_json
private AmetysObjectResolver
_resolver
private SearchServiceCreationHelper
_serviceCreationHelper
private SiteManager
_siteManager
private TreeMaker
_treeMaker
static String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description SearchServiceInstanceFactory()
-
Method Summary
-
-
-
Field Detail
-
_serviceCreationHelper
private SearchServiceCreationHelper _serviceCreationHelper
-
_resolver
private AmetysObjectResolver _resolver
-
_siteManager
private SiteManager _siteManager
-
_treeMaker
private TreeMaker _treeMaker
-
-
Constructor Detail
-
SearchServiceInstanceFactory
public SearchServiceInstanceFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
createSearchServiceInstance
public SearchServiceInstance createSearchServiceInstance(String zoneItemId)
Creates a newSearchServiceInstance
- Parameters:
zoneItemId
- the id of theZoneItem
- Returns:
- the created
SearchServiceInstance
which is placed at the givenZoneItem
-
_createSearchContext
private SearchContext _createSearchContext(Map<String,Object> config)
-
_createSiteContext
private SiteContext _createSiteContext(Object sitesObj)
-
_createSitemapContext
private SitemapContext _createSitemapContext(Object sitemapObj)
-
_getContextLang
private ContextLang _getContextLang(Object langObj, SitemapContext sitemapContext)
-
_createCriterionTree
private AbstractTreeNode<FOSearchCriterion> _createCriterionTree(Map<String,Object> criteriaValues, Map<String,SearchCriterionDefinition> searchCriterionDefinitions, IntegerSequence.Incrementor incrementor, Map<String,Object> contextualParameters)
-
_createSearchCriterion
private FOSearchCriterion _createSearchCriterion(TreeMaker.ClientSideCriterionWrapper critWrapper, Map<String,SearchCriterionDefinition> searchCriterionDefinitions, IntegerSequence.Incrementor incrementor, Map<String,Object> contextualParameters)
-
_restrictedValues
private EnumeratedValues.RestrictedValues _restrictedValues(List<Object> values, SearchCriterionDefinition criterionDefinition, Map<String,Object> contextualParameters)
-
_contextualParameters
private Map<String,Object> _contextualParameters(Site currentSite)
-
_createFacetDefinitions
private Collection<FacetDefinition> _createFacetDefinitions(ModelAwareDataHolder serviceParameters, Map<String,FacetDefinition> availableFacets)
-
_createInitialSorts
private List<Pair<SortDefinition,Sort.Order>> _createInitialSorts(ModelAwareDataHolder serviceParameters, Map<String,SortDefinition> availableSorts)
-
_initialSort
private Pair<SortDefinition,Sort.Order> _initialSort(Map<String,Object> json, Map<String,SortDefinition> availableSorts)
-
_createProposedSortDefinitions
private Collection<SortDefinition> _createProposedSortDefinitions(ModelAwareDataHolder serviceParameters, Map<String,SortDefinition> availableSorts)
-
_rightCheckingMode
private RightCheckingMode _rightCheckingMode(ModelAwareDataHolder serviceParameters, boolean hasUserInput)
-
_createResultDisplay
private ResultDisplay _createResultDisplay(ModelAwareDataHolder serviceParameters, boolean hasUserCriteria)
-
_createLink
private Link _createLink(ModelAwareDataHolder serviceParameters)
-
-