/** * @see io.apiman.manager.api.core.IStorageQuery#getApiVersions(java.lang.String, java.lang.String) */ @Override public List<ApiVersionSummaryBean> getApiVersions(String orgId, String apiId) throws StorageException { refresh(); return this.delegate.getApiVersions(orgId, apiId); }
/** * @see io.apiman.manager.api.rest.contract.IOrganizationResource#listApiVersions(java.lang.String, java.lang.String) */ @Override public List<ApiVersionSummaryBean> listApiVersions(String organizationId, String apiId) throws ApiNotFoundException, NotAuthorizedException { // Try to get the API first - will throw a ApiNotFoundException if not found. getApi(organizationId, apiId); try { return query.getApiVersions(organizationId, apiId); } catch (StorageException e) { throw new SystemErrorException(e); } }
/** * @see io.apiman.manager.api.rest.contract.IOrganizationResource#listApiVersions(java.lang.String, java.lang.String) */ @Override public List<ApiVersionSummaryBean> listApiVersions(String organizationId, String apiId) throws ApiNotFoundException, NotAuthorizedException { // Try to get the API first - will throw a ApiNotFoundException if not found. getApi(organizationId, apiId); try { return query.getApiVersions(organizationId, apiId); } catch (StorageException e) { throw new SystemErrorException(e); } }