/
Location/Site Service (java)
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);
Location/Site Service Models
, multiple selections available,
Related content
Location/Site Service (python)
Location/Site Service (python)
More like this
Target Service (java)
Target Service (java)
More like this
Products Service (java)
Products Service (java)
More like this
Contact Service (java)
Contact Service (java)
More like this
Data Storage Service (java)
Data Storage Service (java)
More like this
Subscription Service (java)
Subscription Service (java)
More like this