package cse308.swift.shared.beans; import java.util.ArrayList; import cse308.swift.shared.beans.ClientPortfolioItem; /** * This class holds all the stocks owned by the user. * * @author Ken * */ public class ClientPortfolio { /** * A collection of transactions done by the user */ private ArrayList transactions; /** * The clientID associated with this portfolio */ private int clientID; /** * Default constructor for bean */ public ClientPortfolio() {} /** * Return a reference to an ArrayList of portfolio items owned by the user * @return An ArrayList of portfolio Items owned by the user: ArrayList */ public ArrayList getPortfolioItems() { return this.transactions; } /** * Set the ArrayList of ClientTransactions * @param initTransactions ArrayList of ClientTransactions for this ClientPortfolio: ArrayList */ public void setPortfolioItems(ArrayList initTransactions ) { this.transactions = initTransactions; } /** * Return the clientID of this user portfolio * @return the clientID of this user portfolio: String */ public int getClientID() { return this.clientID; } /** * Sets the ClientID for this Portfolio * @param initClientID the ClientID for this Portfolio: String */ public void setClientID(int initClientID) { this.clientID = initClientID; } }