use of com.google.gerrit.entities.SubscribeSection in project gerrit by GerritCodeReview.
the class ProjectConfig method saveSubscribeSections.
private void saveSubscribeSections(Config rc) {
for (Project.NameKey p : subscribeSections.keySet()) {
SubscribeSection s = subscribeSections.get(p);
List<String> matchings = new ArrayList<>();
for (String r : s.matchingRefSpecsAsString()) {
matchings.add(r);
}
rc.setStringList(SUBSCRIBE_SECTION, p.get(), SUBSCRIBE_MATCH_REFS, matchings);
List<String> multimatchs = new ArrayList<>();
for (String r : s.multiMatchRefSpecsAsString()) {
multimatchs.add(r);
}
rc.setStringList(SUBSCRIBE_SECTION, p.get(), SUBSCRIBE_MULTI_MATCH_REFS, multimatchs);
}
}
Aggregations