private void makeNfsAceFromDB(List<NfsACE> nfsAcls,List<NFSShareACL> dbNfsAclTemp){
  for (  NFSShareACL nfsShareACL : dbNfsAclTemp) {
    NfsACE nfsAce=new NfsACE();
    String permission=nfsShareACL.getPermissions();
    if (permission != null && !permission.isEmpty()) {
      nfsAce.setPermissions(permission);
    }
    String domain=nfsShareACL.getDomain();
    if (domain != null && !domain.isEmpty()) {
      nfsAce.setDomain(domain);
    }
    String permissionType=nfsShareACL.getPermissionType();
    nfsAce.setPermissionType(FileControllerConstants.NFS_FILE_PERMISSION_TYPE_ALLOW);
    if (permissionType != null && !permissionType.isEmpty()) {
      nfsAce.setPermissionType(permissionType);
    }
    String type=nfsShareACL.getType();
    if (type != null && !type.isEmpty()) {
      nfsAce.setType(type);
    }
    String user=nfsShareACL.getUser();
    if (user != null && !user.isEmpty()) {
      nfsAce.setUser(user);
    }
    nfsAcls.add(nfsAce);
  }
}

private void makeNfsAceFromDB ( List < NfsACE > nfsAcls , List < NFSShareACL > dbNfsAclTemp ) { for ( NFSShareACL nfsShareACL : dbNfsAclTemp ) { NfsACE nfsAce = new NfsACE ( ) ; String permission = nfsShareACL . getPermissions ( ) ; if ( permission != null && ! permission . isEmpty ( ) ) { nfsAce . setPermissions ( permission ) ; } String domain = nfsShareACL . getDomain ( ) ; if ( domain != null && ! domain . isEmpty ( ) ) { nfsAce . setDomain ( domain ) ; } String permissionType = nfsShareACL . getPermissionType ( ) ; nfsAce . setPermissionType ( FileControllerConstants . NFS_FILE_PERMISSION_TYPE_ALLOW ) ; if ( permissionType != null && ! permissionType . isEmpty ( ) ) { nfsAce . setPermissionType ( permissionType ) ; } String type = nfsShareACL . getType ( ) ; if ( type != null && ! type . isEmpty ( ) ) { nfsAce . setType ( type ) ; } String user = nfsShareACL . getUser ( ) ; if ( user != null && ! user . isEmpty ( ) ) { nfsAce . setUser ( user ) ; } nfsAcls . add ( nfsAce ) ; } }
convert list of nfsace to list of db object for acl
