Interface GeoLocationService

    • Method Detail

      • searchAddresses

        java.util.List<Address> searchAddresses​(java.lang.String query,
                                                java.lang.String from,
                                                java.lang.String to)
        This method does search requests and returns data as list.
        Parameters:
        query - search query
        from - field which filter and returned items
        to - field which filter and returned items
        Returns:
        database entities as list
      • getCountries

        java.util.List<Country> getCountries()
        This method returns database entities as list.
        Returns:
        database entities as list
      • getCountryBySellerId

        Country getCountryBySellerId​(java.lang.String sellerId)
        This method returns database entity.
        Parameters:
        sellerId - identification for filter and return database entity
        Returns:
        database entity
      • getCountryNameBySellerId

        java.lang.String getCountryNameBySellerId​(java.lang.String sellerId)
        This method returns database entity field name.
        Parameters:
        sellerId - identification for filter and return database entity field name
        Returns:
        value as text
      • getCountryByCode

        Country getCountryByCode​(java.lang.String code)
        This method returns database entity.
        Parameters:
        code - field for filter and return database entity
        Returns:
        database entity
      • getCountryCodeValue

        java.lang.String getCountryCodeValue​(java.lang.String code)
        This method returns database entity field name.
        Parameters:
        code - field for filter and return database entity field code's value
        Returns:
        value as text
      • getSellersByCountryCode

        java.util.List<Seller> getSellersByCountryCode​(java.lang.String countryCode)
        This method returns data as list.
        Parameters:
        countryCode - field for database entity which filter and returned list of database entities
        Returns:
        database beans as list
      • createAddress

        java.util.Optional<Address> createAddress​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> addressAsMap)
        This method creates a database entity.
        Parameters:
        addressAsMap - map-representation of database entity
        Returns:
        optional value to externally interaction
      • createAddress

        java.util.Optional<Address> createAddress​(Address address)
        This method creates a database entity.
        Parameters:
        address - database entity
        Returns:
        optional value to externally interaction
      • saveAddress

        java.util.Optional<Address> saveAddress​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> addressAsMap)
        This method save an updates of database entity.
        Parameters:
        addressAsMap - map-representation of database entity
        Returns:
        optional value to externally interaction
      • saveAddress

        java.util.Optional<Address> saveAddress​(Address address)
        This method save an updates of database entity.
        Parameters:
        address - database entity
        Returns:
        optional value to externally interaction
      • removeAddressAndClean

        void removeAddressAndClean​(java.lang.String addressId)
        This method removes a database entity and clean all relationships from another entities.
        Parameters:
        addressId - identification for database entity which will be removed
      • removeAddressesByIds

        void removeAddressesByIds​(java.util.ArrayList<java.lang.String> addressesIds)
        This method removes a list of database entities.
        Parameters:
        addressesIds - the list of database entities which will be removed