Step 2b: Persisting the portfolio object

/* Persisting the portfolio object */ 
pf = portfolioService.createPortfolio(pf);

Similar to the PortfolioDocument, publish the portfolio asset using the markReadyToPublish() and publishPortfolio() APIs.

  • Mark Portfolioas ReadyToPublish
    public Portfolio markReadyToPublish(String portfolioID)
  • Publish the Portfolio
    public Portfolio publishPortfolio(String portfolioID)

// Ethnio survey code removed