NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
Location/Site Service (java)
A wrapper for the '/locationsite' endpoint
List of all options:
- Manage locations/sites
Initialize service
TrivoreID sdk = TrivoreID.mgmtApiClient(); LocationSiteServiceImpl locationSiteService = new LocationSiteServiceImpl(sdk.locationSiteService());
Manage locations/sites
// get page with all location/sites by the defined criteria Criteria criteria = new Criteria(Filter.equal("country", "FI")); Page<LocationSite> page = locationSiteService.getAll(criteria); // create // the function returns location/site object with the generated id LocationSite locationsite = locationSiteService.create(new LocationSite()); String locationsiteId = locationsite.getId(); // update locationsite.setName("Example Location/Site Name"); locationSiteService.update(locationsite); // get locationsite = locationSiteService.get(locationsiteId); // delete locationSiteService.delete(locationsiteId);