Interface LocationMapper


  • public interface LocationMapper
    • Method Detail

      • toDistrictDtos

        java.util.List<DistrictDto> toDistrictDtos​(java.util.List<District> districts)
        Convert district list to district dtos list.
        Parameters:
        districts - list of districts
        Returns:
        list of district dtos
      • toLocationPreviewDtos

        default java.util.Set<LocationPreviewDto> toLocationPreviewDtos​(java.util.List<? extends Location> locations)
        Convert location set to location preview dto set.
        Parameters:
        locations - set of locations of any type
        Returns:
        map of Village dtos, where the key is the village id
      • toLocationPreviewDtosWithOrder

        default java.util.List<LocationPreviewDto> toLocationPreviewDtosWithOrder​(java.util.List<? extends Location> locations)
        Convert location list to location preview dto list.
        Parameters:
        locations - list of locations of any type
        Returns:
        list of village dtos
      • toFacility

        default Facility toFacility​(java.lang.String facilityId)
        Create Facility object with given id.
        Parameters:
        facilityId - id of Facility to create
        Returns:
        Facility object with given id
      • toSector

        default Sector toSector​(java.lang.String sectorId)
        Create Sector object with given id.
        Parameters:
        sectorId - id of Sector to create
        Returns:
        Sector object with given id
      • toDistrict

        default District toDistrict​(java.lang.String districtId)
        Create District object with given id.
        Parameters:
        districtId - id of District to create
        Returns:
        District object with given id