Added a "none" category to region group flags (aliases noone and deny).

This commit is contained in:
TomyLobo 2012-03-08 10:30:09 +01:00
parent 824e8dcb4b
commit 0bcf4b3597
2 changed files with 4 additions and 1 deletions

View File

@ -26,5 +26,6 @@ public enum RegionGroup {
OWNERS,
NON_MEMBERS,
NON_OWNERS,
ALL
ALL,
NONE
}

View File

@ -53,6 +53,8 @@ public RegionGroup detectValue(String input) {
return RegionGroup.NON_MEMBERS;
} else if (input.equalsIgnoreCase("everyone") || input.equalsIgnoreCase("anyone") || input.equalsIgnoreCase("all")) {
return RegionGroup.ALL;
} else if (input.equalsIgnoreCase("none") || input.equalsIgnoreCase("noone") || input.equalsIgnoreCase("deny")) {
return RegionGroup.NONE;
} else {
return null;
}