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
SearchServiceInstance
s.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Gets, or creates if it does not exist yet, theSearchServiceInstance
which is placed at the givenZoneItem
.boolean
isSearchServiceInstance
(String zoneItemId) void
Removes theSearchServiceInstance
which is placed at the givenZoneItem
.void
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
SearchServiceInstanceManager
public SearchServiceInstanceManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
isSearchServiceInstance
- Parameters:
zoneItemId
- the id of theZoneItem
- Returns:
true
if the given id of aZoneItem
is an instance of aSearchService
-
get
Gets, or creates if it does not exist yet, theSearchServiceInstance
which is placed at the givenZoneItem
.
You must callisSearchServiceInstance
before 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
SearchServiceInstance
which is placed at the givenZoneItem
-
remove
Removes theSearchServiceInstance
which is placed at the givenZoneItem
.- Parameters:
zoneItemId
- the id of theZoneItem
-