Class PortfolioSummaryService

java.lang.Object
com.bluebell.greenhouse.radicle.services.portfolio.PortfolioSummaryService

@Service("portfolioSummaryService") public class PortfolioSummaryService extends Object
Service-layer for PortfolioSummarys.
Version:
3.0.4
Author:
Stephen Prizio
  • Constructor Details

    • PortfolioSummaryService

      public PortfolioSummaryService()
  • Method Details

    • getSinglePortfolioSummary

      @Cacheable(cacheNames="portfolioSummaries", key="T(com.bluebell.greenhouse.platform.configuration.cache.portfolio.PortfolioCacheKeys).forSingleSummary(#portfolioNumber, #lookBackDays, #user)", sync=true) public PortfolioSummary getSinglePortfolioSummary(long portfolioNumber, int lookBackDays, User user)
      Obtains the User's PortfolioSummary for the matching portfolio.
      Parameters:
      portfolioNumber - portfolio number
      lookBackDays - lookback period in days
      user - User
      Returns:
      PortfolioSummary
    • getComprehensivePortfolioSummary

      @Cacheable(cacheNames="portfolioSummaries", key="T(com.bluebell.greenhouse.platform.configuration.cache.portfolio.PortfolioCacheKeys).forComprehensiveSummary(#lookBackDays, #user)", sync=true) public PortfolioSummary getComprehensivePortfolioSummary(int lookBackDays, User user)
      Obtains the User's PortfolioSummary for all portfolios.
      Parameters:
      lookBackDays - lookback period in days
      user - User
      Returns:
      PortfolioSummary