Class RegionServiceImpl

    • Constructor Detail

      • RegionServiceImpl

        public RegionServiceImpl()
    • Method Detail

      • create

        public Region create​(Region region)
        Description copied from interface: RegionService
        Create a new region
        Specified by:
        create in interface RegionService
        Parameters:
        region - the region
        Returns:
        the newly created region
      • create

        public Region create​(String regionId,
                             String description,
                             String parentRegionId)
        Description copied from interface: RegionService
        Create a new region
        Specified by:
        create in interface RegionService
        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

        public Region get​(String regionId)
        Description copied from interface: RegionService
        Get details for a region specified by id
        Specified by:
        get in interface RegionService
        Parameters:
        regionId - the region id
        Returns:
        the region
      • update

        public Region update​(Region region)
        Description copied from interface: RegionService
        Update a region
        Specified by:
        update in interface RegionService
        Parameters:
        region - the region set to update
        Returns:
        the updated region
      • delete

        public ActionResponse delete​(String regionId)
        Description copied from interface: RegionService
        Delete a region specified by id
        Specified by:
        delete in interface RegionService
        Parameters:
        regionId - the id of the region
        Returns:
        the ActionResponse