protected void synchronizeGroupMembersOnDelete ( IEntityGroup group ) throws GroupsException { GroupMemberImpl gmi = null ; for ( Iterator it = group . getChildren ( ) . iterator ( ) ; it . hasNext ( ) ; ) { gmi = ( GroupMemberImpl ) it . next ( ) ; gmi . invalidateInParentGroupsCache ( Collections . singleton ( ( IGroupMember ) gmi ) ) ; if ( cacheInUse ( ) ) { cacheUpdate ( gmi ) ; } } }
Remove the back pointers of the group members of the deleted group . Then update the cache to invalidate copies on peer servers .