Interface RegionService

    • Method Detail

      • create

        Region create​(Region region)
        Create a new region
        Parameters:
        region - the region
        Returns:
        the newly created region
      • create

        Region create​(String regionId,
                      String description,
                      String parentRegionId)
        Create a new region
        Parameters:
        regionId - the user-defined region id
        description - the description of the region
        parentRegionId - the region id of the parent region
        Returns:
        the newly created region
      • get

        Region get​(String regionId)
        Get details for a region specified by id
        Parameters:
        regionId - the region id
        Returns:
        the region
      • update

        Region update​(Region region)
        Update a region
        Parameters:
        region - the region set to update
        Returns:
        the updated region
      • delete

        ActionResponse delete​(String regionId)
        Delete a region specified by id
        Parameters:
        regionId - the id of the region
        Returns:
        the ActionResponse
      • list

        List<? extends Region> list()
        List regions
        Returns:
        a list of regions