Group index: Minor cleanups
* Document is:visibletoall in all lower case to be consistent with the case of other search operators (internally it's case-insensitive). * Fix some comments. Change-Id: Ied4c33a6968499b7f6dd9e74f3c25f48fb6bf401 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -52,7 +52,7 @@ public class Index implements RestModifyView<GroupResource, Input> {
|
||||
.format("External Group Not Allowed: %s", rsrc.getGroupUUID().get()));
|
||||
}
|
||||
|
||||
// evicting the group from the cache, reindexes the account
|
||||
// evicting the group from the cache, reindexes the group
|
||||
groupCache.evict(group);
|
||||
return Response.none();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class GroupField {
|
||||
}
|
||||
};
|
||||
|
||||
/** Fuzzy prefix match on group name parts. */
|
||||
/** Prefix match on group name parts. */
|
||||
public static final FieldDef<AccountGroup, Iterable<String>> NAME_PART =
|
||||
new FieldDef.Repeatable<AccountGroup, String>(
|
||||
"name_part", FieldType.PREFIX, false) {
|
||||
|
||||
@@ -77,7 +77,7 @@ public class GroupQueryBuilder extends QueryBuilder<AccountGroup> {
|
||||
|
||||
@Operator
|
||||
public Predicate<AccountGroup> is(String value) throws QueryParseException {
|
||||
if ("visibleToAll".equalsIgnoreCase(value)) {
|
||||
if ("visibletoall".equalsIgnoreCase(value)) {
|
||||
return GroupPredicates.isVisibleToAll();
|
||||
}
|
||||
throw error("Invalid query");
|
||||
|
||||
Reference in New Issue
Block a user