Class AccountDetailsService
java.lang.Object
com.bluebell.greenhouse.radicle.services.account.AccountDetailsService
@Service("accountDetailsService")
@Transactional(readOnly=true)
public class AccountDetailsService
extends Object
Service-layer implementation of
AccountDetails.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateBalanceTimeline(Account account) Calculates the account's balance timeline over time.intcalculateConsistencyScore(Account account) Calculates the account's consistency score.obtainAnalytics(Account account) Calculates the complete account analytics snapshot from one set of account-wide reads.obtainInsights(Account account) Calculates the account's insights.obtainStatistics(Account account) Calculates the account's statistics.
-
Constructor Details
-
AccountDetailsService
public AccountDetailsService()
-
-
Method Details
-
obtainAnalytics
@Cacheable(cacheNames="accountAnalytics", key="T(com.bluebell.greenhouse.platform.configuration.cache.account.AccountCacheKeys).forSnapshot(#account)", sync=true) public AccountAnalytics obtainAnalytics(Account account) Calculates the complete account analytics snapshot from one set of account-wide reads.- Parameters:
account-Account- Returns:
- cached analytics without retaining persistence entities
-
calculateConsistencyScore
@Cacheable(cacheNames="accountAnalytics", key="T(com.bluebell.greenhouse.platform.configuration.cache.account.AccountCacheKeys).forConsistency(#account)", sync=true) public int calculateConsistencyScore(Account account) Calculates the account's consistency score.- Parameters:
account-Account- Returns:
- consistency score 0 - 100
-
calculateBalanceTimeline
@Cacheable(cacheNames="accountAnalytics", key="T(com.bluebell.greenhouse.platform.configuration.cache.account.AccountCacheKeys).forBalanceTimeline(#account)", sync=true) public List<AccountBalanceTimelinePoint> calculateBalanceTimeline(Account account) Calculates the account's balance timeline over time.- Parameters:
account-Account- Returns:
ListofAccountBalanceTimelinePoint
-
obtainInsights
@Cacheable(cacheNames="accountAnalytics", key="T(com.bluebell.greenhouse.platform.configuration.cache.account.AccountCacheKeys).forInsights(#account)", sync=true) public AccountInsights obtainInsights(Account account) Calculates the account's insights.- Parameters:
account-Account- Returns:
AccountInsights
-
obtainStatistics
@Cacheable(cacheNames="accountAnalytics", key="T(com.bluebell.greenhouse.platform.configuration.cache.account.AccountCacheKeys).forStatistics(#account)", sync=true) public AccountStatistics obtainStatistics(Account account) Calculates the account's statistics.- Parameters:
account-Account- Returns:
AccountStatistics
-