/**
   * @see
   *     org.kuali.kfs.module.bc.document.service.BudgetOrganizationTreeService#getSelectedOrgs(java.lang.String)
   */
  public List<BudgetConstructionPullup> getSelectedOrgs(String principalId) {

    if (StringUtils.isBlank(principalId)) {
      throw new IllegalArgumentException("String parameter principalId was null or blank.");
    }
    return (List<BudgetConstructionPullup>)
        budgetConstructionDao.getBudgetConstructionPullupFlagSetByUserId(principalId);
  }
  /**
   * @see
   *     org.kuali.kfs.module.bc.document.service.BudgetOrganizationTreeService#resetPullFlag(java.lang.String)
   */
  public void resetPullFlag(String principalId) {

    if (StringUtils.isBlank(principalId)) {
      throw new IllegalArgumentException("String parameter principalId was null or blank.");
    }
    List<BudgetConstructionPullup> results =
        budgetConstructionDao.getBudgetConstructionPullupFlagSetByUserId(principalId);
    if (!results.isEmpty()) {
      for (BudgetConstructionPullup selOrg : results) {
        selOrg.setPullFlag(OrgSelControlOption.NO.getKey());
      }
      businessObjectService.save(results);
    }
  }