private void removeMemberships ( Node groupNode , boolean broadcast ) throws RepositoryException { NodeIterator refUsers = groupNode . getNode ( JCROrganizationServiceImpl . JOS_MEMBERSHIP ) . getNodes ( ) ; while ( refUsers . hasNext ( ) ) { refUsers . nextNode ( ) . remove ( ) ; } }
Remove all membership entities related to current group .