Class SearchServiceInstanceManager
java.lang.Object
org.ametys.web.frontoffice.search.instance.SearchServiceInstanceManager
- All Implemented Interfaces:
Disposable,Component,Serviceable
public class SearchServiceInstanceManager
extends Object
implements Component, Serviceable, Disposable
The component managing all
SearchServiceInstances.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Gets, or creates if it does not exist yet, theSearchServiceInstancewhich is placed at the givenZoneItem.booleanisSearchServiceInstance(String zoneItemId) voidRemoves theSearchServiceInstancewhich is placed at the givenZoneItem.voidservice(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
SearchServiceInstanceManager
public SearchServiceInstanceManager()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
dispose
- Specified by:
disposein interfaceDisposable
-
isSearchServiceInstance
- Parameters:
zoneItemId- the id of theZoneItem- Returns:
trueif the given id of aZoneItemis an instance of aSearchService
-
get
Gets, or creates if it does not exist yet, theSearchServiceInstancewhich is placed at the givenZoneItem.
You must callisSearchServiceInstancebefore to ensure that the given id is an instance ofSearchService(this check is not done in this method)- Parameters:
zoneItemId- the id of theZoneItem- Returns:
- the
SearchServiceInstancewhich is placed at the givenZoneItem
-
remove
Removes theSearchServiceInstancewhich is placed at the givenZoneItem.- Parameters:
zoneItemId- the id of theZoneItem
-