Skip to content

Instantly share code, notes, and snippets.

@kimchy
Created August 10, 2010 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kimchy/517791 to your computer and use it in GitHub Desktop.
Save kimchy/517791 to your computer and use it in GitHub Desktop.
if (!groups.isEmpty()) {
// lets see if we can filter based on groups
boolean filter = true;
for (String group : reservation.getGroupNames()) {
if (groups.contains(group)) {
filter = false;
break;
}
}
if (filter) {
logger.trace("filtering out reservation {} based on groups {}, not part of {}", reservation.getReservationId(), reservation.getGroupNames(), groups);
// if we are filtering, continue to the next reservation
continue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment