distributeCheckOrgs(sub.elements(), allOrganizations_.getAddedList()); distributeCheckOrgs(sub.elements(), allOrganizations_.getChangedList());
Enumeration allOrgChanged = allOrganizations_.getChangedList(); Enumeration allOrgAdded = allOrganizations_.getAddedList(); if (logger.isDebugEnabled()) { logger.debug("AllOrganizations has changed. AddedList is " + allOrgAdded + " ChangedList is " + allOrgChanged); }   distributeCheckOrgs(sub.elements(), allOrgAdded); distributeCheckOrgs(sub.elements(), allOrgChanged);
  public void execute() {    if (selfOrganizations_.hasChanged()){      if (myOrganization_ == null) {        Enumeration new_orgs = selfOrganizations_.elements();        if (logger.isDebugEnabled()) {          logger.debug("selfOrganizations has changed");        }        if (new_orgs.hasMoreElements()) {          myOrganization_ = (Organization) new_orgs.nextElement();          myOrgName_ = myOrganization_.getItemIdentificationPG().getItemIdentification();        }        readInPolicies();      }    }    if (sub.hasChanged()) {      if (myOrganization_ != null) {        if (logger.isDebugEnabled()) {          logger.debug("sub has changed and myOrg is defined");        }        distributeCheckPolicies(sub.getAddedList());        distributeCheckPolicies(sub.getChangedList());      }    }    if (allOrganizations_.hasChanged()) {      if (myOrganization_ != null){        distributeCheckOrgs(sub.elements(), allOrganizations_.getAddedList());        distributeCheckOrgs(sub.elements(), allOrganizations_.getChangedList());      }    }    if (comSub.hasChanged()) {      communityPolicyPublisher(comSub.getAddedList());    }  }