Changed method

This commit is contained in:
Luca Frosini 2021-03-22 12:00:21 +01:00
parent 6e3245ca0b
commit db53e6fa81
2 changed files with 5 additions and 3 deletions

View File

@ -18,6 +18,7 @@ import org.gcube.accounting.analytics.exception.KeyException;
import org.gcube.accounting.analytics.exception.ValueException;
import org.gcube.accounting.datamodel.BasicUsageRecord;
import org.gcube.documentstore.records.AggregatedRecord;
import org.gcube.documentstore.records.Record;
/**
* @author Luca Frosini (ISTI - CNR)
@ -210,7 +211,7 @@ public interface AccountingPersistenceBackendQuery {
TemporalConstraint temporalConstraint, List<Filter> filters,List<String> contexts)
throws Exception;
public String getRecord(String recordId, String type) throws Exception;
public Record getRecord(String recordId, String type) throws Exception;
public SortedSet<String> getSpaceProvidersIds() throws Exception;

View File

@ -26,6 +26,7 @@ import org.gcube.accounting.analytics.exception.ValueException;
import org.gcube.accounting.datamodel.aggregation.AggregatedStorageStatusRecord;
import org.gcube.accounting.datamodel.aggregation.AggregatedStorageUsageRecord;
import org.gcube.documentstore.records.AggregatedRecord;
import org.gcube.documentstore.records.Record;
import org.json.JSONException;
import org.json.JSONObject;
@ -286,8 +287,8 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
}
@Override
public String getRecord(String recordId, String type) throws Exception {
String record = AccountingPersistenceBackendQueryFactory.getInstance().getRecord(recordId, type);
public Record getRecord(String recordId, String type) throws Exception {
Record record = AccountingPersistenceBackendQueryFactory.getInstance().getRecord(recordId, type);
return record;
}