public interface RegionService extends RestService
| Modifier and Type | Method and Description |
|---|---|
Region |
create(Region region)
Create a new region
|
Region |
create(String regionId,
String description,
String parentRegionId)
Create a new region
|
ActionResponse |
delete(String regionId)
Delete a region specified by id
|
Region |
get(String regionId)
Get details for a region specified by id
|
List<? extends Region> |
list()
List regions
|
Region |
update(Region region)
Update a region
|
Region create(Region region)
region - the regionRegion create(String regionId, String description, String parentRegionId)
regionId - the user-defined region iddescription - the description of the regionparentRegionId - the region id of the parent regionRegion get(String regionId)
regionId - the region idRegion update(Region region)
region - the region set to updateActionResponse delete(String regionId)
regionId - the id of the regionCopyright © 2017. All rights reserved.