Class PositionRecordCacheKeys
java.lang.Object
com.bluebell.greenhouse.platform.configuration.cache.position.PositionRecordCacheKeys
Cache key helpers for position record reports.
- Version:
- 3.0.3
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringforControls(Account account, RecordTimeInterval interval, ZoneId zoneId) Builds the cache key for position record controls.static StringforLog(User user, long portfolioNumber, LocalDate start, LocalDate end, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for a position log.static StringforRecentRecords(Account account, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for recent position records.static StringforRecords(LocalDate start, LocalDate end, Account account, RecordTimeInterval interval, int count, ZoneId zoneId) Builds the cache key for position records.
-
Method Details
-
forControls
Builds the cache key for position record controls.- Parameters:
account-Accountinterval- record intervalzoneId- reporting timezone- Returns:
- cache key
-
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 position 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 position 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 position records.- Parameters:
start- report startend- report endaccount-Accountinterval- record intervalcount- result limitzoneId- reporting timezone- Returns:
- cache key
-