Class TransactionRecordService
java.lang.Object
com.bluebell.greenhouse.radicle.services.transaction.TransactionRecordService
Service-layer for calculating
TransactionRecords.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRecentTransactionRecords(Account account, RecordTimeInterval transactionRecordInterval, int count) getRecentTransactionRecords(Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) getRecentTransactionRecordsForInterval(Account account, RecordTimeInterval transactionRecordInterval, int count) getRecentTransactionRecordsForInterval(Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) getTransactionLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count) Obtains aTransactionLog.getTransactionLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aTransactionLog.getTransactionLogForInterval(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count) Obtains aTransactionLog.getTransactionLogForInterval(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aTransactionLog.getTransactionRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count) Obtains aListofTransactionRecords.getTransactionRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aListofTransactionRecords.getTransactionRecordsForInterval(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count) Obtains aListofTransactionRecords.getTransactionRecordsForInterval(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aListofTransactionRecords.
-
Constructor Details
-
TransactionRecordService
public TransactionRecordService()
-
-
Method Details
-
getTransactionRecordsForInterval
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecords(#start, #end, #account, #transactionRecordInterval, #count, T(java.time.ZoneOffset).UTC)", sync=true) public TransactionRecordReport getTransactionRecordsForInterval(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count) Obtains aListofTransactionRecords.- Parameters:
start- start of time periodend- end of time periodaccount-AccounttransactionRecordInterval-RecordTimeIntervalcount- number of results- Returns:
TransactionRecordReport
-
getTransactionRecordsForInterval
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecords(#start, #end, #account, #transactionRecordInterval, #count, #zoneId)", sync=true) public TransactionRecordReport getTransactionRecordsForInterval(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aListofTransactionRecords.- Parameters:
start- start of time periodend- end of time periodaccount-AccounttransactionRecordInterval-RecordTimeIntervalcount- number of resultszoneId- timezone used for transaction-day bucketing- Returns:
TransactionRecordReport
-
getTransactionRecords
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecords(#start, #end, #account, #transactionRecordInterval, #count, T(java.time.ZoneOffset).UTC)", sync=true) public TransactionRecordReport getTransactionRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count) Obtains aListofTransactionRecords.- Parameters:
start- start of time periodend- end of time periodaccount-AccounttransactionRecordInterval-RecordTimeIntervalcount- number of results- Returns:
TransactionRecordReport
-
getTransactionRecords
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecords(#start, #end, #account, #transactionRecordInterval, #count, #zoneId)", sync=true) public TransactionRecordReport getTransactionRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aListofTransactionRecords.- Parameters:
start- start of time periodend- end of time periodaccount-AccounttransactionRecordInterval-RecordTimeIntervalcount- number of resultszoneId- timezone used for transaction-day bucketing- Returns:
TransactionRecordReport
-
getRecentTransactionRecordsForInterval
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecentRecords(#account, #transactionRecordInterval, #count, T(java.time.ZoneOffset).UTC)", sync=true) public TransactionRecordReport getRecentTransactionRecordsForInterval(Account account, RecordTimeInterval transactionRecordInterval, int count) - Parameters:
account-AccounttransactionRecordInterval-RecordTimeIntervalcount- limit- Returns:
TransactionRecordReport
-
getRecentTransactionRecordsForInterval
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecentRecords(#account, #transactionRecordInterval, #count, #zoneId)", sync=true) public TransactionRecordReport getRecentTransactionRecordsForInterval(Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) - Parameters:
account-AccounttransactionRecordInterval-RecordTimeIntervalcount- limitzoneId- timezone used for transaction-day bucketing- Returns:
TransactionRecordReport
-
getRecentTransactionRecords
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecentRecords(#account, #transactionRecordInterval, #count, T(java.time.ZoneOffset).UTC)", sync=true) public TransactionRecordReport getRecentTransactionRecords(Account account, RecordTimeInterval transactionRecordInterval, int count) - Parameters:
account-AccounttransactionRecordInterval-RecordTimeIntervalcount- limit- Returns:
TransactionRecordReport
-
getTransactionLogForInterval
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forLog(#user, #portfolioNumber, #start, #end, #transactionRecordInterval, #count, T(java.time.ZoneOffset).UTC)", sync=true) public TransactionLog getTransactionLogForInterval(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count) Obtains aTransactionLog.- Parameters:
user-UserportfolioNumber- portfolio numberstart- start of time periodend- end of time periodtransactionRecordInterval-RecordTimeIntervalcount- number of results- Returns:
TransactionLog
-
getTransactionLogForInterval
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forLog(#user, #portfolioNumber, #start, #end, #transactionRecordInterval, #count, #zoneId)", sync=true) public TransactionLog getTransactionLogForInterval(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aTransactionLog.- Parameters:
user-UserportfolioNumber- portfolio numberstart- start of time periodend- end of time periodtransactionRecordInterval-RecordTimeIntervalcount- number of resultszoneId- timezone used for transaction-day bucketing- Returns:
TransactionLog
-
getTransactionLog
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forLog(#user, #portfolioNumber, #start, #end, #transactionRecordInterval, #count, T(java.time.ZoneOffset).UTC)", sync=true) public TransactionLog getTransactionLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count) Obtains aTransactionLog.- Parameters:
user-UserportfolioNumber- portfolio numberstart- start of time periodend- end of time periodtransactionRecordInterval-RecordTimeIntervalcount- number of results- Returns:
TransactionLog
-
getTransactionLog
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forLog(#user, #portfolioNumber, #start, #end, #transactionRecordInterval, #count, #zoneId)", sync=true) public TransactionLog getTransactionLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) Obtains aTransactionLog.- Parameters:
user-UserportfolioNumber- portfolio numberstart- start of time periodend- end of time periodtransactionRecordInterval-RecordTimeIntervalcount- number of resultszoneId- timezone used for transaction-day bucketing- Returns:
TransactionLog
-
getRecentTransactionRecords
@Cacheable(cacheNames="transactionRecordReports", key="T(com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys).forRecentRecords(#account, #transactionRecordInterval, #count, #zoneId)", sync=true) public TransactionRecordReport getRecentTransactionRecords(Account account, RecordTimeInterval transactionRecordInterval, int count, ZoneId zoneId) - Parameters:
account-AccounttransactionRecordInterval-RecordTimeIntervalcount- limitzoneId- timezone used for transaction-day bucketing- Returns:
TransactionRecordReport
-