public psRETURN_VALUES SynchronizePortfolio(String uci, String id, psPortfoliosItemInfo portfolioItemInfo)
        {
            psRETURN_VALUES retVal;

            try
            {
                PsPortfolio.SynchronizeEx2(uci, id, portfolioItemInfo);
                retVal = psRETURN_VALUES.ERR_OK;
            }
            catch (Exception ex)
            {
                PsLogger.Error(string.Format("Unexcpected SynchronizePortfolio Error: \n{0}\n", ex.Message));
                throw new Exception(ex.Message, ex.InnerException);
            }
            return(retVal);
        }
        public psRETURN_VALUES AddPortfolio(String uci, String id, psPortfoliosItemInfo portfolioItemInfo)
        {
            psRETURN_VALUES retVal;

            try
            {
                //PsPortfolio.AddNewEx(String.Empty, String.Empty, portfolioItemInfo.Name, portfolioItemInfo.LifeCycle,
                //                    portfolioItemInfo.StartDate, portfolioItemInfo.EndDate, portfolioItemInfo.Description,portfolioItemInfo.Status,
                //                    portfolioItemInfo.PortfolioType,portfolioItemInfo.Manager,portfolioItemInfo.ContainerUCI);
                PsPortfolio.AddNewEx2(uci, id, portfolioItemInfo);
                retVal = psRETURN_VALUES.ERR_OK;
            }
            catch (Exception ex)
            {
                PsLogger.Error("Unexcpected AddPortfolio Error: \n{0}\n", ex.Message);
                throw new Exception(ex.Message, ex.InnerException);
            }
            return(retVal);
        }
        public psRETURN_VALUES SynchronizeQbp(String uci, String id, List <psPortfoliosPortfolioIdentifier> portfolioScope, List <psPortfoliosQueryPart> queryPartsList, bool periodicUpdate, psPortfoliosItemInfo portfolioItemInfo)
        {
            psRETURN_VALUES retVal;

            try
            {
                PsPortfolio.SynchronizeQBP2(uci, id, portfolioScope.ToArray(), queryPartsList.ToArray(), periodicUpdate, portfolioItemInfo);
                retVal = psRETURN_VALUES.ERR_OK;
            }
            catch (Exception ex)
            {
                PsLogger.Error(string.Format("Unexcpected SynchronizeQBP Error: \n{0}\n", ex.Message));
                throw new Exception(ex.Message, ex.InnerException);
            }
            return(retVal);
        }
        public psRETURN_VALUES SynchronizeQbp(String uci, String id, String portfolioNameScope, List <psPortfoliosQueryPart> queryPartsList, bool periodicUpdate, psPortfoliosItemInfo portfolioItemInfo)
        {
            var portfolioScope = new List <psPortfoliosPortfolioIdentifier>
            {
                new psPortfoliosPortfolioIdentifier {
                    Name = portfolioNameScope
                }
            };

            return(SynchronizeQbp(uci, id, portfolioScope, queryPartsList, periodicUpdate, portfolioItemInfo));
        }
 public psRETURN_VALUES SynchronizePortfolio(String portfolioId, psPortfoliosItemInfo portfolioItemInfo)
 {
     return(SynchronizePortfolio("", portfolioId, portfolioItemInfo));
 }
 public psRETURN_VALUES SynchronizePortfolio(int portfolioId, psPortfoliosItemInfo portfolioItemInfo)
 {
     return(SynchronizePortfolio("", portfolioId.ToString(CultureInfo.InvariantCulture), portfolioItemInfo));
 }
 public psRETURN_VALUES UpdatePortfolio(String portfolioId, psPortfoliosItemInfo portfolioItemInfo)
 {
     return(UpdatePortfolio("", portfolioId, portfolioItemInfo));
 }
 public psRETURN_VALUES AddPortfolio(String portfolioId, psPortfoliosItemInfo portfolioItemInfo)
 {
     return(AddPortfolio(String.Empty, portfolioId, portfolioItemInfo));
 }
 public psRETURN_VALUES AddPortfolio(int portfolioId, psPortfoliosItemInfo portfolioItemInfo)
 {
     return(AddPortfolio(String.Empty, portfolioId.ToString(CultureInfo.InvariantCulture), portfolioItemInfo));
 }