memberRemoved = false;
continue; // member still exists
}
}
if (memberRemoved) {
GroupItemKey gik = new GroupItemKey(group.getId(), ogi.getMember(), ogi.getRevNo());
deleteItem(gik, cra);
it.remove();
}
}
for (GroupItem gi : members) {
boolean memberAdded = true;
for (GroupItem ogi : oldMembers) {
if (gi.getMember().equalsIgnoreCase(ogi.getMember())) {
memberAdded = false;
continue; // member still exists
}
}
if (memberAdded) {
gi.setGroupId(group.getId());
GroupItemKey uk = insertItem(gi, cra);
if (uk == null) {
ApplicationException.exception(
CommonMessageID.SERVICE_FAILURE.getMessage());
return;
}