public class WalletTransactionServiceImpl extends Object implements org.exoplatform.wallet.service.WalletTransactionService
| Constructor and Description |
|---|
WalletTransactionServiceImpl(org.exoplatform.wallet.service.WalletAccountService accountService,
TransactionStorage transactionStorage,
org.exoplatform.wallet.service.WalletContractService contractService,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSendTransactionToBlockchain(String fromAddress) |
long |
getMaxAttemptsToSend() |
long |
getMaxParallelPendingTransactions() |
long |
getNonce(String fromAddress) |
long |
getNonce(String fromAddress,
String currentUser) |
long |
getPendingTransactionMaxDays() |
List<org.exoplatform.wallet.model.transaction.TransactionDetail> |
getPendingTransactions() |
org.exoplatform.wallet.model.transaction.TransactionDetail |
getTransactionByHash(String hash) |
org.exoplatform.wallet.model.transaction.TransactionDetail |
getTransactionByHash(String hash,
String currentUser) |
List<org.exoplatform.wallet.model.transaction.TransactionDetail> |
getTransactions(String address,
String contractAddress,
String contractMethodName,
String hash,
int limit,
boolean onlyPending,
boolean administration,
String currentUser) |
org.exoplatform.wallet.model.transaction.TransactionStatistics |
getTransactionStatistics(String address,
String periodicity,
String selectedDate,
Locale locale) |
List<org.exoplatform.wallet.model.transaction.TransactionDetail> |
getTransactionsToSend() |
boolean |
isLogAllTransaction() |
void |
saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail,
boolean broadcastMinedTransaction) |
void |
saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail,
String currentUser) |
public WalletTransactionServiceImpl(org.exoplatform.wallet.service.WalletAccountService accountService,
TransactionStorage transactionStorage,
org.exoplatform.wallet.service.WalletContractService contractService,
org.exoplatform.container.xml.InitParams params)
public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingTransactions()
getPendingTransactions in interface org.exoplatform.wallet.service.WalletTransactionServicepublic List<org.exoplatform.wallet.model.transaction.TransactionDetail> getTransactions(String address, String contractAddress, String contractMethodName, String hash, int limit, boolean onlyPending, boolean administration, String currentUser) throws IllegalAccessException
getTransactions in interface org.exoplatform.wallet.service.WalletTransactionServiceIllegalAccessExceptionpublic org.exoplatform.wallet.model.transaction.TransactionStatistics getTransactionStatistics(String address, String periodicity, String selectedDate, Locale locale)
getTransactionStatistics in interface org.exoplatform.wallet.service.WalletTransactionServicepublic org.exoplatform.wallet.model.transaction.TransactionDetail getTransactionByHash(String hash, String currentUser)
getTransactionByHash in interface org.exoplatform.wallet.service.WalletTransactionServicepublic long getNonce(String fromAddress)
getNonce in interface org.exoplatform.wallet.service.WalletTransactionServicepublic long getNonce(String fromAddress, String currentUser) throws IllegalAccessException
getNonce in interface org.exoplatform.wallet.service.WalletTransactionServiceIllegalAccessExceptionpublic org.exoplatform.wallet.model.transaction.TransactionDetail getTransactionByHash(String hash)
getTransactionByHash in interface org.exoplatform.wallet.service.WalletTransactionServicepublic void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail,
boolean broadcastMinedTransaction)
saveTransactionDetail in interface org.exoplatform.wallet.service.WalletTransactionServicepublic void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail,
String currentUser)
throws IllegalAccessException
saveTransactionDetail in interface org.exoplatform.wallet.service.WalletTransactionServiceIllegalAccessExceptionpublic long getPendingTransactionMaxDays()
getPendingTransactionMaxDays in interface org.exoplatform.wallet.service.WalletTransactionServicepublic List<org.exoplatform.wallet.model.transaction.TransactionDetail> getTransactionsToSend()
getTransactionsToSend in interface org.exoplatform.wallet.service.WalletTransactionServicepublic boolean canSendTransactionToBlockchain(String fromAddress)
canSendTransactionToBlockchain in interface org.exoplatform.wallet.service.WalletTransactionServicepublic long getMaxAttemptsToSend()
getMaxAttemptsToSend in interface org.exoplatform.wallet.service.WalletTransactionServicepublic long getMaxParallelPendingTransactions()
getMaxParallelPendingTransactions in interface org.exoplatform.wallet.service.WalletTransactionServicepublic boolean isLogAllTransaction()
isLogAllTransaction in interface org.exoplatform.wallet.service.WalletTransactionServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.