Factory method. Creates and returns a new empty instance of the entity.
An instance of the entity.
Find all repository items matching the filter parameters.
Filter parameters. Use .FilterInterface to create them.
Promise with the entities that match the filter.
Gets all repository items. The cached data will be returned if the data has been fetched before. Using the forceFetch parameter, a user can order a fresh copy to be fetched from the server.
Optional
forceFetch: booleanWhether to bypass the cache and retrieve a fresh copy from the server.
Promise with the repository items.
Returns the site that is closest to the specified global coordinate.
Location of the site in WGS 84
Promise that resolves with the site
Get one repository item by id. The cached data will be returned if the data has been fetched before. Use the forceFetch parameter to retrieve a fresh copy from the server. In case a new record is fetched, the data and dataMap will be updated accordingly.
Identifier of the repository item
Optional
forceFetch: booleanWhether to bypass the cache and retrieve a fresh copy from the server.
Deletes an item from the repository.
The item to delete.
Promise that resolves once the request has completed.
Saves new and/or updated items.
The item(s) to save or update.
Promise with the saved objects.
Generated using TypeDoc
The RestRepository retreives resources from the database through the REST API.
A full list of resources can be fetched by calling findAll and a specific resource by calling findOne.