/** * This method find the list of API published by particular Pulisher * @param providerId Provider username * @return list of APIs * @throws APIMgtUsageQueryServiceClientException throws if error occurred */ private List<API> getAPIsByProvider(String providerId) throws APIMgtUsageQueryServiceClientException { try { if (APIUsageStatisticsClientConstants.ALL_PROVIDERS.equals(providerId)) { return apiProviderImpl.getAllAPIs(); } else { return apiProviderImpl.getAPIsByProvider(providerId); } } catch (APIManagementException e) { log.error("Error while retrieving APIs by " + providerId, e); throw new APIMgtUsageQueryServiceClientException("Error while retrieving APIs by " + providerId, e); } }
/** * This method find the list of API published by particular Pulisher * * @param providerId Provider username * @return list of APIs * @throws APIMgtUsageQueryServiceClientException throws if error occurred */ private List<API> getAPIsByProvider(String providerId) throws APIMgtUsageQueryServiceClientException { try { if (APIUsageStatisticsClientConstants.ALL_PROVIDERS.equals(providerId)) { return apiProviderImpl.getAllAPIs(); } else { return apiProviderImpl.getAPIsByProvider(providerId); } } catch (APIManagementException e) { log.error("Error while retrieving APIs by " + providerId, e); throw new APIMgtUsageQueryServiceClientException("Error while retrieving APIs by " + providerId, e); } }
apiList = apiProvider.getAllAPIs(); } else { apiList = apiProvider.getAPIsByProvider(provider);
apiSet = apiProvider.getAllAPIs(); } else { apiSet = apiProvider.getAPIsByProvider(APIUtil.replaceEmailDomain(loggedUser));