return getPortfolioDto(component);
}
+ public final PortfolioDto insertPrivatePortfolioDto(String uuid, Consumer<PortfolioDto> portfolioPopulator) {
+ ComponentDto component = insertComponentAndPortfolio(ComponentTesting.newPortfolio(uuid).setPrivate(true), true, defaults(), portfolioPopulator);
+ return getPortfolioDto(component);
+ }
+
public final PortfolioDto insertPrivatePortfolioDto() {
ComponentDto component = insertComponentAndPortfolio(ComponentTesting.newPortfolio().setPrivate(true), true, defaults(), defaults());
return getPortfolioDto(component);
addPortfolioReference(portfolio.getUuid(), referencerUuids);
}
+ public void addPortfolioReference(PortfolioDto portfolio, PortfolioDto reference) {
+ addPortfolioReference(portfolio.getUuid(), reference.getUuid());
+ }
+
public void addPortfolioProject(String portfolioUuid, String... projectUuids) {
for (String uuid : projectUuids) {
dbClient.portfolioDao().addProject(dbSession, portfolioUuid, uuid);