Cache list of all groups in the group cache

By caching the list of all groups we avoid to query the database each
time the GroupListScreen is displayed.

Change-Id: I3c7445c9e0ba5711638352dbd0f4d4ff0b7198d7
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2011-09-01 14:40:44 +02:00
parent 0d957de5d3
commit 8e7a35be30
8 changed files with 193 additions and 40 deletions

View File

@@ -22,6 +22,14 @@ public class GroupList {
protected List<GroupDetail> groups;
protected boolean canCreateGroup;
public GroupList() {
}
public GroupList(final List<GroupDetail> groups, final boolean canCreateGroup) {
this.groups = groups;
this.canCreateGroup = canCreateGroup;
}
public List<GroupDetail> getGroups() {
return groups;
}