import org.apache.commons.collections.ListUtils; //导入方法依赖的package包/类
/**
* Validate user group selection.
*
* @param groupSelectionMap
* the group selection map
* @param selectionList
* the selection list
* @return true, if successful
*/
public boolean validateUserGroupSelection(Map>> groupSelectionMap,List selectionList){
boolean retValue=true;
for (int key : groupSelectionMap.keySet()) {
List> groups = groupSelectionMap.get(key);
for (List grp : groups) {
if (selectionList.size() == grp.size()) {
if (!ListUtils.isEqualList(selectionList, grp) && ListUtils.intersection(selectionList, grp).size()==0) {
retValue = true;
}else if(ListUtils.isEqualList(selectionList, grp)){
if (creat