Renamed method from listAllHostedData() to listAllHostedTransactions()

This commit is contained in:
CalDescent 2021-12-04 09:27:39 +00:00
parent b80aec37e0
commit 89d08ca359
2 changed files with 4 additions and 3 deletions

View File

@ -605,7 +605,7 @@ public class ArbitraryResource {
try (final Repository repository = RepositoryManager.getRepository()) {
List<ArbitraryTransactionData> hostedTransactions = ArbitraryDataStorageManager.getInstance().listAllHostedData(repository);
List<ArbitraryTransactionData> hostedTransactions = ArbitraryDataStorageManager.getInstance().listAllHostedTransactions(repository);
return hostedTransactions;
@ -633,7 +633,7 @@ public class ArbitraryResource {
try (final Repository repository = RepositoryManager.getRepository()) {
List<ArbitraryTransactionData> transactionDataList = ArbitraryDataStorageManager.getInstance().listAllHostedData(repository);
List<ArbitraryTransactionData> transactionDataList = ArbitraryDataStorageManager.getInstance().listAllHostedTransactions(repository);
for (ArbitraryTransactionData transactionData : transactionDataList) {
ArbitraryTransaction transaction = new ArbitraryTransaction(repository, transactionData);
if (transaction.isDataLocal()) {

View File

@ -217,7 +217,8 @@ public class ArbitraryDataStorageManager extends Thread {
// Hosted data
public List<ArbitraryTransactionData> listAllHostedData(Repository repository) throws IOException {
public List<ArbitraryTransactionData> listAllHostedTransactions(Repository repository) throws IOException {
List<ArbitraryTransactionData> arbitraryTransactionDataList = new ArrayList<>();
Path dataPath = Paths.get(Settings.getInstance().getDataPath());