From fe7c4212eda2e50a5b9168c1111c66f72748f3a5 Mon Sep 17 00:00:00 2001 From: Edwin Betancourt Date: Thu, 29 Aug 2024 11:59:14 -0400 Subject: [PATCH] fix: List tables `Import File Loader` form. (#872) * fix: List tables `Import File Loader` form. * add uuid on entitnes. * move classes. * change package. --- resources/adempiere-grpc-server.pb | Bin 899093 -> 899459 bytes .../spin/grpc/service/SendNotifications.java | 2 +- .../import_file_loader}/ImportFileLoader.java | 3 +- .../ImportFileLoaderConvertUtil.java | 104 ++++++++++++++---- .../ImportFileLoaderServiceLogic.java | 2 +- .../org/spin/server/AllInOneServices.java | 2 +- src/main/proto/import_file_loader.proto | 74 ++++++++----- 7 files changed, 131 insertions(+), 56 deletions(-) rename src/main/java/org/spin/grpc/service/{ => form/import_file_loader}/ImportFileLoader.java (98%) rename src/main/java/org/spin/{ => grpc/service}/form/import_file_loader/ImportFileLoaderConvertUtil.java (69%) rename src/main/java/org/spin/{ => grpc/service}/form/import_file_loader/ImportFileLoaderServiceLogic.java (99%) diff --git a/resources/adempiere-grpc-server.pb b/resources/adempiere-grpc-server.pb index 965ab993ec583abf42b158e7861c1a2cc2b12e37..20ecc6a4f917a6914ddc3baeddeca669326bb501 100644 GIT binary patch delta 6763 zcmYM2dyG`o9mnU)y?5r$otfR`g0k$g?682a2v`jzDUB_biXtG7Hk$s?>cVa#@{(Pu z^729;Qo%=T#Os3=A1GErG?9j=popZ1u+XS9seqss)1*n;#3rV%q@UkC=Ql$#A)h(t z`}>{8_x#S8-T9AcTfUyQX{*_q-|B7k4+OFQI#)cnI< zy7yEt+K%8)r-Dj4ZD*xL#?qXg`lJv~Y>!I4J!^XI$i`G)Or=Gkd?5phM?~Sknx6hO zcdT61T1;mQ2Cc;X$zaf7O6h%r!B`Wey9R^trkoxd491vB`WN}Hda!aj_;XnL_Yb0C z95m&=I(X-9@0gz+J{Js_8`Epg2P4dwbk6x;Qmq;VgGQ848@E6DdBY**(36lO1q2Y5qZkU>oO|QmC#eJpPdfbG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#Vv3+Y) z-_YB`|0wnFBi`zi(IMn?%IG|28r@OK$UG-U8G(^YwZiiz_xt4NH$mI{=jAm^ZYA;X z3(mtJ1cA18Km=cKZ3l?p3u0ywjB14!P42a%>07>-z32oZ5j^V5074LGPY6Wts9^xg z`GE)?b!Ldf#4im}<#hlZRbIzSgH(APFF9%)$@4g77@t;HYzwrnkRVdW45Lq@NF6gw zP=!bxGmKEVkw|*qal;6;K}M)RrzCIZ_@I)!o#Un@wnGSRN@k8)DYz#LgVah%^8?z; zd#~A(_@TXn( zcGqw1-q72(F-k|QJc!p#Xxm^}toepZ4#X}%n;ej}Z@A=u?D9sM9HuCXHP5)*Kv049 zfWXyhSlb5}?irU{S*&^1*%|~F=(wVM)+I+2>RGY%#B^KGo5}wF29x7AUB@ZQ4?q7+ zQ?xL}(NFby}@feD0r&JE0pT>Ja(D;|h!fcDaWP~SH#wxT%^&4DO3&^9L^QUk6z0g)PTZ4QXkfNOJAK^I+{1EB^uxIkMZAly$}n*&1q#JRO9C;rrV3}m6Z3vt}1uFVmZ zHutG(b5*J6CD-OaaDk31ZSIn5b3~zDa&4|EZSFJo(*Xn(=%~`>J~R5ufhg3^(q9fg zNh?pA``r1enzlKh{WbuE`?>q+0EGLw`{_`XHut6cbm(d*4j(OD4&-)~F8AeNveM. * ************************************************************************************/ -package org.spin.grpc.service; +package org.spin.grpc.service.form.import_file_loader; import org.adempiere.exceptions.AdempiereException; import org.compiere.util.CLogger; @@ -20,7 +20,6 @@ import org.spin.backend.grpc.common.ListLookupItemsResponse; import org.spin.backend.grpc.form.import_file_loader.GetImportFromatRequest; import org.spin.backend.grpc.form.import_file_loader.ImportFileLoaderGrpc.ImportFileLoaderImplBase; -import org.spin.form.import_file_loader.ImportFileLoaderServiceLogic; import org.spin.backend.grpc.form.import_file_loader.ImportFormat; import org.spin.backend.grpc.form.import_file_loader.ListCharsetsRequest; import org.spin.backend.grpc.form.import_file_loader.ListFilePreviewRequest; diff --git a/src/main/java/org/spin/form/import_file_loader/ImportFileLoaderConvertUtil.java b/src/main/java/org/spin/grpc/service/form/import_file_loader/ImportFileLoaderConvertUtil.java similarity index 69% rename from src/main/java/org/spin/form/import_file_loader/ImportFileLoaderConvertUtil.java rename to src/main/java/org/spin/grpc/service/form/import_file_loader/ImportFileLoaderConvertUtil.java index 6ec98eeb8..4236016bd 100644 --- a/src/main/java/org/spin/form/import_file_loader/ImportFileLoaderConvertUtil.java +++ b/src/main/java/org/spin/grpc/service/form/import_file_loader/ImportFileLoaderConvertUtil.java @@ -13,7 +13,7 @@ * along with this program. If not, see . * ************************************************************************************/ -package org.spin.form.import_file_loader; +package org.spin.grpc.service.form.import_file_loader; import org.adempiere.core.domains.models.I_AD_Column; import org.adempiere.core.domains.models.I_AD_Table; @@ -42,14 +42,21 @@ public static ImportTable.Builder convertImportTable(MTable table) { name = table.get_Translation(I_AD_Table.COLUMNNAME_Name); } - builder.setId(table.getAD_Table_ID()) + builder.setId( + table.getAD_Table_ID() + ) + .setUuid( + ValueManager.validateNull( + table.getUUID() + ) + ) .setName( ValueManager.validateNull(name) ) .setTableName(table.getTableName()) ; - table.getColumnsAsList().parallelStream().forEach(column -> { + table.getColumnsAsList().forEach(column -> { String nameOfColumn = column.getName(); if (!isBaseLanguage) { // set translated values @@ -57,14 +64,25 @@ public static ImportTable.Builder convertImportTable(MTable table) { } ImportColumn.Builder columnBuilder = ImportColumn.newBuilder() - .setId(column.getAD_Column_ID()) + .setId( + column.getAD_Column_ID() + ) + .setUuid( + ValueManager.validateNull( + column.getUUID() + ) + ) .setName( ValueManager.validateNull(nameOfColumn) ) .setColumnName( - ValueManager.validateNull(column.getColumnName()) + ValueManager.validateNull( + column.getColumnName() + ) + ) + .setDisplayType( + column.getAD_Reference_ID() ) - .setDisplayType(column.getAD_Reference_ID()) ; builder.addImportColumns(columnBuilder); @@ -80,21 +98,36 @@ public static ImportFormat.Builder convertImportFormat(MImpFormat importFormat) return builder; } - builder.setId(importFormat.getAD_ImpFormat_ID()) + builder.setId( + importFormat.getAD_ImpFormat_ID() + ) + .setUuid( + ValueManager.validateNull( + importFormat.getUUID() + ) + ) .setName( - ValueManager.validateNull(importFormat.getName()) + ValueManager.validateNull( + importFormat.getName() + ) ) .setDescription( - ValueManager.validateNull(importFormat.getDescription()) + ValueManager.validateNull( + importFormat.getDescription() + ) ) .setTableName( MTable.getTableName(Env.getCtx(), importFormat.getAD_Table_ID()) ) .setFormatType( - ValueManager.validateNull(importFormat.getFormatType()) + ValueManager.validateNull( + importFormat.getFormatType() + ) ) .setSeparatorCharacter( - ValueManager.validateNull(importFormat.getSeparatorChar()) + ValueManager.validateNull( + importFormat.getSeparatorChar() + ) ) ; @@ -114,31 +147,58 @@ public static FormatField.Builder convertFormatField(MImpFormatRow importFormatR return builder; } - builder.setId(importFormatRow.getAD_ImpFormat_Row_ID()) + builder.setId( + importFormatRow.getAD_ImpFormat_Row_ID() + ) + .setUuid( + ValueManager.validateNull( + importFormatRow.getUUID() + ) + ) .setName( - ValueManager.validateNull(importFormatRow.getName()) + ValueManager.validateNull( + importFormatRow.getName() + ) + ) + .setSequence( + importFormatRow.getSeqNo() ) - .setSequence(importFormatRow.getSeqNo()) .setColumnName( MColumn.getColumnName(Env.getCtx(), importFormatRow.getAD_Column_ID()) ) .setDataType( - ValueManager.validateNull(importFormatRow.getDataType()) + ValueManager.validateNull( + importFormatRow.getDataType() + ) + ) + .setStartNo( + importFormatRow.getStartNo() + ) + .setEndNo( + importFormatRow.getEndNo() ) - .setStartNo(importFormatRow.getStartNo()) - .setEndNo(importFormatRow.getEndNo()) .setDefaultValue( - ValueManager.validateNull(importFormatRow.getDefaultValue()) + ValueManager.validateNull( + importFormatRow.getDefaultValue() + ) ) .setDefimalPoint( - ValueManager.validateNull(importFormatRow.getDecimalPoint()) + ValueManager.validateNull( + importFormatRow.getDecimalPoint() + ) + ) + .setIsDivideBy100( + importFormatRow.isDivideBy100() ) - .setIsDivideBy100(importFormatRow.isDivideBy100()) .setDateFormat( - ValueManager.validateNull(importFormatRow.getDataFormat()) + ValueManager.validateNull( + importFormatRow.getDataFormat() + ) ) .setConstantValue( - ValueManager.validateNull(importFormatRow.getConstantValue()) + ValueManager.validateNull( + importFormatRow.getConstantValue() + ) ) ; diff --git a/src/main/java/org/spin/form/import_file_loader/ImportFileLoaderServiceLogic.java b/src/main/java/org/spin/grpc/service/form/import_file_loader/ImportFileLoaderServiceLogic.java similarity index 99% rename from src/main/java/org/spin/form/import_file_loader/ImportFileLoaderServiceLogic.java rename to src/main/java/org/spin/grpc/service/form/import_file_loader/ImportFileLoaderServiceLogic.java index 9ef62fcc2..25de7573e 100644 --- a/src/main/java/org/spin/form/import_file_loader/ImportFileLoaderServiceLogic.java +++ b/src/main/java/org/spin/grpc/service/form/import_file_loader/ImportFileLoaderServiceLogic.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * * along with this program. If not, see . * ************************************************************************************/ -package org.spin.form.import_file_loader; +package org.spin.grpc.service.form.import_file_loader; import java.io.InputStream; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/spin/server/AllInOneServices.java b/src/main/java/org/spin/server/AllInOneServices.java index 9554798e5..2323d8bd6 100644 --- a/src/main/java/org/spin/server/AllInOneServices.java +++ b/src/main/java/org/spin/server/AllInOneServices.java @@ -30,7 +30,6 @@ import org.spin.grpc.service.Enrollment; import org.spin.grpc.service.FileManagement; import org.spin.grpc.service.GeneralLedger; -import org.spin.grpc.service.ImportFileLoader; import org.spin.grpc.service.LogsInfo; import org.spin.grpc.service.MaterialManagement; import org.spin.grpc.service.NoticeManagement; @@ -63,6 +62,7 @@ import org.spin.grpc.service.form.ExpressShipment; import org.spin.grpc.service.form.PaymentAllocation; import org.spin.grpc.service.form.bank_statement_match.BankStatementMatch; +import org.spin.grpc.service.form.import_file_loader.ImportFileLoader; import org.spin.grpc.service.form.issue_management.IssueManagement; import org.spin.grpc.service.form.match_po_receipt_invoice.MatchPOReceiptInvoice; import org.spin.grpc.service.form.payroll_action_notice.PayrollActionNotice; diff --git a/src/main/proto/import_file_loader.proto b/src/main/proto/import_file_loader.proto index eb5d04d26..0d50ebea5 100644 --- a/src/main/proto/import_file_loader.proto +++ b/src/main/proto/import_file_loader.proto @@ -30,16 +30,24 @@ package import_file_loader; service ImportFileLoader { rpc ListCharsets(ListCharsetsRequest) returns (data.ListLookupItemsResponse) { - option (google.api.http) = { get: "/import-loader/charsets" }; + option (google.api.http) = { + get: "/import-loader/charsets" + }; } rpc ListImportTables(ListImportTablesRequest) returns (ListImportTablesResponse) { - option (google.api.http) = { get: "/import-loader/tables" }; + option (google.api.http) = { + get: "/import-loader/tables" + }; } rpc ListImportFormats(ListImportFormatsRequest) returns (data.ListLookupItemsResponse) { - option (google.api.http) = { get: "/import-loader/formats/{table_name}" }; + option (google.api.http) = { + get: "/import-loader/formats/{table_name}" + }; } rpc GetImportFromat(GetImportFromatRequest) returns (ImportFormat) { - option (google.api.http) = { get: "/import-loader/formats/get/{id}" }; + option (google.api.http) = { + get: "/import-loader/formats/get/{id}" + }; } // Manage File rpc SaveRecords(SaveRecordsRequest) returns (SaveRecordsResponse) { @@ -49,11 +57,15 @@ service ImportFileLoader { }; } rpc ListFilePreview(ListFilePreviewRequest) returns (data.ListEntitiesResponse) { - option (google.api.http) = { get: "/import-loader/imports/resource/preview/{import_format_id}" }; + option (google.api.http) = { + get: "/import-loader/imports/resource/preview/{import_format_id}" + }; } // Process rpc ListImportProcesses(ListImportProcessesRequest) returns (data.ListLookupItemsResponse) { - option (google.api.http) = { get: "/import-loader/processes/{table_name}" }; + option (google.api.http) = { + get: "/import-loader/processes/{table_name}" + }; } } @@ -84,16 +96,18 @@ message ListImportTablesRequest { message ImportColumn { int32 id = 1; - string name = 2; - string column_name = 3; - int32 display_type = 4; + string uuid = 2; + string name = 3; + string column_name = 4; + int32 display_type = 5; } message ImportTable { int32 id = 1; - string name = 2; - string table_name = 3; - repeated ImportColumn import_columns = 4; + string uuid = 2; + string name = 3; + string table_name = 4; + repeated ImportColumn import_columns = 5; } message ListImportTablesResponse { @@ -134,30 +148,32 @@ message ListClientImportFormatsRequest { message ImportFormat { int32 id = 1; - string name = 2; - string description = 3; - string table_name = 4; - string format_type = 5; - string separator_character = 6; - repeated FormatField format_fields = 7; + string uuid = 2; + string name = 3; + string description = 4; + string table_name = 5; + string format_type = 6; + string separator_character = 7; + repeated FormatField format_fields = 8; } message FormatField { int32 id = 1; - string name = 2; - int32 sequence = 3; - string column_name = 4; - string data_type = 5; - int32 start_no = 6; - int32 end_no = 7; - string default_value = 8; + string uuid = 2; + string name = 3; + int32 sequence = 4; + string column_name = 5; + string data_type = 6; + int32 start_no = 7; + int32 end_no = 8; + string default_value = 9; // number - string defimal_point = 9; - bool is_divide_by_100 = 10; + string defimal_point = 10; + bool is_divide_by_100 = 11; // date - string date_format = 11; + string date_format = 12; // constant - string constant_value = 12; + string constant_value = 13; } // Format Field