public void verifyNfsACLs(NfsACLUpdateParams param){
  List<NfsACE> addList=param.getAcesToAdd();
  List<NfsACE> modifyList=param.getAcesToModify();
  List<NfsACE> deleteList=param.getAcesToDelete();
  List<NFSShareACL> dbACLList=queryDBSFileNfsACLs(false);
  Set<String> userSetDB=new HashSet<String>();
  for (  NFSShareACL dbAcl : dbACLList) {
    userSetDB.add(dbAcl.getUser());
  }
  if (addList != null && !addList.isEmpty()) {
    verifyNfsACLsAddList(addList,userSetDB);
  }
  if (modifyList != null && !modifyList.isEmpty()) {
    verifyNfsACLsModifyOrDeleteList(modifyList,userSetDB);
  }
  if (deleteList != null && !deleteList.isEmpty()) {
    verifyNfsACLsModifyOrDeleteList(deleteList,userSetDB);
  }
}

public void verifyNfsACLs ( NfsACLUpdateParams param ) { List < NfsACE > addList = param . getAcesToAdd ( ) ; List < NfsACE > modifyList = param . getAcesToModify ( ) ; List < NfsACE > deleteList = param . getAcesToDelete ( ) ; List < NFSShareACL > dbACLList = queryDBSFileNfsACLs ( false ) ; Set < String > userSetDB = new HashSet < String > ( ) ; for ( NFSShareACL dbAcl : dbACLList ) { userSetDB . add ( dbAcl . getUser ( ) ) ; } if ( addList != null && ! addList . isEmpty ( ) ) { verifyNfsACLsAddList ( addList , userSetDB ) ; } if ( modifyList != null && ! modifyList . isEmpty ( ) ) { verifyNfsACLsModifyOrDeleteList ( modifyList , userSetDB ) ; } if ( deleteList != null && ! deleteList . isEmpty ( ) ) { verifyNfsACLsModifyOrDeleteList ( deleteList , userSetDB ) ; } }
this function verify the nfsaclupdateparams data provided by user to set acl is valid or not it throw exception for invalid nfsaclupdateparams data
