Class DefaultDestinationSearchService
java.lang.Object
de.hybris.platform.outboundservices.service.impl.DefaultDestinationSearchService
- All Implemented Interfaces:
DestinationSearchService
The default implementation of
DestinationSearchService which uses FlexibleSearchService.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDestinationSearchService(@NotNull FlexibleSearchService searchService) To instantiate theDefaultDestinationSearchService. -
Method Summary
Modifier and TypeMethodDescriptionfindDestination(@NotNull String destinationId) This method searches theConsumedDestinationModelfor the given destination id.
-
Constructor Details
-
DefaultDestinationSearchService
To instantiate theDefaultDestinationSearchService.- Parameters:
searchService- the non-nullFlexibleSearchServicewhich will be used for searching.
-
-
Method Details
-
findDestination
This method searches theConsumedDestinationModelfor the given destination id.- Specified by:
findDestinationin interfaceDestinationSearchService- Parameters:
destinationId- destination id against which the ConsumedDestinationModel is searched.- Returns:
- the found ConsumedDestinationModel, or
ConsumedDestinationNotFoundModelfor the destination id if no destination model is found.
-