Created
August 10, 2010 19:02
-
-
Save kimchy/517791 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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