@Component public class RepositoryApiImpl extends Object implements RepositoryApi
| Constructor and Description |
|---|
RepositoryApiImpl() |
public List<String> testAggregations() throws org.json.JSONException
testAggregations in interface RepositoryApiorg.json.JSONExceptionpublic Country[] getCountries()
getCountries in interface RepositoryApipublic List<eu.dnetlib.domain.data.Repository> getRepositoriesByCountry(@PathVariable(value="country") String country, @PathVariable(value="mode") String mode, @RequestParam(value="managed",required=false) Boolean managed) throws org.json.JSONException
getRepositoriesByCountry in interface RepositoryApiorg.json.JSONExceptionpublic List<eu.dnetlib.domain.data.Repository> getRepositoriesOfUser(@PathVariable(value="userEmail") String userEmail, @PathVariable(value="page") String page, @PathVariable(value="size") String size) throws org.json.JSONException
getRepositoriesOfUser in interface RepositoryApiorg.json.JSONExceptionpublic eu.dnetlib.domain.data.Repository getRepositoryById(@PathVariable(value="id")
String id)
throws org.json.JSONException
getRepositoryById in interface RepositoryApiorg.json.JSONExceptionpublic Aggregations getRepositoryAggregations(@PathVariable(value="id") String id) throws org.json.JSONException
getRepositoryAggregations in interface RepositoryApiorg.json.JSONExceptionpublic List<eu.dnetlib.domain.data.Repository> getRepositoriesByName(@PathVariable(value="name") String name, @PathVariable(value="page") String page, @PathVariable(value="size") String size) throws org.json.JSONException
getRepositoriesByName in interface RepositoryApiorg.json.JSONExceptionpublic List<eu.dnetlib.domain.data.RepositoryInterface> getRepositoryInterface(@PathVariable(value="id") String id) throws org.json.JSONException
getRepositoryInterface in interface RepositoryApiorg.json.JSONExceptionpublic void addRepository(@RequestParam(value="datatype")
String datatype,
@RequestBody
eu.dnetlib.domain.data.Repository repository)
throws Exception
addRepository in interface RepositoryApiExceptionpublic void deleteRepositoryInterface(@PathVariable(value="id")
String id)
deleteRepositoryInterface in interface RepositoryApipublic eu.dnetlib.domain.data.RepositoryInterface addRepositoryInterface(@RequestParam(value="datatype")
String datatype,
@RequestParam(value="repoId")
String repoId,
@RequestBody
eu.dnetlib.domain.data.RepositoryInterface repositoryInterface)
throws org.json.JSONException
addRepositoryInterface in interface RepositoryApiorg.json.JSONExceptionpublic List<String> getDnetCountries()
getDnetCountries in interface RepositoryApipublic List<String> getTypologies()
getTypologies in interface RepositoryApipublic List<Timezone> getTimezones()
getTimezones in interface RepositoryApipublic String updateManagedStatus(@RequestParam(value="id") String id, @RequestParam(value="managed") String managed)
updateManagedStatus in interface RepositoryApipublic String updateEnglishName(@RequestParam(value="id") String id, @RequestParam(value="englishname") String englishName)
updateEnglishName in interface RepositoryApipublic String updateLatitude(@RequestParam(value="id") String id, @RequestParam(value="latitude") String latitude)
updateLatitude in interface RepositoryApipublic String updateLongitude(@RequestParam(value="id") String id, @RequestParam(value="longitude") String longitude)
updateLongitude in interface RepositoryApipublic String updateOfficialName(@RequestParam(value="id") String id, @RequestParam(value="officialname") String officialname)
updateOfficialName in interface RepositoryApipublic String updateTimezone(@RequestParam(value="id") String id, @RequestParam(value="timezone") String timezone)
updateTimezone in interface RepositoryApipublic String updateTypology(@RequestParam(value="id") String id, @RequestParam(value="typology") String typology)
updateTypology in interface RepositoryApipublic String updateLogoUrl(@RequestParam(value="id") String id, @RequestParam(value="logoUrl") String logoUrl)
updateLogoUrl in interface RepositoryApipublic String updatePlatform(String id, String platform)
updatePlatform in interface RepositoryApipublic List<String> getUrlsOfUserRepos(@PathVariable(value="user_email") String user_email, @PathVariable(value="page") String page, @PathVariable(value="size") String size) throws org.json.JSONException
getUrlsOfUserRepos in interface RepositoryApiorg.json.JSONExceptionpublic List<String> getDatasourceVocabularies(@PathVariable(value="mode") String mode)
getDatasourceVocabularies in interface RepositoryApipublic Map<String,String> getCompatibilityClasses(@PathVariable(value="mode") String mode)
getCompatibilityClasses in interface RepositoryApipublic Map<String,String> getDatasourceClasses(@PathVariable(value="mode") String mode)
getDatasourceClasses in interface RepositoryApipublic String getCountryName(String countryCode)
getCountryName in interface RepositoryApipublic MetricsInfo getMetricsInfoForRepository(@PathVariable(value="repoId") String repoId) throws RepositoryServiceException
getMetricsInfoForRepository in interface RepositoryApiRepositoryServiceExceptionCopyright © 2018. All rights reserved.