/** * The dependent promotions should be exported before, so at the import the depend will already be * in the database. * * @param ruleUidList - the rules that need to be chaked that are dependent on other promotions * @return all the promotion that will be exported in a specific order */ private Set<Long> retriveDependentRulesAndInsertThemBefore(final List<Long> ruleUidList) { return ruleService.retrievePromotionDependencies(new LinkedHashSet<Long>(ruleUidList)); }