Changed method
This commit is contained in:
parent
6e3245ca0b
commit
db53e6fa81
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue