public interface InstitutionService extends CollectionEntityService<Institution>
| Modifier and Type | Method and Description |
|---|---|
void |
convertToCollection(UUID targetEntityKey,
UUID collectionKey)
Converts an institution into a collection.
|
UUID |
createFromOrganization(UUID organizationKey,
String institutionCode)
Creates a
Institution from a Organization. |
PagingResponse<Institution> |
list(InstitutionSearchRequest searchRequest)
Pages
Institution entities based on the parameters received. |
PagingResponse<Institution> |
listDeleted(InstitutionSearchRequest searchRequest)
Provides access to deleted institutions.
|
org.geojson.FeatureCollection |
listGeojson(InstitutionSearchRequest searchRequest)
Lists the institutions in GeoJson format.
|
List<KeyCodeNameResult> |
suggest(String q)
Provides a simple suggest service.
|
addMasterSourceMetadata, deleteMasterSourceMetadata, findByMasterSource, getMasterSourceMetadata, replace, updatecreate, delete, exists, get, updateaddIdentifier, deleteIdentifier, listIdentifiersaddTag, addTag, deleteTag, listTagsaddMachineTag, addMachineTag, addMachineTag, deleteMachineTag, deleteMachineTags, deleteMachineTags, deleteMachineTags, deleteMachineTags, listMachineTagsaddComment, deleteComment, listCommentsaddContactPerson, listContactPersons, removeContactPerson, replaceContactPersons, updateContactPersonaddOccurrenceMapping, deleteOccurrenceMapping, listOccurrenceMappingsPagingResponse<Institution> list(InstitutionSearchRequest searchRequest)
Institution entities based on the parameters received.
To iterate over all entities you can use code like this: PagingRequest req =
new PagingRequest(); PagingResponse<T> response; do { response = service.list(req); for (T obj
: response.getResults()) { doStuff(); } req.nextPage(); } while (!response.isEndOfRecords());
searchRequest - InstitutionSearchRequest with all the parametersPagingResponse<Institution> listDeleted(InstitutionSearchRequest searchRequest)
List<KeyCodeNameResult> suggest(@Nullable String q)
void convertToCollection(UUID targetEntityKey, UUID collectionKey)
UUID createFromOrganization(UUID organizationKey, String institutionCode)
Institution from a Organization.organizationKey - key of the dataset to create the institution frominstitutionCode - the code to assign to the institution since it can't be inferred from
the organizationorg.geojson.FeatureCollection listGeojson(InstitutionSearchRequest searchRequest)
searchRequest - parameters to filter the requestFeatureCollection object that conforms with GeoJsonCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.