Interface StoreFinderService<ITEM extends PointOfServiceDistanceData,​RESULT extends StoreFinderSearchPageData<ITEM>>

    • Method Detail

      • locationSearch

        RESULT locationSearch​(BaseStoreModel baseStore,
                              java.lang.String locationText,
                              PageableData pageableData)
        Gets the locations retrieved based on the given arguments.
        Parameters:
        baseStore - BaseStoreModel instance that returned locations belongs to
        locationText - text that will be used for locations search
        pageableData - PageableData object that contains basing information for search result set
        Returns:
        locations found for the given parameters
      • locationSearch

        RESULT locationSearch​(BaseStoreModel baseStore,
                              java.lang.String locationText,
                              PageableData pageableData,
                              double maxRadius)
        Gets the locations retrieved based on the given arguments.
        Parameters:
        baseStore - BaseStoreModel instance that returned locations belongs to
        locationText - text that will be used for locations search
        pageableData - PageableData object that contains basing information for search result set
        maxRadius - the maximum radius from the location that results should be returned for.
        Returns:
        locations found for the given parameters
      • positionSearch

        RESULT positionSearch​(BaseStoreModel baseStore,
                              GeoPoint geoPoint,
                              PageableData pageableData)
        Gets the locations retrieved basing on the given arguments.
        Parameters:
        baseStore - BaseStoreModel instance that returned locations belongs to
        geoPoint - geographical point that search is performed for
        pageableData - PageableData object that contains basing information for search result set
        Returns:
        locations found for the given parameters
      • positionSearch

        RESULT positionSearch​(BaseStoreModel baseStore,
                              GeoPoint geoPoint,
                              PageableData pageableData,
                              double maxRadius)
        Gets the locations retrieved basing on the given arguments.
        Parameters:
        baseStore - BaseStoreModel instance that returned locations belongs to
        geoPoint - geographical point that search is performed for
        pageableData - PageableData object that contains basing information for search result set
        maxRadius - the maximum radius from the location that results should be returned for.
        Returns:
        locations found for the given parameters
      • getPointOfServiceDistanceForName

        ITEM getPointOfServiceDistanceForName​(BaseStoreModel baseStore,
                                              java.lang.String name,
                                              GeoPoint geoPoint)
        Gets the location for the given name that should be unique. Additionally the distance between the location and given coordinates is calculated.
        Parameters:
        baseStore - BaseStoreModel instance that returned location belongs to
        name - name of the requested point of service
        geoPoint - geographical point of the origin point
        Returns:
        location for the given parameter
      • getAllPos

        RESULT getAllPos​(BaseStoreModel baseStore,
                         PageableData pageableData)
        Gets the locations retrieved basing on the given arguments.
        Parameters:
        baseStore - BaseStoreModel instance that returned locations belongs to
        pageableData - PageableData object that contains basing information for search result set
        Returns:
        locations found for the given parameters
      • getAllPosForRegion

        java.util.List<PointOfServiceModel> getAllPosForRegion​(java.lang.String countryIsoCode,
                                                               java.lang.String regionIsoCode,
                                                               BaseStoreModel baseStore)
        Gets a list of PointOfServiceModel for all points of service in a given country and region
        Parameters:
        countryIsoCode - {@link CountryModel:ISOCODE}
        regionIsoCode - {@link RegionModel:ISOCODE}
        baseStore - the active BaseStoreModel
        Returns:
        list of PointOfServiceModel