Class TransactionRecordCacheKeys
java.lang.Object
com.bluebell.greenhouse.platform.configuration.cache.transaction.TransactionRecordCacheKeys
Cache key helpers for transaction record reports.
- Version:
- 3.0.3
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringforLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for a transaction log.static StringforRecentRecords(Account account, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for recent transaction records.static StringforRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for transaction records.
-
Method Details
-
forLog
public static String forLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for a transaction log.- Parameters:
user-UserportfolioNumber- portfolio numberstart- report startend- report endinterval- record intervalcount- result limitzoneId- reporting timezone- Returns:
- cache key
-
forRecentRecords
public static String forRecentRecords(Account account, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for recent transaction records.- Parameters:
account-Accountinterval- record intervalcount- result limitzoneId- reporting timezone- Returns:
- cache key
-
forRecords
public static String forRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for transaction records.- Parameters:
start- report startend- report endaccount-Accountinterval- record intervalcount- result limitzoneId- reporting timezone- Returns:
- cache key
-