Cache instances of type InternalGroup instead of AccountGroup by UUID

Change-Id: Id4725960eb155945f0344a56e7f36d5f4293750d
This commit is contained in:
Alice Kober-Sotzek
2017-08-25 17:42:23 +02:00
parent e23b34a206
commit 3e6c672b99
20 changed files with 135 additions and 154 deletions

View File

@@ -213,7 +213,7 @@ public class ElasticGroupIndex extends AbstractElasticIndex<AccountGroup.UUID, I
source.getAsJsonObject().get(GroupField.UUID.getName()).getAsString());
// Use the GroupCache rather than depending on any stored fields in the
// document (of which there shouldn't be any).
return groupCache.get().getInternalGroup(uuid);
return groupCache.get().get(uuid);
}
}
}