public static InfoRegister updateFolder(User user,Integer bookId,Integer folderId,List changeFields,List inter,Map documents,String entidad) throws ValidationException, SecurityException, BookException, SessionException, TecDocException, ParseException, AttributesException {
  InfoRegister result=new InfoRegister();
  String sessionID=new String();
  try {
    sessionID=Login.login(user,entidad);
    BookSession.openBook(sessionID,bookId,entidad);
    Integer launchDistOutRegister=RegisterServicesUtil.getInvesConfActions(entidad);
    int folderIdInt=-1;
    if (folderId != null) {
      folderIdInt=folderId.intValue();
    }
    RegisterServicesUtil.canUpdateFolder(sessionID,bookId,folderIdInt,user,changeFields,documents,entidad);
    AxSf axsfQ=BookSession.getFormFormat(sessionID,bookId,entidad);
    FieldFormat fieldFormat=RegisterServicesUtil.getFieldFormat(sessionID,bookId);
    Map translatedIds=RegisterServicesUtil.getFieldsWithSustitute(changeFields,axsfQ,sessionID,bookId,entidad);
    AxSf newAxSF=RegisterServicesUtil.initInOrOutFolder(user,axsfQ);
    newAxSF=RegisterServicesUtil.completeFolder(translatedIds,axsfQ,newAxSF,user.getLocale(),changeFields,fieldFormat,false);
    omitirFicherosSubidosAnt(bookId,folderId,documents,entidad,sessionID);
    FolderDataSession data=Register.updateFolder(sessionID,bookId,newAxSF,folderId,inter,documents,launchDistOutRegister,user.getLocale(),entidad);
    result=ConsultRegister.consultRegisterInfo(bookId,data.getAxsfOld(),folderId.intValue(),data.getScrofic(),data.getUserName(),user.getLocale());
  }
  finally {
    BookSession.closeBook(sessionID,bookId);
    SecuritySession.logout(sessionID,entidad);
  }
  return result;
}

public static InfoRegister updateFolder ( User user , Integer bookId , Integer folderId , List changeFields , List inter , Map documents , String entidad ) throws ValidationException , SecurityException , BookException , SessionException , TecDocException , ParseException , AttributesException { InfoRegister result = new InfoRegister ( ) ; String sessionID = new String ( ) ; try { sessionID = Login . login ( user , entidad ) ; BookSession . openBook ( sessionID , bookId , entidad ) ; Integer launchDistOutRegister = RegisterServicesUtil . getInvesConfActions ( entidad ) ; int folderIdInt = - 1 ; if ( folderId != null ) { folderIdInt = folderId . intValue ( ) ; } RegisterServicesUtil . canUpdateFolder ( sessionID , bookId , folderIdInt , user , changeFields , documents , entidad ) ; AxSf axsfQ = BookSession . getFormFormat ( sessionID , bookId , entidad ) ; FieldFormat fieldFormat = RegisterServicesUtil . getFieldFormat ( sessionID , bookId ) ; Map translatedIds = RegisterServicesUtil . getFieldsWithSustitute ( changeFields , axsfQ , sessionID , bookId , entidad ) ; AxSf newAxSF = RegisterServicesUtil . initInOrOutFolder ( user , axsfQ ) ; newAxSF = RegisterServicesUtil . completeFolder ( translatedIds , axsfQ , newAxSF , user . getLocale ( ) , changeFields , fieldFormat , false ) ; omitirFicherosSubidosAnt ( bookId , folderId , documents , entidad , sessionID ) ; FolderDataSession data = Register . updateFolder ( sessionID , bookId , newAxSF , folderId , inter , documents , launchDistOutRegister , user . getLocale ( ) , entidad ) ; result = ConsultRegister . consultRegisterInfo ( bookId , data . getAxsfOld ( ) , folderId . intValue ( ) , data . getScrofic ( ) , data . getUserName ( ) , user . getLocale ( ) ) ; } finally { BookSession . closeBook ( sessionID , bookId ) ; SecuritySession . logout ( sessionID , entidad ) ; } return result ; }
metodo que actualiza un registro
