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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user