Merge remote-tracking branch 'origin/develop' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-09-23 17:08:59 +02:00
97 changed files with 9914 additions and 834 deletions

6
.idea/copilot.data.migration.edit.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EditMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

View File

@@ -363,6 +363,11 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.20</version> <!-- Versione scritta a mano perché qui non hanno usato lo 0 finale -->
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson.version}</version>
</dependency>

View File

@@ -0,0 +1,14 @@
package it.integry.annotations;
import it.integry.ems.migration._base.IntegryCustomer;
import org.springframework.stereotype.Indexed;
import java.lang.annotation.*;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
public @interface CustomerComponent {
IntegryCustomer value();
}

View File

@@ -0,0 +1,17 @@
package it.integry.annotations;
import it.integry.ems.migration._base.IntegryCustomer;
import org.springframework.core.annotation.AliasFor;
import java.lang.annotation.*;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@CustomerComponent(IntegryCustomer.Integry) // Valore di default, verrà sovrascritto
public @interface CustomerService {
@AliasFor(
annotation = CustomerComponent.class
)
IntegryCustomer value();
}

View File

@@ -0,0 +1,170 @@
package it.integry.ems.configuration;
import it.integry.annotations.CustomerComponent;
import it.integry.annotations.CustomerService;
import it.integry.ems.migration._base.IntegryCustomer;
import it.integry.ems.settings.Model.SettingsModel;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.core.type.filter.AnnotationTypeFilter;
/**
* Configurazione per registrare gli scope personalizzati per customer specifici
*/
@Configuration
public class CustomerServicesConfig implements ApplicationListener<ContextRefreshedEvent> {
private final Logger logger = LogManager.getLogger();
@Autowired
private SettingsModel settingsModel;
@Autowired
private ApplicationContext applicationContext;
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
// Assicuriamoci che sia il context principale e non un sub-context
if (event.getApplicationContext() == applicationContext) {
registerCustomerBeans();
}
}
private void registerCustomerBeans() {
ClassPathScanningCandidateComponentProvider scanner =
new ClassPathScanningCandidateComponentProvider(false);
// Aggiungo filtri per le annotazioni custom
scanner.addIncludeFilter(new AnnotationTypeFilter(CustomerService.class));
scanner.addIncludeFilter(new AnnotationTypeFilter(CustomerComponent.class));
BeanDefinitionRegistry registry = (BeanDefinitionRegistry) applicationContext.getAutowireCapableBeanFactory();
// Scansiono tutti i package del progetto
for (BeanDefinition bd : scanner.findCandidateComponents("it.integry")) {
try {
Class<?> clazz = Class.forName(bd.getBeanClassName());
String beanName = generateBeanName(clazz);
IntegryCustomer customer = extractCustomer(clazz);
// Ora SettingsModel è completamente inizializzato con @PostConstruct chiamato
if (!settingsModel.getDefaultProfile().equalsIgnoreCase(customer.toString())) {
continue;
}
// Evito duplicati controllando se il bean esiste già
if (!registry.containsBeanDefinition(beanName)) {
logger.trace("Registering custom bean for customer: " + customer + " - Class: " + clazz.getSimpleName());
// Creo la definizione del bean
BeanDefinitionBuilder builder = BeanDefinitionBuilder
.genericBeanDefinition(clazz);
// Registro il bean nel registry di Spring
registry.registerBeanDefinition(beanName, builder.getBeanDefinition());
// Determino lo scope del bean per decidere se istanziarlo immediatamente
String beanScope = determineBeanScope(clazz);
if (shouldInstantiateImmediately(beanScope)) {
// Forzo l'istanziazione immediata solo per bean con scope appropriati
try {
Object beanInstance = applicationContext.getBean(beanName);
logger.info("Bean customer {} istanziato con successo: {} (scope: {})",
customer, beanInstance.getClass().getSimpleName(), beanScope);
} catch (Exception e) {
logger.error("Errore durante l'istanziazione del bean {} (scope: {}): {}",
beanName, beanScope, e.getMessage());
}
} else {
logger.info("Bean customer {} registrato ma non istanziato (scope: {}). " +
"Verrà istanziato quando richiesto", customer, beanScope);
}
}
} catch (ClassNotFoundException e) {
logger.error("Impossibile caricare la classe: " + bd.getBeanClassName(), e);
}
}
}
/**
* Genera il nome del bean basato sul nome della classe
*/
private String generateBeanName(Class<?> clazz) {
String simpleName = clazz.getSimpleName();
return Character.toLowerCase(simpleName.charAt(0)) + simpleName.substring(1);
}
private IntegryCustomer extractCustomer(Class<?> clazz) {
if (clazz.isAnnotationPresent(CustomerService.class)) {
CustomerService cs = clazz.getAnnotation(CustomerService.class);
return cs.value();
} else if (clazz.isAnnotationPresent(CustomerComponent.class)) {
CustomerComponent cc = clazz.getAnnotation(CustomerComponent.class);
return cc.value();
}
return IntegryCustomer.Integry; // Valore di default
}
/**
* Determina lo scope del bean analizzando le annotazioni della classe
*/
private String determineBeanScope(Class<?> clazz) {
// Controllo per @Scope
if (clazz.isAnnotationPresent(org.springframework.context.annotation.Scope.class)) {
org.springframework.context.annotation.Scope scopeAnnotation =
clazz.getAnnotation(org.springframework.context.annotation.Scope.class);
return scopeAnnotation.value();
}
// Controllo per @RequestScope
if (clazz.isAnnotationPresent(org.springframework.web.context.annotation.RequestScope.class)) {
return "request";
}
// Controllo per @SessionScope
if (clazz.isAnnotationPresent(org.springframework.web.context.annotation.SessionScope.class)) {
return "session";
}
// Controllo per @ApplicationScope
if (clazz.isAnnotationPresent(org.springframework.web.context.annotation.ApplicationScope.class)) {
return "application";
}
// Default è singleton
return "singleton";
}
/**
* Determina se il bean può essere istanziato immediatamente in base al suo scope
*/
private boolean shouldInstantiateImmediately(String scope) {
switch (scope.toLowerCase()) {
case "request":
case "session":
// I bean con scope request/session non possono essere istanziati
// al di fuori del contesto web
return false;
case "prototype":
// I bean prototype non vengono istanziati automaticamente
return false;
case "singleton":
case "application":
default:
// Singleton e application possono essere istanziati immediatamente
return true;
}
}
}

View File

@@ -0,0 +1,21 @@
package it.integry.ems.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
@Configuration
@EnableScheduling // Equivale a <task:annotation-driven/>
public class SchedulerConfig {
@Bean
public ThreadPoolTaskScheduler taskScheduler() {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
scheduler.setPoolSize(5); // Equivale a pool-size="5"
scheduler.setThreadNamePrefix("taskScheduler-");
scheduler.initialize();
return scheduler;
}
}

View File

@@ -1171,18 +1171,6 @@ public class EmsController {
// }
@RequestMapping(value = EmsRestConstants.PATH_CLEAN_DIRECTORIES, method = RequestMethod.POST)
public @ResponseBody
ServiceRestResponse cleanDirectories(@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
try {
emsServices.cleanDirectories();
return ServiceRestResponse.createPositiveResponse();
} catch (Exception e) {
logger.error(e.getMessage(), e);
return new ServiceRestResponse(EsitoType.KO, multiDBTransactionManager.getPrimaryConnection().getProfileName(), e);
}
}
@RequestMapping(value = EmsRestConstants.PATH_EXPORT_SERVER_INFO_ISCC, method = RequestMethod.POST)
public @ResponseBody
ServiceRestResponse exportServerInfoISCC(@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {

View File

@@ -8,7 +8,6 @@ import it.integry.ems.utility.UtilityFile;
import it.integry.ems_model.entity.StbFilesAttached;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.io.File;
@@ -16,7 +15,6 @@ import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
@Service
public class DownloadFileHandlerService {
@@ -26,12 +24,6 @@ public class DownloadFileHandlerService {
private final HashMap<String, CachedFileDto> mFileMap = new HashMap<>();
@Scheduled(fixedDelay = 1, timeUnit = TimeUnit.HOURS, zone = "Europe/Rome")
public void clean() {
UtilityFile.cleanDirectory(getTempPath(), 1, "");
}
public DownloadFileDto generateDownloadItem(File file) throws IOException {
return generateDownloadItem(file.getName(), FileUtils.readFileToByteArray(file), false);
}

View File

@@ -0,0 +1,37 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20250909112137 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "ATTIVO", null, "Flag che abilita l'utilizzo delle API di UVE2K", "SI_NO");
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_JWT_ACCESS_TOKEN", null, "Access token utile per autenticarsi sulle API di UVE2K", null);
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_URL_BASE_PATH", null, "URL base delle API di UVE2K", null);
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_COMPANY_ID", null, "Company ID di UVE2K", null);
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_APP_CLIENT_ID", null, "App Client ID di UVE2K", null);
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_USERNAME", null, "Username di accesso a UVE2K", null);
createSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_PASSWORD", null, "Password di accesso a UVE2K", null);
if (isCustomerDb(IntegryCustomerDB.Lamonarca_Lamonarca)) {
updateSetupValue("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "ATTIVO", "S");
updateSetupValue("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_URL_BASE_PATH", "https://bluetech02.maxidata.net/uve2k.blue.srv1/");
updateSetupValue("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_COMPANY_ID", "MAXI.MAXI.LAMON.00001");
updateSetupValue("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_APP_CLIENT_ID", "uve2k.Blue");
updateSetupValue("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_USERNAME", "Integry.Lamonarca");
updateSetupValue("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_PASSWORD", "Bt02Mes#2025");
}
}
@Override
public void down() throws Exception {
}
}

View File

@@ -2,7 +2,6 @@ package it.integry.ems.rules.completing;
import com.annimon.stream.Stream;
import it.integry.common.var.CommonConstants;
import it.integry.ems._context.ApplicationContextProvider;
import it.integry.ems.rules.businessLogic.enums.TipoEmissione;
import it.integry.ems.rules.completing.dto.DatiPartitaMagDTO;
import it.integry.ems.sync.MultiDBTransaction.Connection;
@@ -11,7 +10,6 @@ import it.integry.ems_model.db.ResultSetMapper;
import it.integry.ems_model.entity.*;
import it.integry.ems_model.entity.common.DtbBaseDocT;
import it.integry.ems_model.entity.common.DtbDocOrdT;
import it.integry.ems_model.service.SetupGest;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.*;
import org.apache.commons.lang3.StringUtils;
@@ -19,9 +17,10 @@ import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
import java.sql.*;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.*;
import java.util.Date;
import java.util.stream.Collectors;
public class DocumentRules extends QueryRules {
@@ -534,9 +533,9 @@ public class DocumentRules extends QueryRules {
Query.format(
"SELECT data_scad from mtb_partita_mag where cod_mart = %s and partita_mag = %s",
entity.getCodMart(), entity.getPartitaMag());
Date dataScad = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
LocalDate dataScad = UtilityLocalDate.localDateFromDate(UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql));
OperationType operationType = OperationType.NO_OP;
if (dataScad == null || (entity.getDataScad() != null && !UtilityDate.equals(dataScad, entity.getDataScad())))
if (dataScad == null || (entity.getDataScad() != null && !Objects.equals(dataScad, entity.getDataScad())))
operationType = OperationType.INSERT_OR_UPDATE;
MtbPartitaMag mtbPartitaMag = new MtbPartitaMag();

View File

@@ -1,7 +1,6 @@
package it.integry.ems.rules.completing;
import com.annimon.stream.Stream;
import it.integry.common.var.CommonConstants;
import it.integry.ems.rules.completing.dto.DatiPartitaMagDTO;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import it.integry.ems_model.config.EmsRestConstants;
@@ -61,11 +60,11 @@ public class PackagesRules extends QueryRules {
return UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(connection, sql);
}
public static void completeDescPartitaMag(MtbPartitaMag partita, String descPartitaMag) throws Exception {
public static void completeDescPartitaMag(MtbPartitaMag partita, String descPartitaMag) {
partita.setDescrizione(descPartitaMag);
}
public static String completePartitaMag4DataScad(Connection conn, String codMart, Date dataScad) throws Exception {
public static String completePartitaMag4DataScad(Connection conn, String codMart, LocalDate dataScad) throws Exception {
String partitaMag = null;
boolean selectPartitaMag = setupGest.getSetupBoolean(conn, "MTB_PARTITA_MAG", "SETUP", "SELECT_PARTITA_MAG");
@@ -75,7 +74,7 @@ public class PackagesRules extends QueryRules {
"SELECT TOP 1 mtb_partita_mag.partita_mag " +
" FROM mtb_partita_mag " +
" WHERE mtb_partita_mag.cod_mart = " + UtilityDB.valueToString(codMart) + " AND " +
" mtb_partita_mag.data_scad = " + UtilityDB.valueDateToString(dataScad, CommonConstants.DATE_FORMAT_YMD);
" mtb_partita_mag.data_scad = " + UtilityDB.valueToString(dataScad);
partitaMag = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
@@ -123,7 +122,7 @@ public class PackagesRules extends QueryRules {
}
if (mtbColr.getDataScadPartita() != null) {
partita.setDataScad(mtbColr.getDataScadPartita());
partita.setDataScad(UtilityLocalDate.localDateFromDate(mtbColr.getDataScadPartita()));
if (existPartita) operation = OperationType.UPDATE;
}
@@ -136,7 +135,7 @@ public class PackagesRules extends QueryRules {
partita.setCodMart(codMart);
partita.setPartitaMag(partitaMag);
if (dataScad != null) {
partita.setDataScad(dataScad);
partita.setDataScad(UtilityLocalDate.localDateFromDate(dataScad));
}
partita.setOperation(OperationType.INSERT_OR_UPDATE);
return partita;

View File

@@ -648,7 +648,7 @@ public class PurchasesRules extends QueryRules {
return ret;
}
public static MtbPartitaMag completePartitaMag(String codMart, String partitaMag, Date dataScad) throws Exception {
public static MtbPartitaMag completePartitaMag(String codMart, String partitaMag, LocalDate dataScad) throws Exception {
MtbPartitaMag partita = new MtbPartitaMag();
partita.setCodMart(codMart);
partita.setPartitaMag(partitaMag);

View File

@@ -4,6 +4,7 @@ import it.integry.common.var.CommonConstants;
import it.integry.ems_model.utility.UtilityString;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.Date;
public class DatiPartitaMagDTO {
@@ -14,7 +15,7 @@ public class DatiPartitaMagDTO {
private Date dataOrd;
private Integer numOrd;
private String codJfas;
private Date dataScad;
private LocalDate dataScad;
private Integer numDoc;
private String posizione;
@@ -81,11 +82,11 @@ public class DatiPartitaMagDTO {
return this;
}
public Date getDataScad() {
public LocalDate getDataScad() {
return dataScad;
}
public DatiPartitaMagDTO setDataScad(Date dataScad) {
public DatiPartitaMagDTO setDataScad(LocalDate dataScad) {
this.dataScad = dataScad;
return this;
}
@@ -117,7 +118,7 @@ public class DatiPartitaMagDTO {
(this.getDataOrd() == null ? "" : new SimpleDateFormat(CommonConstants.DATE_FORMAT_YMD).format(this.getDataOrd())) + ";" +
(this.getNumOrd() == null ? "" : this.getNumOrd().toString()) + ";" +
UtilityString.streNull(this.getCodJfas()) + ";" +
(this.getDataScad() == null ? "" : new SimpleDateFormat(CommonConstants.DATE_FORMAT_YMD).format(this.getDataScad())) + ";" +
(this.getDataScad() == null ? "" : CommonConstants.DATE_YMD_DASHED_FORMATTER.format(this.getDataScad())) + ";" +
(this.getNumDoc() == null ? "" : this.getNumDoc().toString()) + ';' +
UtilityString.streNull(this.getPosizione());

View File

@@ -31,71 +31,67 @@ public class CleanDirectoryComponent {
private SetupGest setupGest;
@Scheduled(fixedDelay = 12, timeUnit = TimeUnit.HOURS, zone = "Europe/Rome")
private void cleanDirectory() {
try {
if (!UtilityDebug.isDebugExecution()) {
private void cleanDirectory() throws Exception {
if (!UtilityDebug.isDebugExecution()) {
List<AvailableConnectionsModel> databases = settingsModel.getAvailableConnectionsWithoutDuplicatedProfiles(true);
List<AvailableConnectionsModel> databases = settingsModel.getAvailableConnectionsWithoutDuplicatedProfiles(true);
for (AvailableConnectionsModel connectionModel : databases) {
for (AvailableConnectionsModel connectionModel : databases) {
try (MultiDBTransactionManager multiDBTransactionManager = new MultiDBTransactionManager(connectionModel, false)) {
try (MultiDBTransactionManager multiDBTransactionManager = new MultiDBTransactionManager(connectionModel, false)) {
//Mi leggo tutte le configurazioni che hanno i GG_CANC_FILE abilitati
String query = "SELECT gest_name, section " +
"FROM stb_gest_setup " +
"WHERE key_section = 'GG_CANC_FILE' AND value IS NOT NULL";
//Mi leggo tutte le configurazioni che hanno i GG_CANC_FILE abilitati
String query = "SELECT gest_name, section " +
"FROM stb_gest_setup " +
"WHERE key_section = 'GG_CANC_FILE' AND value IS NOT NULL";
List<HashMap<String, Object>> enabledConfigList = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), query);
List<HashMap<String, Object>> enabledConfigList = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), query);
if (!enabledConfigList.isEmpty()) {
if (!enabledConfigList.isEmpty()) {
for (HashMap<String, Object> enabledConfig : enabledConfigList) {
for (HashMap<String, Object> enabledConfig : enabledConfigList) {
String gestName = UtilityHashMap.getValueIfExists(enabledConfig, "gest_name");
String section = UtilityHashMap.getValueIfExists(enabledConfig, "section");
String gestName = UtilityHashMap.getValueIfExists(enabledConfig, "gest_name");
String section = UtilityHashMap.getValueIfExists(enabledConfig, "section");
HashMap<String, String> currentConfigs = setupGest.getSetupSection(multiDBTransactionManager.getPrimaryConnection(), gestName, section);
HashMap<String, String> currentConfigs = setupGest.getSetupSection(multiDBTransactionManager.getPrimaryConnection(), gestName, section);
String ggCancFileStr = UtilityHashMap.getValueIfExists(currentConfigs, "GG_CANC_FILE");
Integer ggCancFile = ggCancFileStr != null ? Integer.parseInt(ggCancFileStr) : null;
String path;
if (gestName.startsWith("IMPORT")) {
path = UtilityHashMap.getValueIfExists(currentConfigs, "PATH_FILE_IMPORTED");
} else {
path = UtilityHashMap.getValueIfExists(currentConfigs, "PATH_FILE");
}
if (path == null) {
//COMMENTATO DA MINA, LA DIRECTORY NON è OBBLIGATORIA, SE LO LASCIAMO RIEMPIAMO IL LOG DI INFO INUTILI
//logger.error("Impossibile cancellare i file per la procedura " + gestName + ". Non è presente la PATH nella configurazione");
continue;
}
if (ggCancFile == null || ggCancFile == 0)
ggCancFile = 30;
UtilityFile.cleanDirectory(path, ggCancFile, "");
String ggCancFileStr = UtilityHashMap.getValueIfExists(currentConfigs, "GG_CANC_FILE");
Integer ggCancFile = ggCancFileStr != null ? Integer.parseInt(ggCancFileStr) : null;
String path;
if (gestName.startsWith("IMPORT")) {
path = UtilityHashMap.getValueIfExists(currentConfigs, "PATH_FILE_IMPORTED");
} else {
path = UtilityHashMap.getValueIfExists(currentConfigs, "PATH_FILE");
}
if (path == null) {
//COMMENTATO DA MINA, LA DIRECTORY NON è OBBLIGATORIA, SE LO LASCIAMO RIEMPIAMO IL LOG DI INFO INUTILI
//logger.error("Impossibile cancellare i file per la procedura " + gestName + ". Non è presente la PATH nella configurazione");
continue;
}
if (ggCancFile == null || ggCancFile == 0)
ggCancFile = 30;
UtilityFile.cleanDirectory(path, ggCancFile, "");
}
}
}
}
UtilityFile.cleanDirectory(UtilityDirs.getTempQueriesDirectoryPath(), 7, "");
UtilityFile.cleanDirectory(UtilityDirs.getEmsApiTempDirectoryPath(), 15, "");
UtilityFile.cleanDirectory(UtilityDirs.getTempDirectoryPath(), 1, "");
//Cancello i log di Tomcat
String logsPath = String.format("%s%slogs", UtilityDirs.getCatalinaHome(), File.separator);
UtilityFile.cleanDirectory(logsPath, settingsModel.getLoggerConfiguration().getDeleteDays(), "");
} catch (Exception ex) {
logger.error(ex.getMessage(), ex);
}
UtilityFile.cleanDirectory(UtilityDirs.getTempQueriesDirectoryPath(), 7, "");
UtilityFile.cleanDirectory(UtilityDirs.getEmsApiTempDirectoryPath(), 15, "");
// UtilityFile.cleanDirectory(UtilityDirs.getTempDirectoryPath(), 1, "");
//Cancello i log di Tomcat
String logsPath = String.format("%s%slogs", UtilityDirs.getCatalinaHome(), File.separator);
UtilityFile.cleanDirectory(logsPath, settingsModel.getLoggerConfiguration().getDeleteDays(), "");
}
}

View File

@@ -41,7 +41,6 @@ import it.integry.ems.sync.MultiDBTransaction.BasicConnectionPool;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
import it.integry.ems.utility.UtilityDebug;
import it.integry.ems.utility.UtilityDirs;
import it.integry.ems.utility.UtilityEntity;
import it.integry.ems.utility.UtilityFile;
import it.integry.ems_model.annotation.Master;
@@ -810,58 +809,6 @@ public class EmsServices {
return downloadUrl;
}
public void cleanDirectories() throws Exception {
//Mi leggo tutte le configurazioni che hanno i GG_CANC_FILE abilitati
String query = "SELECT gest_name, section " +
"FROM stb_gest_setup " +
"WHERE key_section = 'GG_CANC_FILE' AND value IS NOT NULL";
List<HashMap<String, Object>> enabledConfigList = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), query);
if (!enabledConfigList.isEmpty()) {
for (HashMap<String, Object> enabledConfig : enabledConfigList) {
String gestName = UtilityHashMap.getValueIfExists(enabledConfig, "gest_name");
String section = UtilityHashMap.getValueIfExists(enabledConfig, "section");
HashMap<String, String> currentConfigs = setupGest.getSetupSection(multiDBTransactionManager.getPrimaryConnection(), gestName, section);
String ggCancFileStr = UtilityHashMap.getValueIfExists(currentConfigs, "GG_CANC_FILE");
Integer ggCancFile = ggCancFileStr != null ? Integer.parseInt(ggCancFileStr) : null;
String path = null;
if (gestName.startsWith("IMPORT")) {
path = UtilityHashMap.getValueIfExists(currentConfigs, "PATH_FILE_IMPORTED");
} else {
path = UtilityHashMap.getValueIfExists(currentConfigs, "PATH_FILE");
}
if (path == null) {
//COMMENTATO DA MINA, LA DIRECTORY NON è OBBLIGATORIA, SE LO LASCIAMO RIEMPIAMO IL LOG DI INFO INUTILI
//logger.error("Impossibile cancellare i file per la procedura " + gestName + ". Non è presente la PATH nella configurazione");
continue;
}
if (ggCancFile == null || ggCancFile == 0)
ggCancFile = 30;
UtilityFile.cleanDirectory(path, ggCancFile, "");
}
}
UtilityFile.cleanDirectory(UtilityDirs.getTempQueriesDirectoryPath(), 7, "");
UtilityFile.cleanDirectory(UtilityDirs.getEmsApiTempDirectoryPath(), 15, "");
//commentato perché va a leggere i file dalle sottodirectory
//UtilityFile.cleanDirectory(UtilityDirs.getTempDirectoryPath(), 1, "");
//Cancello i log di Tomcat
String logsPath = String.format("%s%slogs", UtilityDirs.getCatalinaHome(), File.separator);
UtilityFile.cleanDirectory(logsPath, settingsModel.getLoggerConfiguration().getDeleteDays(), "");
}
public void checkServerVariables() throws Exception {
if (UtilityDebug.isDebugExecution() || UtilityDebug.isIntegryServer())

View File

@@ -5,6 +5,7 @@ import it.integry.ems._context.ApplicationContextProvider;
import it.integry.ems.exception.DistributoreDatabaseNotPresentException;
import it.integry.ems.exception.PrimaryDatabaseNotPresentException;
import it.integry.ems.javabeans.RequestDataDTO;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.ems.properties.EmsProperties;
import it.integry.ems.settings.Model.AvailableConnectionsModel;
import it.integry.ems.settings.Model.SettingsModel;
@@ -61,12 +62,26 @@ public class MultiDBTransactionManager implements AutoCloseable {
emsDBConst = ApplicationContextProvider.getApplicationContext().getBean(EmsDBConst.class);
}
public MultiDBTransactionManager(IntegryCustomerDB customerDB) throws Exception {
this(customerDB, true);
}
public MultiDBTransactionManager(IntegryCustomerDB customerDB, boolean enableLog) throws Exception {
this();
this.enableLog = enableLog;
String profileDb = settingsModel.getProfileDbFromDbName(customerDB.getValue());
this.setPrimaryDB(profileDb);
}
public MultiDBTransactionManager(AvailableConnectionsModel connectionsModel) throws Exception {
this(connectionsModel.getProfileName(), true);
this(connectionsModel, true);
}
public MultiDBTransactionManager(AvailableConnectionsModel connectionsModel, boolean enableLog) throws Exception {
this(connectionsModel.getProfileName(), enableLog);
this();
this.enableLog = enableLog;
this.setPrimaryDB(connectionsModel);
}
public MultiDBTransactionManager(String profileDb) throws Exception {

View File

@@ -31,19 +31,18 @@ public class UtilityDirs {
public static String getEmsApiTempDirectoryPath() {
EmsProperties emsProperties = ApplicationContextProvider.getApplicationContext().getBean(EmsProperties.class);
return TMP_DIR + File.separator + emsProperties.getRootApi();
return Paths.get(TMP_DIR, emsProperties.getRootApi()).toString();
}
public static String getTempDirectoryPath() {
return TMP_DIR;
}
public static String getTempQueriesDirectoryPath() {
return getEmsApiTempDirectoryPath() + File.separator + "queries" + File.separator;
return Paths.get(getEmsApiTempDirectoryPath(), "queries").toString();
}
public static File getDirectory(DIRECTORY dir) {
File fileToReturn = new File(getEmsApiTempDirectoryPath() + File.separator + relativePathBindingTable.get(dir));
File fileToReturn = Paths.get(getEmsApiTempDirectoryPath(), relativePathBindingTable.get(dir)).toFile();
if (!fileToReturn.exists()) {
fileToReturn.mkdirs();
@@ -54,9 +53,7 @@ public class UtilityDirs {
}
public static File getDirectoryExport(String nomeDB, String type, String format) {
String dir = "EXPORT" + File.separator + nomeDB + File.separator + type + File.separator + format;
File fileToReturn = new File(getEmsApiTempDirectoryPath() + File.separator + dir);
File fileToReturn = Paths.get(getEmsApiTempDirectoryPath(), "EXPORT", nomeDB, type, format).toFile();
if (!fileToReturn.exists()) {
fileToReturn.mkdirs();

View File

@@ -5,7 +5,10 @@ import com.itextpdf.text.PageSize;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.tool.xml.XMLWorkerHelper;
import it.integry.ems._context.ApplicationContextProvider;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
import it.integry.ems.task.TaskExecutorService;
import it.integry.ems.utility.enums.DigitalSignatureType;
import it.integry.ems_model.utility.UtilityDB;
import it.integry.ems_model.utility.UtilityString;
@@ -31,10 +34,9 @@ import java.io.*;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.security.Security;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import java.util.*;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.ZipEntry;
@@ -91,7 +93,7 @@ public class UtilityFile {
}
public static void cleanDirectory(@NotNull final String pathFile, int days, String regex) {
public static void cleanDirectory(@NotNull final String pathFile, int days, String regex) throws ExecutionException, InterruptedException, TimeoutException {
GregorianCalendar calendar = new GregorianCalendar();
calendar.add(Calendar.DAY_OF_YEAR, -1 * days);
@@ -99,24 +101,21 @@ public class UtilityFile {
}
public static void cleanDirectory(@NotNull final String pathFile, @NotNull final Date fromDate, final String regex) {
new Thread(() -> {
public static void cleanDirectory(@NotNull final String pathFile, @NotNull final Date fromDate, final String regex) throws ExecutionException, InterruptedException, TimeoutException {
final TaskExecutorService taskExecutorService = ApplicationContextProvider.getApplicationContext().getBean(TaskExecutorService.class);
taskExecutorService.executeTask(() -> {
File directory = new File(pathFile);
if (!directory.exists()) return;
final long purgeTime = fromDate.getTime();
//final long purgeTime = new Date().getTime();
final Pattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
try {
Files.walkFileTree(Paths.get(pathFile), new FileVisitor<Path>() {
@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
return FileVisitResult.CONTINUE;
}
// Prima passata: elimina i file secondo il criterio
Files.walkFileTree(Paths.get(pathFile), new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
File f = file.toFile();
@@ -128,14 +127,19 @@ public class UtilityFile {
return FileVisitResult.CONTINUE;
}
});
@Override
public FileVisitResult visitFileFailed(Path file, IOException exc) {
return FileVisitResult.CONTINUE;
}
// Seconda passata: elimina tutte le directory vuote partendo dal basso
Files.walkFileTree(Paths.get(pathFile), new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult postVisitDirectory(Path dir, IOException exc) {
try {
if (!Files.list(dir).findAny().isPresent()) {
Files.delete(dir);
}
} catch (IOException e) {
logger.error("Errore durante la cancellazione della directory vuota: " + dir, e);
}
return FileVisitResult.CONTINUE;
}
});
@@ -144,8 +148,8 @@ public class UtilityFile {
logger.error(e.getMessage());
}
}, true);
}).start();
}
public static boolean directoryExists(String directory) {
@@ -381,7 +385,8 @@ public class UtilityFile {
* @throws Exception
*/
public static ByteArrayOutputStream htmlToPdf(ByteArrayOutputStream htmlOutputStream, PdfPTable pdfTable) throws Exception {
public static ByteArrayOutputStream htmlToPdf(ByteArrayOutputStream htmlOutputStream, PdfPTable pdfTable) throws
Exception {
ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream();
Document document = new Document(PageSize.A4);
@@ -419,7 +424,8 @@ public class UtilityFile {
return cleanName.toString();
}
public static void moveFile(@NotNull String path, @NotNull String newPath, @NotNull String fileName, String newFileName) throws Exception {
public static void moveFile(@NotNull String path, @NotNull String newPath, @NotNull String fileName, String
newFileName) throws Exception {
if (!path.endsWith("\\") || !path.endsWith("/"))
path = path + File.separator;
@@ -436,11 +442,12 @@ public class UtilityFile {
}
}
public static File createZipFromMultipartFile(String pathFile, String fileName, MultipartFile... files) throws IOException {
public static File createZipFromMultipartFile(String pathFile, String fileName, MultipartFile... files) throws
IOException {
// Nome del file ZIP da creare
if (!UtilityFile.directoryExists(pathFile))
UtilityFile.directoryCreate(pathFile);
String zipFileName = UtilityString.isNullOrEmpty(fileName)?"output.zip":fileName;
String zipFileName = UtilityString.isNullOrEmpty(fileName) ? "output.zip" : fileName;
File zipFile = new File(pathFile + zipFileName);
for (MultipartFile file : files) {

View File

@@ -749,7 +749,6 @@ public class GeneraOrdLav {
private static void assegnaPartitaMag(Connection conn, DtbOrdr dtbOrdr, OrdProdSetupDTO ordProdSetupDTO) throws Exception {
String gestione = "L", parameter, sql = "";
Date dataScad = null;
DateFormat formato = new SimpleDateFormat("yyyy/MM/dd");
String codJfas = dtbOrdr.getCodJfas();
@@ -818,7 +817,7 @@ public class GeneraOrdLav {
/*Data ordine e numero ordine di lavorazione non vengono passati perchè in questa fase non esistono*/;
sql = " select convert(datetime, dbo.f_suggestCodeDataScadPartitaMag(" + UtilityDB.valueToString(parameter) + ", 0)) ";
dataScad = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
LocalDate dataScad = UtilityLocalDate.localDateFromDate(UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql));
if (dataScad != null) {
dtbOrdr.setMtbPartitaMag(new MtbPartitaMag());

View File

@@ -328,7 +328,6 @@ public class ProductionBusinessLogic {
private static void assegnaPartitaMag(Connection conn, DtbOrdr dtbOrdr, String classNameOrdProd, HashMap<String, String> setupLottoProd) throws Exception {
String gestione = "L", parameter, sql = "";
Date dataScad = null;
DateFormat formato = new SimpleDateFormat("yyyy/MM/dd");
PreparedStatement ps = null;
ResultSet rs = null;
@@ -401,7 +400,7 @@ public class ProductionBusinessLogic {
/*Data ordine e numero ordine di lavorazione non vengono passati perchè in questa fase non esistono*/;
sql = " select convert(datetime, dbo.f_suggestCodeDataScadPartitaMag(" + UtilityDB.valueToString(parameter) + ", 0)) ";
dataScad = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
LocalDate dataScad = UtilityLocalDate.localDateFromDate(UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql));
if (dataScad != null) {
dtbOrdr.setMtbPartitaMag(new MtbPartitaMag());

View File

@@ -16,6 +16,7 @@ import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import java.util.Objects;
@@ -305,7 +306,7 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
private BigDecimal percAliq;
@JsonProperty("data_scad")
private Date dataScad;
private LocalDate dataScad;
@ImportFromParent
private String reso;
@@ -1148,11 +1149,11 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
return this;
}
public Date getDataScad() {
public LocalDate getDataScad() {
return dataScad;
}
public DtbDocr setDataScad(Date dataScad) {
public DtbDocr setDataScad(LocalDate dataScad) {
this.dataScad = dataScad;
return this;
}

View File

@@ -44,31 +44,35 @@ public class JrlCiclDisegni extends EntityBase {
return codDisegno;
}
public void setCodDisegno(String codDisegno) {
public JrlCiclDisegni setCodDisegno(String codDisegno) {
this.codDisegno = codDisegno;
return this;
}
public String getCodProd() {
return codProd;
}
public void setCodProd(String codProd) {
public JrlCiclDisegni setCodProd(String codProd) {
this.codProd = codProd;
return this;
}
public BigDecimal getQta() {
return qta;
}
public void setQta(BigDecimal qta) {
public JrlCiclDisegni setQta(BigDecimal qta) {
this.qta = qta;
return this;
}
public BigDecimal getRigaOrd() {
return rigaOrd;
}
public void setRigaOrd(BigDecimal rigaOrd) {
public JrlCiclDisegni setRigaOrd(BigDecimal rigaOrd) {
this.rigaOrd = rigaOrd;
return this;
}
}

View File

@@ -167,364 +167,400 @@ public class JtbCicl extends EntityBase implements EquatableEntityInterface<JtbC
super(logger);
}
public String getCodProd() {
return codProd;
public List<JtbCiclCq> getJtbCiclCq() {
return jtbCiclCq;
}
public void setCodProd(String codProd) {
this.codProd = codProd;
}
public String getCodJfas() {
return codJfas;
}
public void setCodJfas(String codJfas) {
this.codJfas = codJfas;
}
public BigDecimal getQtaProd() {
return qtaProd;
}
public void setQtaProd(BigDecimal qtaProd) {
this.qtaProd = qtaProd;
}
public Integer getgIniz() {
return gIniz;
}
public void setgIniz(Integer gIniz) {
this.gIniz = gIniz;
}
public Integer getGgTot() {
return ggTot;
}
public void setGgTot(Integer ggTot) {
this.ggTot = ggTot;
}
public String getDescrizione() {
return descrizione;
}
public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
}
public Date getDataUltVar() {
return dataUltVar;
}
public void setDataUltVar(Date dataUltVar) {
this.dataUltVar = dataUltVar;
}
public String getDescrizioneProd() {
return descrizioneProd;
}
public void setDescrizioneProd(String descrizioneProd) {
this.descrizioneProd = descrizioneProd;
}
public String getUntMisProd() {
return untMisProd;
}
public void setUntMisProd(String untMisProd) {
this.untMisProd = untMisProd;
}
public String getCaratteristica1() {
return caratteristica1;
}
public void setCaratteristica1(String caratteristica1) {
this.caratteristica1 = caratteristica1;
}
public String getDescrizioneCar1() {
return descrizioneCar1;
}
public void setDescrizioneCar1(String descrizioneCar1) {
this.descrizioneCar1 = descrizioneCar1;
}
public String getCaratteristica2() {
return caratteristica2;
}
public void setCaratteristica2(String caratteristica2) {
this.caratteristica2 = caratteristica2;
}
public String getDescrizioneCar2() {
return descrizioneCar2;
}
public void setDescrizioneCar2(String descrizioneCar2) {
this.descrizioneCar2 = descrizioneCar2;
}
public BigDecimal getPesoSpec() {
return pesoSpec;
}
public void setPesoSpec(BigDecimal pesoSpec) {
this.pesoSpec = pesoSpec;
}
public String getDescrizioneEstesa() {
return descrizioneEstesa;
}
public void setDescrizioneEstesa(String descrizioneEstesa) {
this.descrizioneEstesa = descrizioneEstesa;
}
public BigDecimal getPercCostGen() {
return percCostGen;
}
public void setPercCostGen(BigDecimal percCostGen) {
this.percCostGen = percCostGen;
}
public BigDecimal getPercRicLb() {
return percRicLb;
}
public void setPercRicLb(BigDecimal percRicLb) {
this.percRicLb = percRicLb;
}
public String getCodMart() {
return codMart;
}
public void setCodMart(String codMart) {
this.codMart = codMart;
}
public String getFlagAttiva() {
return flagAttiva;
}
public void setFlagAttiva(String flagAttiva) {
this.flagAttiva = flagAttiva;
}
public String getImgFile() {
return imgFile;
}
public void setImgFile(String imgFile) {
this.imgFile = imgFile;
}
public BigDecimal getRapConvProd() {
return rapConvProd;
}
public void setRapConvProd(BigDecimal rapConvProd) {
this.rapConvProd = rapConvProd;
}
public String getCodDiviCont() {
return codDiviCont;
}
public void setCodDiviCont(String codDiviCont) {
this.codDiviCont = codDiviCont;
}
public BigDecimal getCambioDiviCont() {
return cambioDiviCont;
}
public void setCambioDiviCont(BigDecimal cambioDiviCont) {
this.cambioDiviCont = cambioDiviCont;
}
public BigDecimal getLunghezza() {
return lunghezza;
}
public void setLunghezza(BigDecimal lunghezza) {
this.lunghezza = lunghezza;
}
public BigDecimal getLarghezza() {
return larghezza;
}
public void setLarghezza(BigDecimal larghezza) {
this.larghezza = larghezza;
}
public BigDecimal getAltezza() {
return altezza;
}
public void setAltezza(BigDecimal altezza) {
this.altezza = altezza;
}
public BigDecimal getLottoMinOrd() {
return lottoMinOrd;
}
public void setLottoMinOrd(BigDecimal lottoMinOrd) {
this.lottoMinOrd = lottoMinOrd;
}
public String getFlagQtaMultipla() {
return flagQtaMultipla;
}
public void setFlagQtaMultipla(String flagQtaMultipla) {
this.flagQtaMultipla = flagQtaMultipla;
}
public BigDecimal getQtaAllocazione() {
return qtaAllocazione;
}
public void setQtaAllocazione(BigDecimal qtaAllocazione) {
this.qtaAllocazione = qtaAllocazione;
}
public String getActivityTypeId() {
return activityTypeId;
}
public void setActivityTypeId(String activityTypeId) {
this.activityTypeId = activityTypeId;
}
public String getFlagTipologia() {
return flagTipologia;
}
public void setFlagTipologia(String flagTipologia) {
this.flagTipologia = flagTipologia;
}
public String getFlagTipoProd() {
return flagTipoProd;
}
public void setFlagTipoProd(String flagTipoProd) {
this.flagTipoProd = flagTipoProd;
}
public String getSupplyDefault() {
return supplyDefault;
}
public void setSupplyDefault(String supplyDefault) {
this.supplyDefault = supplyDefault;
}
public String getFlagScomposizione() {
return flagScomposizione;
}
public void setFlagScomposizione(String flagScomposizione) {
this.flagScomposizione = flagScomposizione;
}
public String getCodCq() {
return codCq;
}
public void setCodCq(String codCq) {
this.codCq = codCq;
}
public Date getDataIns() {
return dataIns;
}
public void setDataIns(Date dataIns) {
this.dataIns = dataIns;
}
public BigDecimal getPrezzoBase() {
return prezzoBase;
}
public void setPrezzoBase(BigDecimal prezzoBase) {
this.prezzoBase = prezzoBase;
}
public BigDecimal getCostoProduzione() {
return costoProduzione;
}
public void setCostoProduzione(BigDecimal costoProduzione) {
this.costoProduzione = costoProduzione;
}
public BigDecimal getCostoComplessivo() {
return costoComplessivo;
}
public void setCostoComplessivo(BigDecimal costoComplessivo) {
this.costoComplessivo = costoComplessivo;
}
public List<JtbDistMate> getJtbDistMate() {
return jtbDistMate;
}
public void setJtbDistMate(List<JtbDistMate> jtbDistMate) {
this.jtbDistMate = jtbDistMate;
}
public List<JtbDistClavDir> getJtbDistClavDir() {
return jtbDistClavDir;
}
public void setJtbDistClavDir(List<JtbDistClavDir> jtbDistClavDir) {
this.jtbDistClavDir = jtbDistClavDir;
}
//
// public List<JtbDistClavDirDett> getJtbDistClavDirDett() {
// return jtbDistClavDirDett;
// }
//
// public void setJtbDistClavDirDett(List<JtbDistClavDirDett> jtbDistClavDirDett) {
// this.jtbDistClavDirDett = jtbDistClavDirDett;
// }
public List<JtbDistClavInd> getJtbDistClavInd() {
return jtbDistClavInd;
}
public void setJtbDistClavInd(List<JtbDistClavInd> jtbDistClavInd) {
this.jtbDistClavInd = jtbDistClavInd;
public JtbCicl setJtbCiclCq(List<JtbCiclCq> jtbCiclCq) {
this.jtbCiclCq = jtbCiclCq;
return this;
}
public List<JrlCiclDisegni> getJrlCiclDisegni() {
return jrlCiclDisegni;
}
public void setJrlCiclDisegni(List<JrlCiclDisegni> jrlCiclDisegni) {
public JtbCicl setJrlCiclDisegni(List<JrlCiclDisegni> jrlCiclDisegni) {
this.jrlCiclDisegni = jrlCiclDisegni;
return this;
}
public List<JtbCiclCq> getJtbCiclCq() {
return jtbCiclCq;
public List<JtbDistClavInd> getJtbDistClavInd() {
return jtbDistClavInd;
}
public void setJtbCiclCq(List<JtbCiclCq> jtbCiclCq) {
this.jtbCiclCq = jtbCiclCq;
public JtbCicl setJtbDistClavInd(List<JtbDistClavInd> jtbDistClavInd) {
this.jtbDistClavInd = jtbDistClavInd;
return this;
}
public List<JtbDistClavDir> getJtbDistClavDir() {
return jtbDistClavDir;
}
public JtbCicl setJtbDistClavDir(List<JtbDistClavDir> jtbDistClavDir) {
this.jtbDistClavDir = jtbDistClavDir;
return this;
}
public List<JtbDistMate> getJtbDistMate() {
return jtbDistMate;
}
public JtbCicl setJtbDistMate(List<JtbDistMate> jtbDistMate) {
this.jtbDistMate = jtbDistMate;
return this;
}
public BigDecimal getCostoComplessivo() {
return costoComplessivo;
}
public JtbCicl setCostoComplessivo(BigDecimal costoComplessivo) {
this.costoComplessivo = costoComplessivo;
return this;
}
public BigDecimal getCostoProduzione() {
return costoProduzione;
}
public JtbCicl setCostoProduzione(BigDecimal costoProduzione) {
this.costoProduzione = costoProduzione;
return this;
}
public BigDecimal getPrezzoBase() {
return prezzoBase;
}
public JtbCicl setPrezzoBase(BigDecimal prezzoBase) {
this.prezzoBase = prezzoBase;
return this;
}
public Date getDataIns() {
return dataIns;
}
public JtbCicl setDataIns(Date dataIns) {
this.dataIns = dataIns;
return this;
}
public String getCodCq() {
return codCq;
}
public JtbCicl setCodCq(String codCq) {
this.codCq = codCq;
return this;
}
public String getFlagScomposizione() {
return flagScomposizione;
}
public JtbCicl setFlagScomposizione(String flagScomposizione) {
this.flagScomposizione = flagScomposizione;
return this;
}
public String getSupplyDefault() {
return supplyDefault;
}
public JtbCicl setSupplyDefault(String supplyDefault) {
this.supplyDefault = supplyDefault;
return this;
}
public String getFlagTipoProd() {
return flagTipoProd;
}
public JtbCicl setFlagTipoProd(String flagTipoProd) {
this.flagTipoProd = flagTipoProd;
return this;
}
public String getFlagTipologia() {
return flagTipologia;
}
public JtbCicl setFlagTipologia(String flagTipologia) {
this.flagTipologia = flagTipologia;
return this;
}
public String getActivityTypeId() {
return activityTypeId;
}
public JtbCicl setActivityTypeId(String activityTypeId) {
this.activityTypeId = activityTypeId;
return this;
}
public BigDecimal getQtaAllocazione() {
return qtaAllocazione;
}
public JtbCicl setQtaAllocazione(BigDecimal qtaAllocazione) {
this.qtaAllocazione = qtaAllocazione;
return this;
}
public String getFlagQtaMultipla() {
return flagQtaMultipla;
}
public JtbCicl setFlagQtaMultipla(String flagQtaMultipla) {
this.flagQtaMultipla = flagQtaMultipla;
return this;
}
public BigDecimal getLottoMinOrd() {
return lottoMinOrd;
}
public JtbCicl setLottoMinOrd(BigDecimal lottoMinOrd) {
this.lottoMinOrd = lottoMinOrd;
return this;
}
public BigDecimal getAltezza() {
return altezza;
}
public JtbCicl setAltezza(BigDecimal altezza) {
this.altezza = altezza;
return this;
}
public BigDecimal getLarghezza() {
return larghezza;
}
public JtbCicl setLarghezza(BigDecimal larghezza) {
this.larghezza = larghezza;
return this;
}
public BigDecimal getLunghezza() {
return lunghezza;
}
public JtbCicl setLunghezza(BigDecimal lunghezza) {
this.lunghezza = lunghezza;
return this;
}
public BigDecimal getCambioDiviCont() {
return cambioDiviCont;
}
public JtbCicl setCambioDiviCont(BigDecimal cambioDiviCont) {
this.cambioDiviCont = cambioDiviCont;
return this;
}
public String getCodDiviCont() {
return codDiviCont;
}
public JtbCicl setCodDiviCont(String codDiviCont) {
this.codDiviCont = codDiviCont;
return this;
}
public BigDecimal getRapConvProd() {
return rapConvProd;
}
public JtbCicl setRapConvProd(BigDecimal rapConvProd) {
this.rapConvProd = rapConvProd;
return this;
}
public String getImgFile() {
return imgFile;
}
public JtbCicl setImgFile(String imgFile) {
this.imgFile = imgFile;
return this;
}
public String getFlagAttiva() {
return flagAttiva;
}
public JtbCicl setFlagAttiva(String flagAttiva) {
this.flagAttiva = flagAttiva;
return this;
}
public String getCodMart() {
return codMart;
}
public JtbCicl setCodMart(String codMart) {
this.codMart = codMart;
return this;
}
public BigDecimal getPercRicLb() {
return percRicLb;
}
public JtbCicl setPercRicLb(BigDecimal percRicLb) {
this.percRicLb = percRicLb;
return this;
}
public BigDecimal getPercCostGen() {
return percCostGen;
}
public JtbCicl setPercCostGen(BigDecimal percCostGen) {
this.percCostGen = percCostGen;
return this;
}
public String getDescrizioneEstesa() {
return descrizioneEstesa;
}
public JtbCicl setDescrizioneEstesa(String descrizioneEstesa) {
this.descrizioneEstesa = descrizioneEstesa;
return this;
}
public BigDecimal getPesoSpec() {
return pesoSpec;
}
public JtbCicl setPesoSpec(BigDecimal pesoSpec) {
this.pesoSpec = pesoSpec;
return this;
}
public String getDescrizioneCar2() {
return descrizioneCar2;
}
public JtbCicl setDescrizioneCar2(String descrizioneCar2) {
this.descrizioneCar2 = descrizioneCar2;
return this;
}
public String getCaratteristica2() {
return caratteristica2;
}
public JtbCicl setCaratteristica2(String caratteristica2) {
this.caratteristica2 = caratteristica2;
return this;
}
public String getDescrizioneCar1() {
return descrizioneCar1;
}
public JtbCicl setDescrizioneCar1(String descrizioneCar1) {
this.descrizioneCar1 = descrizioneCar1;
return this;
}
public String getCaratteristica1() {
return caratteristica1;
}
public JtbCicl setCaratteristica1(String caratteristica1) {
this.caratteristica1 = caratteristica1;
return this;
}
public String getUntMisProd() {
return untMisProd;
}
public JtbCicl setUntMisProd(String untMisProd) {
this.untMisProd = untMisProd;
return this;
}
public String getDescrizioneProd() {
return descrizioneProd;
}
public JtbCicl setDescrizioneProd(String descrizioneProd) {
this.descrizioneProd = descrizioneProd;
return this;
}
public Date getDataUltVar() {
return dataUltVar;
}
public JtbCicl setDataUltVar(Date dataUltVar) {
this.dataUltVar = dataUltVar;
return this;
}
public String getDescrizione() {
return descrizione;
}
public JtbCicl setDescrizione(String descrizione) {
this.descrizione = descrizione;
return this;
}
public Integer getGgTot() {
return ggTot;
}
public JtbCicl setGgTot(Integer ggTot) {
this.ggTot = ggTot;
return this;
}
public Integer getgIniz() {
return gIniz;
}
public JtbCicl setgIniz(Integer gIniz) {
this.gIniz = gIniz;
return this;
}
public BigDecimal getQtaProd() {
return qtaProd;
}
public JtbCicl setQtaProd(BigDecimal qtaProd) {
this.qtaProd = qtaProd;
return this;
}
public String getCodJfas() {
return codJfas;
}
public JtbCicl setCodJfas(String codJfas) {
this.codJfas = codJfas;
return this;
}
public String getCodProd() {
return codProd;
}
public JtbCicl setCodProd(String codProd) {
this.codProd = codProd;
return this;
}
@Override

View File

@@ -3,12 +3,13 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.List;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@PropertyReactive
@Table(JtbDistClavDir.ENTITY)
@@ -97,181 +98,13 @@ public class JtbDistClavDir extends EntityBase {
super(logger);
}
public String getCodProd() {
return codProd;
}
public void setCodProd(String codProd) {
this.codProd = codProd;
}
public Integer getIdRiga() {
return idRiga;
}
public void setIdRiga(Integer idRiga) {
this.idRiga = idRiga;
}
public String getCodJcosDir() {
return codJcosDir;
}
public void setCodJcosDir(String codJcosDir) {
this.codJcosDir = codJcosDir;
}
public String getDescrizione() {
return descrizione;
}
public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
}
public String getUntMis() {
return untMis;
}
public void setUntMis(String untMis) {
this.untMis = untMis;
}
public BigDecimal getQtaLav() {
return qtaLav;
}
public void setQtaLav(BigDecimal qtaLav) {
this.qtaLav = qtaLav;
}
public BigDecimal getValUnt() {
return valUnt;
}
public void setValUnt(BigDecimal valUnt) {
this.valUnt = valUnt;
}
public BigDecimal getRapConvClav() {
return rapConvClav;
}
public void setRapConvClav(BigDecimal rapConvClav) {
this.rapConvClav = rapConvClav;
}
public Integer getNumFase() {
return numFase;
}
public void setNumFase(Integer numFase) {
this.numFase = numFase;
}
public String getActivityTypeId() {
return activityTypeId;
}
public void setActivityTypeId(String activityTypeId) {
this.activityTypeId = activityTypeId;
}
public String getCodJfas() {
return codJfas;
}
public void setCodJfas(String codJfas) {
this.codJfas = codJfas;
}
public BigDecimal getQtaAllocazione() {
return qtaAllocazione;
}
public void setQtaAllocazione(BigDecimal qtaAllocazione) {
this.qtaAllocazione = qtaAllocazione;
}
public BigDecimal getDuration() {
return duration;
}
public void setDuration(BigDecimal duration) {
this.duration = duration;
}
public String getFlagTipologia() {
return flagTipologia;
}
public void setFlagTipologia(String flagTipologia) {
this.flagTipologia = flagTipologia;
}
public String getActivityDescription() {
return activityDescription;
}
public void setActivityDescription(String activityDescription) {
this.activityDescription = activityDescription;
}
public BigDecimal getHrTime() {
return hrTime;
}
public void setHrTime(BigDecimal hrTime) {
this.hrTime = hrTime;
}
public BigDecimal getSetupTime() {
return setupTime;
}
public void setSetupTime(BigDecimal setupTime) {
this.setupTime = setupTime;
}
public Integer getHrNum() {
return hrNum;
}
public void setHrNum(Integer hrNum) {
this.hrNum = hrNum;
}
public String getDurationType() {
return durationType;
}
public void setDurationType(String durationType) {
this.durationType = durationType;
}
public String getTimeType() {
return timeType;
}
public void setTimeType(String timeType) {
this.timeType = timeType;
}
public String getFlagFasePref() {
return flagFasePref;
}
public JtbDistClavDir setFlagFasePref(String flagFasePref) {
this.flagFasePref = flagFasePref;
return this;
}
public List<JtbDistClavDirDett> getJtbDistClavDirDett() {
return jtbDistClavDirDett;
}
public void setJtbDistClavDirDett(List<JtbDistClavDirDett> jtbDistClavDirDett) {
public JtbDistClavDir setJtbDistClavDirDett(List<JtbDistClavDirDett> jtbDistClavDirDett) {
this.jtbDistClavDirDett = jtbDistClavDirDett;
return this;
}
public List<JtbDistClavDirTempiProd> getJtbDistClavDirTempiProd() {
@@ -283,6 +116,195 @@ public class JtbDistClavDir extends EntityBase {
return this;
}
public String getCodProd() {
return codProd;
}
public JtbDistClavDir setCodProd(String codProd) {
this.codProd = codProd;
return this;
}
public Integer getIdRiga() {
return idRiga;
}
public JtbDistClavDir setIdRiga(Integer idRiga) {
this.idRiga = idRiga;
return this;
}
public String getCodJcosDir() {
return codJcosDir;
}
public JtbDistClavDir setCodJcosDir(String codJcosDir) {
this.codJcosDir = codJcosDir;
return this;
}
public String getDescrizione() {
return descrizione;
}
public JtbDistClavDir setDescrizione(String descrizione) {
this.descrizione = descrizione;
return this;
}
public String getUntMis() {
return untMis;
}
public JtbDistClavDir setUntMis(String untMis) {
this.untMis = untMis;
return this;
}
public BigDecimal getQtaLav() {
return qtaLav;
}
public JtbDistClavDir setQtaLav(BigDecimal qtaLav) {
this.qtaLav = qtaLav;
return this;
}
public BigDecimal getValUnt() {
return valUnt;
}
public JtbDistClavDir setValUnt(BigDecimal valUnt) {
this.valUnt = valUnt;
return this;
}
public BigDecimal getRapConvClav() {
return rapConvClav;
}
public JtbDistClavDir setRapConvClav(BigDecimal rapConvClav) {
this.rapConvClav = rapConvClav;
return this;
}
public Integer getNumFase() {
return numFase;
}
public JtbDistClavDir setNumFase(Integer numFase) {
this.numFase = numFase;
return this;
}
public String getActivityTypeId() {
return activityTypeId;
}
public JtbDistClavDir setActivityTypeId(String activityTypeId) {
this.activityTypeId = activityTypeId;
return this;
}
public String getCodJfas() {
return codJfas;
}
public JtbDistClavDir setCodJfas(String codJfas) {
this.codJfas = codJfas;
return this;
}
public BigDecimal getQtaAllocazione() {
return qtaAllocazione;
}
public JtbDistClavDir setQtaAllocazione(BigDecimal qtaAllocazione) {
this.qtaAllocazione = qtaAllocazione;
return this;
}
public BigDecimal getDuration() {
return duration;
}
public JtbDistClavDir setDuration(BigDecimal duration) {
this.duration = duration;
return this;
}
public String getFlagTipologia() {
return flagTipologia;
}
public JtbDistClavDir setFlagTipologia(String flagTipologia) {
this.flagTipologia = flagTipologia;
return this;
}
public String getActivityDescription() {
return activityDescription;
}
public JtbDistClavDir setActivityDescription(String activityDescription) {
this.activityDescription = activityDescription;
return this;
}
public BigDecimal getHrTime() {
return hrTime;
}
public JtbDistClavDir setHrTime(BigDecimal hrTime) {
this.hrTime = hrTime;
return this;
}
public BigDecimal getSetupTime() {
return setupTime;
}
public JtbDistClavDir setSetupTime(BigDecimal setupTime) {
this.setupTime = setupTime;
return this;
}
public Integer getHrNum() {
return hrNum;
}
public JtbDistClavDir setHrNum(Integer hrNum) {
this.hrNum = hrNum;
return this;
}
public String getDurationType() {
return durationType;
}
public JtbDistClavDir setDurationType(String durationType) {
this.durationType = durationType;
return this;
}
public String getTimeType() {
return timeType;
}
public JtbDistClavDir setTimeType(String timeType) {
this.timeType = timeType;
return this;
}
public String getFlagFasePref() {
return flagFasePref;
}
public JtbDistClavDir setFlagFasePref(String flagFasePref) {
this.flagFasePref = flagFasePref;
return this;
}
@Override
protected void insertChilds() throws Exception {
for (JtbDistClavDirDett jtbDistClavDirDett : getJtbDistClavDirDett()) {

View File

@@ -10,6 +10,7 @@ import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -42,7 +43,7 @@ public class MtbPartitaMag extends EntityBase implements EquatableEntityInterfac
private Date dataIns;
@SqlField(value = "data_scad", format = CommonConstants.SYSDATE)
private Date dataScad;
private LocalDate dataScad;
@SqlField(value = "scelta", nullable = false, defaultObjectValue = "0")
private Integer scelta;
@@ -147,11 +148,11 @@ public class MtbPartitaMag extends EntityBase implements EquatableEntityInterfac
return this;
}
public Date getDataScad() {
public LocalDate getDataScad() {
return dataScad;
}
public MtbPartitaMag setDataScad(Date dataScad) {
public MtbPartitaMag setDataScad(LocalDate dataScad) {
this.dataScad = dataScad;
return this;
}

View File

@@ -4,12 +4,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.common.var.CommonConstants;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Master
@PropertyReactive
@@ -86,6 +87,13 @@ public class StbGestSetup extends EntityBase {
super(logger);
}
public StbGestSetup(String gestName, String section, String keySection) {
this();
this.gestName = gestName;
this.section = section;
this.keySection = keySection;
}
public String getGestName() {
return gestName;
}

View File

@@ -0,0 +1,18 @@
package it.integry.event;
import it.integry.ems.migration._base.IntegryCustomerDB;
import org.springframework.context.ApplicationEvent;
public abstract class BaseCustomerDBEvent extends ApplicationEvent {
protected final IntegryCustomerDB customerDB;
public BaseCustomerDBEvent(Object source, IntegryCustomerDB customerDB) {
super(source);
this.customerDB = customerDB;
}
public IntegryCustomerDB getCustomerDB() {
return customerDB;
}
}

View File

@@ -0,0 +1,521 @@
package it.integry.maxidata.client.api;
import it.integry.maxidata.client.invoker.ApiClient;
import it.integry.maxidata.client.invoker.BaseApi;
import it.integry.maxidata.client.model.MaxidataCFGBILoginV4BLLLoginType;
import it.integry.maxidata.client.model.MaxidataCFGBILoginV4BLLPayLoadType;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.*;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.RestClientException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class AutenticazioneApi extends BaseApi {
public AutenticazioneApi() {
super(new ApiClient());
}
public AutenticazioneApi(ApiClient apiClient) {
super(apiClient);
}
/**
* Esegue la login statica all&#39;applicazione (E&#39; una Login che ha data di scadenza)
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param user username (required)
* @param appClientID app Client ID (required)
* @param password Password (optional)
* @param ipAddress ipAddress (optional)
* @return MaxidataCFGBILoginV4BLLLoginType
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataCFGBILoginV4BLLLoginType callStatic(String user, String appClientID, String password, String ipAddress) throws RestClientException {
return callStaticWithHttpInfo(user, appClientID, password, ipAddress).getBody();
}
/**
* Esegue la login statica all&#39;applicazione (E&#39; una Login che ha data di scadenza)
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param user username (required)
* @param appClientID app Client ID (required)
* @param password Password (optional)
* @param ipAddress ipAddress (optional)
* @return ResponseEntity&lt;MaxidataCFGBILoginV4BLLLoginType&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataCFGBILoginV4BLLLoginType> callStaticWithHttpInfo(String user, String appClientID, String password, String ipAddress) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'user' is set
if (user == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling callStatic");
}
// verify the required parameter 'appClientID' is set
if (appClientID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'appClientID' when calling callStatic");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "user", user));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "password", password));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ipAddress", ipAddress));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "appClientID", appClientID));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{};
ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType> localReturnType = new ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/Static", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Cambia la password ad una specifica login
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param user username (required)
* @param password Password (optional)
* @param newPassword Nuova Password (optional)
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public void changePassword(String user, String password, String newPassword) throws RestClientException {
changePasswordWithHttpInfo(user, password, newPassword);
}
/**
* Cambia la password ad una specifica login
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param user username (required)
* @param password Password (optional)
* @param newPassword Nuova Password (optional)
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> changePasswordWithHttpInfo(String user, String password, String newPassword) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'user' is set
if (user == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling changePassword");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "user", user));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "password", password));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "newPassword", newPassword));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{};
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/ChangePassword", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Verifica la validitò della login
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @return MaxidataCFGBILoginV4BLLPayLoadType
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataCFGBILoginV4BLLPayLoadType check() throws RestClientException {
return checkWithHttpInfo().getBody();
}
/**
* Verifica la validitò della login
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @return ResponseEntity&lt;MaxidataCFGBILoginV4BLLPayLoadType&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataCFGBILoginV4BLLPayLoadType> checkWithHttpInfo() throws RestClientException {
Object localVarPostBody = null;
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataCFGBILoginV4BLLPayLoadType> localReturnType = new ParameterizedTypeReference<MaxidataCFGBILoginV4BLLPayLoadType>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/Check", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Seleziona l&#39;azienda
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param id id azienda da selezionare (required)
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public void company(String id) throws RestClientException {
companyWithHttpInfo(id);
}
/**
* Seleziona l&#39;azienda
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param id id azienda da selezionare (required)
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> companyWithHttpInfo(String id) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'id' when calling company");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "id", id));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/Company", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Esegule il logout dall&#39;applicazione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public void logOut() throws RestClientException {
logOutWithHttpInfo();
}
/**
* Esegule il logout dall&#39;applicazione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> logOutWithHttpInfo() throws RestClientException {
Object localVarPostBody = null;
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/LogOut", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Esegue la login all&#39;applicazione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param user username (required)
* @param appClientID app Client ID (required)
* @param password Password (optional)
* @param force forza login (optional)
* @param idCompany idCompany (optional)
* @return MaxidataCFGBILoginV4BLLLoginType
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataCFGBILoginV4BLLLoginType login(String user, String appClientID, String password, Boolean force, String idCompany) throws RestClientException {
return loginWithHttpInfo(user, appClientID, password, force, idCompany).getBody();
}
/**
* Esegue la login all&#39;applicazione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param user username (required)
* @param appClientID app Client ID (required)
* @param password Password (optional)
* @param force forza login (optional)
* @param idCompany idCompany (optional)
* @return ResponseEntity&lt;MaxidataCFGBILoginV4BLLLoginType&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataCFGBILoginV4BLLLoginType> loginWithHttpInfo(String user, String appClientID, String password, Boolean force, String idCompany) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'user' is set
if (user == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling login");
}
// verify the required parameter 'appClientID' is set
if (appClientID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'appClientID' when calling login");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "user", user));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "password", password));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "force", force));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "idCompany", idCompany));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "appClientID", appClientID));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{};
ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType> localReturnType = new ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/Login", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Esegue il rinnovo del token
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @return MaxidataCFGBILoginV4BLLLoginType
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataCFGBILoginV4BLLLoginType reNew() throws RestClientException {
return reNewWithHttpInfo().getBody();
}
/**
* Esegue il rinnovo del token
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @return ResponseEntity&lt;MaxidataCFGBILoginV4BLLLoginType&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataCFGBILoginV4BLLLoginType> reNewWithHttpInfo() throws RestClientException {
Object localVarPostBody = null;
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType> localReturnType = new ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/ReNew", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Converte il token interno di auth in JWT
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param token token interno di authenticazione (required)
* @return MaxidataCFGBILoginV4BLLLoginType
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataCFGBILoginV4BLLLoginType token(String token) throws RestClientException {
return tokenWithHttpInfo(token).getBody();
}
/**
* Converte il token interno di auth in JWT
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param token token interno di authenticazione (required)
* @return ResponseEntity&lt;MaxidataCFGBILoginV4BLLLoginType&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataCFGBILoginV4BLLLoginType> tokenWithHttpInfo(String token) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'token' is set
if (token == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'token' when calling token");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "token", token));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{};
ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType> localReturnType = new ParameterizedTypeReference<MaxidataCFGBILoginV4BLLLoginType>() {
};
return apiClient.invokeAPI("/cfg/bi/auth/v4/Token", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
@Override
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
String localVarPath = url.replace(apiClient.getBasePath(), "");
Object localVarPostBody = request;
final Map<String, Object> uriVariables = new HashMap<String, Object>();
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{};
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
}
}

View File

@@ -0,0 +1,631 @@
package it.integry.maxidata.client.api;
import it.integry.maxidata.client.invoker.ApiClient;
import it.integry.maxidata.client.invoker.BaseApi;
import it.integry.maxidata.client.model.*;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.*;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.RestClientException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MesGestioneApi extends BaseApi {
public MesGestioneApi() {
super(new ApiClient());
}
public MesGestioneApi(ApiClient apiClient) {
super(apiClient);
}
/**
* Stampa dell&#39;etichetta del cartone
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param ID ID della produzione (required)
* @param copie Numero di copie da stampare (optional)
* @return MaxidataUveBII40V2BLLUVE2kFileToPrint
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataUveBII40V2BLLUVE2kFileToPrint cardboard(String ID, Integer copie) throws RestClientException {
return cardboardWithHttpInfo(ID, copie).getBody();
}
/**
* Stampa dell&#39;etichetta del cartone
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param ID ID della produzione (required)
* @param copie Numero di copie da stampare (optional)
* @return ResponseEntity&lt;MaxidataUveBII40V2BLLUVE2kFileToPrint&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataUveBII40V2BLLUVE2kFileToPrint> cardboardWithHttpInfo(String ID, Integer copie) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ID' when calling cardboard");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ID", ID));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "Copie", copie));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kFileToPrint> localReturnType = new ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kFileToPrint>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Cardboard", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Restituisce tutte le produzioni non ancora inviate al MES
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param idMag ID Area per cui scaricare le produzioni (required)
* @param stato Stato di invio al MES della produzione (optional)
* @return List&lt;MaxidataUveBII40V2BLLUVE2kSchedeProd&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public List<MaxidataUveBII40V2BLLUVE2kSchedeProd> find(String idMag, String stato) throws RestClientException {
return findWithHttpInfo(idMag, stato).getBody();
}
/**
* Restituisce tutte le produzioni non ancora inviate al MES
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param idMag ID Area per cui scaricare le produzioni (required)
* @param stato Stato di invio al MES della produzione (optional)
* @return ResponseEntity&lt;List&lt;MaxidataUveBII40V2BLLUVE2kSchedeProd&gt;&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<List<MaxidataUveBII40V2BLLUVE2kSchedeProd>> findWithHttpInfo(String idMag, String stato) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'idMag' is set
if (idMag == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'idMag' when calling find");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "IDMag", idMag));
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "Stato", stato));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<List<MaxidataUveBII40V2BLLUVE2kSchedeProd>> localReturnType = new ParameterizedTypeReference<List<MaxidataUveBII40V2BLLUVE2kSchedeProd>>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Find", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Fine produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return MaxidataUveBII40V2BLLUVE2kSchedeProd
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataUveBII40V2BLLUVE2kSchedeProd finish(MaxidataUveBII40V2BLLMESProduzioni item) throws RestClientException {
return finishWithHttpInfo(item).getBody();
}
/**
* Fine produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return ResponseEntity&lt;MaxidataUveBII40V2BLLUVE2kSchedeProd&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataUveBII40V2BLLUVE2kSchedeProd> finishWithHttpInfo(MaxidataUveBII40V2BLLMESProduzioni item) throws RestClientException {
Object localVarPostBody = item;
// verify the required parameter 'item' is set
if (item == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'item' when calling finish");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kSchedeProd> localReturnType = new ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kSchedeProd>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Finish", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Restituisce la singola produzione completa di tutti i dettagli
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param ID ID della produzione (required)
* @return MaxidataUveBII40V2BLLUVE2kSchedeProd
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataUveBII40V2BLLUVE2kSchedeProd get(String ID) throws RestClientException {
return getWithHttpInfo(ID).getBody();
}
/**
* Restituisce la singola produzione completa di tutti i dettagli
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param ID ID della produzione (required)
* @return ResponseEntity&lt;MaxidataUveBII40V2BLLUVE2kSchedeProd&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataUveBII40V2BLLUVE2kSchedeProd> getWithHttpInfo(String ID) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ID' when calling get");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ID", ID));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kSchedeProd> localReturnType = new ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kSchedeProd>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Get", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Genera un nuovo SSCC e ne restituisce il PDF
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return MaxidataUveBII40V2BLLUVE2kPallet
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataUveBII40V2BLLUVE2kPallet pallet(MaxidataUveBII40V2BLLMESPallet item) throws RestClientException {
return palletWithHttpInfo(item).getBody();
}
/**
* Genera un nuovo SSCC e ne restituisce il PDF
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return ResponseEntity&lt;MaxidataUveBII40V2BLLUVE2kPallet&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataUveBII40V2BLLUVE2kPallet> palletWithHttpInfo(MaxidataUveBII40V2BLLMESPallet item) throws RestClientException {
Object localVarPostBody = item;
// verify the required parameter 'item' is set
if (item == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'item' when calling pallet");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kPallet> localReturnType = new ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kPallet>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Pallet", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Conferma un SSCC
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return MaxidataUveBII40V2BLLUVE2kPalletConfermati
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataUveBII40V2BLLUVE2kPalletConfermati palletValidate(MaxidataUveBII40V2BLLMESPalletConfermati item) throws RestClientException {
return palletValidateWithHttpInfo(item).getBody();
}
/**
* Conferma un SSCC
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return ResponseEntity&lt;MaxidataUveBII40V2BLLUVE2kPalletConfermati&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataUveBII40V2BLLUVE2kPalletConfermati> palletValidateWithHttpInfo(MaxidataUveBII40V2BLLMESPalletConfermati item) throws RestClientException {
Object localVarPostBody = item;
// verify the required parameter 'item' is set
if (item == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'item' when calling palletValidate");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kPalletConfermati> localReturnType = new ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kPalletConfermati>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/PalletValidate", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Sospende la produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param ID ID della produzione (required)
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public void pause(String ID) throws RestClientException {
pauseWithHttpInfo(ID);
}
/**
* Sospende la produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param ID ID della produzione (required)
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> pauseWithHttpInfo(String ID) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ID' when calling pause");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ID", ID));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Pause", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Segnala la produzione come inviata al MES
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param ID ID della produzione (required)
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public void send(String ID) throws RestClientException {
sendWithHttpInfo(ID);
}
/**
* Segnala la produzione come inviata al MES
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param ID ID della produzione (required)
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> sendWithHttpInfo(String ID) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ID' when calling send");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ID", ID));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Send", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Avvia la produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return MaxidataUveBII40V2BLLUVE2kSchedeProd
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public MaxidataUveBII40V2BLLUVE2kSchedeProd start(MaxidataUveBII40V2BLLMESProduzioni item) throws RestClientException {
return startWithHttpInfo(item).getBody();
}
/**
* Avvia la produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>200</b> - OK
* @param item (required)
* @return ResponseEntity&lt;MaxidataUveBII40V2BLLUVE2kSchedeProd&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<MaxidataUveBII40V2BLLUVE2kSchedeProd> startWithHttpInfo(MaxidataUveBII40V2BLLMESProduzioni item) throws RestClientException {
Object localVarPostBody = item;
// verify the required parameter 'item' is set
if (item == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'item' when calling start");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kSchedeProd> localReturnType = new ParameterizedTypeReference<MaxidataUveBII40V2BLLUVE2kSchedeProd>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Start", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
/**
* Annulla la produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param ID ID della produzione (required)
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public void stop(String ID) throws RestClientException {
stopWithHttpInfo(ID);
}
/**
* Annulla la produzione
*
* <p><b>400</b> - Bad Request
* <p><b>401</b> - Unauthorized
* <p><b>403</b> - Forbidden
* <p><b>404</b> - Not Found
* <p><b>204</b> - No Content
* @param ID ID della produzione (required)
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> stopWithHttpInfo(String ID) throws RestClientException {
Object localVarPostBody = null;
// verify the required parameter 'ID' is set
if (ID == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'ID' when calling stop");
}
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ID", ID));
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {
};
return apiClient.invokeAPI("/uve/bi/i40/v2/Stop", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
@Override
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
String localVarPath = url.replace(apiClient.getBasePath(), "");
Object localVarPostBody = request;
final Map<String, Object> uriVariables = new HashMap<String, Object>();
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
final HttpHeaders localVarHeaderParams = new HttpHeaders();
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[]{"JWT"};
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
}
}

View File

@@ -0,0 +1,816 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import it.integry.maxidata.client.invoker.auth.ApiKeyAuth;
import it.integry.maxidata.client.invoker.auth.Authentication;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.*;
import org.springframework.http.RequestEntity.BodyBuilder;
import org.springframework.http.client.BufferingClientHttpRequestFactory;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.util.CollectionUtils;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.HttpServerErrorException;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.DefaultUriBuilderFactory;
import org.springframework.web.util.UriComponentsBuilder;
import java.io.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.text.DateFormat;
import java.text.ParseException;
import java.time.OffsetDateTime;
import java.util.*;
import java.util.Map.Entry;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class ApiClient extends JavaTimeFormatter {
public enum CollectionFormat {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator;
CollectionFormat(String separator) {
this.separator = separator;
}
protected String collectionToString(Collection<?> collection) {
return StringUtils.collectionToDelimitedString(collection, separator);
}
}
protected boolean debugging = false;
protected HttpHeaders defaultHeaders = new HttpHeaders();
protected MultiValueMap<String, String> defaultCookies = new LinkedMultiValueMap<String, String>();
protected int maxAttemptsForRetry = 1;
protected long waitTimeMillis = 10;
protected String basePath = "http://localhost/uve2k.blue.SRV1";
protected RestTemplate restTemplate;
protected Map<String, Authentication> authentications;
protected DateFormat dateFormat;
public ApiClient() {
this.restTemplate = buildRestTemplate();
init();
}
public ApiClient(RestTemplate restTemplate) {
this.restTemplate = restTemplate;
init();
}
protected void init() {
// Use RFC3339 format for date and datetime.
// See http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14
this.dateFormat = new RFC3339DateFormat();
// Use UTC as the default time zone.
this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
// Set default User-Agent.
setUserAgent("Java-SDK");
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
authentications.put("JWT", new ApiKeyAuth("header", "Authorization"));
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);
}
/**
* Get the current base path
*
* @return String the base path
*/
public String getBasePath() {
return basePath;
}
/**
* Set the base path, which should include the host
*
* @param basePath the base path
* @return ApiClient this client
*/
public ApiClient setBasePath(String basePath) {
this.basePath = basePath;
return this;
}
/**
* Get the max attempts for retry
*
* @return int the max attempts
*/
public int getMaxAttemptsForRetry() {
return maxAttemptsForRetry;
}
/**
* Set the max attempts for retry
*
* @param maxAttemptsForRetry the max attempts for retry
* @return ApiClient this client
*/
public ApiClient setMaxAttemptsForRetry(int maxAttemptsForRetry) {
this.maxAttemptsForRetry = maxAttemptsForRetry;
return this;
}
/**
* Get the wait time in milliseconds
*
* @return long wait time in milliseconds
*/
public long getWaitTimeMillis() {
return waitTimeMillis;
}
/**
* Set the wait time in milliseconds
*
* @param waitTimeMillis the wait time in milliseconds
* @return ApiClient this client
*/
public ApiClient setWaitTimeMillis(long waitTimeMillis) {
this.waitTimeMillis = waitTimeMillis;
return this;
}
/**
* Get authentications (key: authentication name, value: authentication).
*
* @return Map the currently configured authentication types
*/
public Map<String, Authentication> getAuthentications() {
return authentications;
}
/**
* Get authentication for the given name.
*
* @param authName The authentication name
* @return The authentication, null if not found
*/
public Authentication getAuthentication(String authName) {
return authentications.get(authName);
}
/**
* Helper method to set API key value for the first API key authentication.
*
* @param apiKey the API key
*/
public void setApiKey(String apiKey) {
for (Authentication auth : authentications.values()) {
if (auth instanceof ApiKeyAuth) {
((ApiKeyAuth) auth).setApiKey(apiKey);
return;
}
}
throw new RuntimeException("No API key authentication configured!");
}
/**
* Helper method to set API key prefix for the first API key authentication.
*
* @param apiKeyPrefix API key prefix
*/
public void setApiKeyPrefix(String apiKeyPrefix) {
for (Authentication auth : authentications.values()) {
if (auth instanceof ApiKeyAuth) {
((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix);
return;
}
}
throw new RuntimeException("No API key authentication configured!");
}
/**
* Set the User-Agent header's value (by adding to the default header map).
*
* @param userAgent the user agent string
* @return ApiClient this client
*/
public ApiClient setUserAgent(String userAgent) {
addDefaultHeader("User-Agent", userAgent);
return this;
}
/**
* Add a default header.
*
* @param name The header's name
* @param value The header's value
* @return ApiClient this client
*/
public ApiClient addDefaultHeader(String name, String value) {
defaultHeaders.set(name, value);
return this;
}
/**
* Add a default cookie.
*
* @param name The cookie's name
* @param value The cookie's value
* @return ApiClient this client
*/
public ApiClient addDefaultCookie(String name, String value) {
if (defaultCookies.containsKey(name)) {
defaultCookies.remove(name);
}
defaultCookies.add(name, value);
return this;
}
public void setDebugging(boolean debugging) {
List<ClientHttpRequestInterceptor> currentInterceptors = this.restTemplate.getInterceptors();
if (debugging) {
if (currentInterceptors == null) {
currentInterceptors = new ArrayList<ClientHttpRequestInterceptor>();
}
ClientHttpRequestInterceptor interceptor = new ApiClientHttpRequestInterceptor();
currentInterceptors.add(interceptor);
this.restTemplate.setInterceptors(currentInterceptors);
} else {
if (currentInterceptors != null && !currentInterceptors.isEmpty()) {
Iterator<ClientHttpRequestInterceptor> iter = currentInterceptors.iterator();
while (iter.hasNext()) {
ClientHttpRequestInterceptor interceptor = iter.next();
if (interceptor instanceof ApiClientHttpRequestInterceptor) {
iter.remove();
}
}
this.restTemplate.setInterceptors(currentInterceptors);
}
}
this.debugging = debugging;
}
/**
* Check that whether debugging is enabled for this API client.
* @return boolean true if this client is enabled for debugging, false otherwise
*/
public boolean isDebugging() {
return debugging;
}
/**
* Get the date format used to parse/format date parameters.
* @return DateFormat format
*/
public DateFormat getDateFormat() {
return dateFormat;
}
/**
* Set the date format used to parse/format date parameters.
* @param dateFormat Date format
* @return API client
*/
public ApiClient setDateFormat(DateFormat dateFormat) {
this.dateFormat = dateFormat;
return this;
}
/**
* Parse the given string into Date object.
*
* @param str the string to parse
* @return the Date parsed from the string
*/
public Date parseDate(String str) {
try {
return dateFormat.parse(str);
} catch (ParseException e) {
throw new RuntimeException(e);
}
}
/**
* Format the given Date object into string.
*
* @param date the date to format
* @return the formatted date as string
*/
public String formatDate(Date date) {
return dateFormat.format(date);
}
/**
* Format the given parameter object into string.
*
* @param param the object to convert
* @return String the parameter represented as a String
*/
public String parameterToString(Object param) {
if (param == null) {
return "";
} else if (param instanceof Date) {
return formatDate((Date) param);
} else if (param instanceof OffsetDateTime) {
return formatOffsetDateTime((OffsetDateTime) param);
} else if (param instanceof Collection) {
StringBuilder b = new StringBuilder();
for (Object o : (Collection<?>) param) {
if (b.length() > 0) {
b.append(",");
}
b.append(String.valueOf(o));
}
return b.toString();
} else {
return String.valueOf(param);
}
}
/**
* Formats the specified collection path parameter to a string value.
*
* @param collectionFormat The collection format of the parameter.
* @param values The values of the parameter.
* @return String representation of the parameter
*/
public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection<?> values) {
// create the value based on the collection format
if (CollectionFormat.MULTI.equals(collectionFormat)) {
// not valid for path params
return parameterToString(values);
}
// collectionFormat is assumed to be "csv" by default
if (collectionFormat == null) {
collectionFormat = CollectionFormat.CSV;
}
return collectionFormat.collectionToString(values);
}
/**
* Converts a parameter to a {@link MultiValueMap} for use in REST requests
*
* @param collectionFormat The format to convert to
* @param name The name of the parameter
* @param value The parameter's value
* @return a Map containing the String value(s) of the input parameter
*/
public MultiValueMap<String, String> parameterToMultiValueMap(CollectionFormat collectionFormat, String name, Object value) {
final MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>();
if (name == null || name.isEmpty() || value == null) {
return params;
}
if (collectionFormat == null) {
collectionFormat = CollectionFormat.CSV;
}
if (value instanceof Map) {
@SuppressWarnings("unchecked") final Map<String, Object> valuesMap = (Map<String, Object>) value;
for (final Entry<String, Object> entry : valuesMap.entrySet()) {
params.add(entry.getKey(), parameterToString(entry.getValue()));
}
return params;
}
Collection<?> valueCollection = null;
if (value instanceof Collection) {
valueCollection = (Collection<?>) value;
} else {
params.add(name, parameterToString(value));
return params;
}
if (valueCollection.isEmpty()) {
return params;
}
if (collectionFormat.equals(CollectionFormat.MULTI)) {
for (Object item : valueCollection) {
params.add(name, parameterToString(item));
}
return params;
}
List<String> values = new ArrayList<String>();
for (Object o : valueCollection) {
values.add(parameterToString(o));
}
params.add(name, collectionFormat.collectionToString(values));
return params;
}
/**
* Check if the given {@code String} is a JSON MIME.
*
* @param mediaType the input MediaType
* @return boolean true if the MediaType represents JSON, false otherwise
*/
public boolean isJsonMime(String mediaType) {
// "* / *" is default to JSON
if ("*/*".equals(mediaType)) {
return true;
}
try {
return isJsonMime(MediaType.parseMediaType(mediaType));
} catch (InvalidMediaTypeException e) {
}
return false;
}
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
* APPLICATION/JSON
*
* @param mediaType the input MediaType
* @return boolean true if the MediaType represents JSON, false otherwise
*/
public boolean isJsonMime(MediaType mediaType) {
return mediaType != null && (MediaType.APPLICATION_JSON.isCompatibleWith(mediaType) || mediaType.getSubtype().matches("^.*\\+json[;]?\\s*$"));
}
/**
* Check if the given {@code String} is a Problem JSON MIME (RFC-7807).
*
* @param mediaType the input MediaType
* @return boolean true if the MediaType represents Problem JSON, false otherwise
*/
public boolean isProblemJsonMime(String mediaType) {
return "application/problem+json".equalsIgnoreCase(mediaType);
}
/**
* Select the Accept header's value from the given accepts array:
* if JSON exists in the given array, use it;
* otherwise use all of them (joining into a string)
*
* @param accepts The accepts array to select from
* @return List The list of MediaTypes to use for the Accept header
*/
public List<MediaType> selectHeaderAccept(String[] accepts) {
if (accepts.length == 0) {
return null;
}
for (String accept : accepts) {
MediaType mediaType = MediaType.parseMediaType(accept);
if (isJsonMime(mediaType) && !isProblemJsonMime(accept)) {
return Collections.singletonList(mediaType);
}
}
return MediaType.parseMediaTypes(StringUtils.arrayToCommaDelimitedString(accepts));
}
/**
* Select the Content-Type header's value from the given array:
* if JSON exists in the given array, use it;
* otherwise use the first one of the array.
*
* @param contentTypes The Content-Type array to select from
* @return MediaType The Content-Type header to use. If the given array is empty, JSON will be used.
*/
public MediaType selectHeaderContentType(String[] contentTypes) {
if (contentTypes.length == 0) {
return MediaType.APPLICATION_JSON;
}
for (String contentType : contentTypes) {
MediaType mediaType = MediaType.parseMediaType(contentType);
if (isJsonMime(mediaType)) {
return mediaType;
}
}
return MediaType.parseMediaType(contentTypes[0]);
}
/**
* Select the body to use for the request
*
* @param obj the body object
* @param formParams the form parameters
* @param contentType the content type of the request
* @return Object the selected body
*/
protected Object selectBody(Object obj, MultiValueMap<String, Object> formParams, MediaType contentType) {
boolean isForm = MediaType.MULTIPART_FORM_DATA.isCompatibleWith(contentType) || MediaType.APPLICATION_FORM_URLENCODED.isCompatibleWith(contentType);
return isForm ? formParams : obj;
}
/**
* Expand path template with variables
*
* @param pathTemplate path template with placeholders
* @param variables variables to replace
* @return path with placeholders replaced by variables
*/
public String expandPath(String pathTemplate, Map<String, Object> variables) {
return restTemplate.getUriTemplateHandler().expand(pathTemplate, variables).toString();
}
/**
* Include queryParams in uriParams taking into account the paramName
*
* @param queryParams The query parameters
* @param uriParams The path parameters
* return templatized query string
*/
public String generateQueryUri(MultiValueMap<String, String> queryParams, Map<String, Object> uriParams) {
StringBuilder queryBuilder = new StringBuilder();
queryParams.forEach((name, values) -> {
try {
final String encodedName = URLEncoder.encode(name.toString(), "UTF-8");
if (CollectionUtils.isEmpty(values)) {
if (queryBuilder.length() != 0) {
queryBuilder.append('&');
}
queryBuilder.append(encodedName);
} else {
int valueItemCounter = 0;
for (Object value : values) {
if (queryBuilder.length() != 0) {
queryBuilder.append('&');
}
queryBuilder.append(encodedName);
if (value != null) {
String templatizedKey = encodedName + valueItemCounter++;
uriParams.put(templatizedKey, value.toString());
queryBuilder.append('=').append("{").append(templatizedKey).append("}");
}
}
}
} catch (UnsupportedEncodingException e) {
}
});
return queryBuilder.toString();
}
/**
* Invoke API by sending HTTP request with the given options.
*
* @param <T> the return type to use
* @param path The sub-path of the HTTP URL
* @param method The request method
* @param pathParams The path parameters
* @param queryParams The query parameters
* @param body The request body object
* @param headerParams The header parameters
* @param cookieParams The cookie parameters
* @param formParams The form parameters
* @param accept The request's Accept header
* @param contentType The request's Content-Type header
* @param authNames The authentications to apply
* @param returnType The return type into which to deserialize the response
* @return ResponseEntity&lt;T&gt; The response of the chosen type
*/
public <T> ResponseEntity<T> invokeAPI(String path, HttpMethod method, Map<String, Object> pathParams, MultiValueMap<String, String> queryParams, Object body, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams, MultiValueMap<String, Object> formParams, List<MediaType> accept, MediaType contentType, String[] authNames, ParameterizedTypeReference<T> returnType) throws RestClientException {
updateParamsForAuth(authNames, queryParams, headerParams, cookieParams);
Map<String, Object> uriParams = new HashMap<>();
uriParams.putAll(pathParams);
String finalUri = path;
if (queryParams != null && !queryParams.isEmpty()) {
//Include queryParams in uriParams taking into account the paramName
String queryUri = generateQueryUri(queryParams, uriParams);
//Append to finalUri the templatized query string like "?param1={param1Value}&.......
finalUri += "?" + queryUri;
}
String expandedPath = this.expandPath(finalUri, uriParams);
final UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(basePath).path(expandedPath);
URI uri;
try {
uri = new URI(builder.build().toUriString());
} catch (URISyntaxException ex) {
throw new RestClientException("Could not build URL: " + builder.toUriString(), ex);
}
final BodyBuilder requestBuilder = RequestEntity.method(method, UriComponentsBuilder.fromUriString(basePath).toUriString() + finalUri, uriParams);
if (accept != null) {
requestBuilder.accept(accept.toArray(new MediaType[accept.size()]));
}
if (contentType != null) {
requestBuilder.contentType(contentType);
}
addHeadersToRequest(headerParams, requestBuilder);
addHeadersToRequest(defaultHeaders, requestBuilder);
addCookiesToRequest(cookieParams, requestBuilder);
addCookiesToRequest(defaultCookies, requestBuilder);
RequestEntity<Object> requestEntity = requestBuilder.body(selectBody(body, formParams, contentType));
ResponseEntity<T> responseEntity = null;
int attempts = 0;
while (attempts < maxAttemptsForRetry) {
try {
responseEntity = restTemplate.exchange(requestEntity, returnType);
break;
} catch (HttpServerErrorException | HttpClientErrorException ex) {
if (ex instanceof HttpServerErrorException
|| ((HttpClientErrorException) ex)
.getStatusCode()
.equals(HttpStatus.TOO_MANY_REQUESTS)) {
attempts++;
if (attempts < maxAttemptsForRetry) {
try {
Thread.sleep(waitTimeMillis);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
} else {
throw ex;
}
} else {
throw ex;
}
}
}
if (responseEntity == null) {
throw new RestClientException("ResponseEntity is null");
}
if (responseEntity.getStatusCode().is2xxSuccessful()) {
return responseEntity;
} else {
// The error handler built into the RestTemplate should handle 400 and 500 series errors.
throw new RestClientException("API returned " + responseEntity.getStatusCode() + " and it wasn't handled by the RestTemplate error handler");
}
}
/**
* Add headers to the request that is being built
* @param headers The headers to add
* @param requestBuilder The current request
*/
protected void addHeadersToRequest(HttpHeaders headers, BodyBuilder requestBuilder) {
for (Entry<String, List<String>> entry : headers.entrySet()) {
List<String> values = entry.getValue();
for (String value : values) {
if (value != null) {
requestBuilder.header(entry.getKey(), value);
}
}
}
}
/**
* Add cookies to the request that is being built
*
* @param cookies The cookies to add
* @param requestBuilder The current request
*/
protected void addCookiesToRequest(MultiValueMap<String, String> cookies, BodyBuilder requestBuilder) {
if (!cookies.isEmpty()) {
requestBuilder.header("Cookie", buildCookieHeader(cookies));
}
}
/**
* Build cookie header. Keeps a single value per cookie (as per <a href="https://tools.ietf.org/html/rfc6265#section-5.3">
* RFC6265 section 5.3</a>).
*
* @param cookies map all cookies
* @return header string for cookies.
*/
protected String buildCookieHeader(MultiValueMap<String, String> cookies) {
final StringBuilder cookieValue = new StringBuilder();
String delimiter = "";
for (final Map.Entry<String, List<String>> entry : cookies.entrySet()) {
final String value = entry.getValue().get(entry.getValue().size() - 1);
cookieValue.append(String.format("%s%s=%s", delimiter, entry.getKey(), value));
delimiter = "; ";
}
return cookieValue.toString();
}
/**
* Build the RestTemplate used to make HTTP requests.
* @return RestTemplate
*/
protected RestTemplate buildRestTemplate() {
RestTemplate restTemplate = new RestTemplate();
// This allows us to read the response more than once - Necessary for debugging.
restTemplate.setRequestFactory(new BufferingClientHttpRequestFactory(restTemplate.getRequestFactory()));
// disable default URL encoding
DefaultUriBuilderFactory uriBuilderFactory = new DefaultUriBuilderFactory();
uriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.VALUES_ONLY);
restTemplate.setUriTemplateHandler(uriBuilderFactory);
return restTemplate;
}
/**
* Update query and header parameters based on authentication settings.
*
* @param authNames The authentications to apply
* @param queryParams The query parameters
* @param headerParams The header parameters
*/
protected void updateParamsForAuth(String[] authNames, MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams) {
for (String authName : authNames) {
Authentication auth = authentications.get(authName);
if (auth == null) {
throw new RestClientException("Authentication undefined: " + authName);
}
auth.applyToParams(queryParams, headerParams, cookieParams);
}
}
protected class ApiClientHttpRequestInterceptor implements ClientHttpRequestInterceptor {
protected final Log log = LogFactory.getLog(ApiClientHttpRequestInterceptor.class);
@Override
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException {
logRequest(request, body);
ClientHttpResponse response = execution.execute(request, body);
logResponse(response);
return response;
}
protected void logRequest(HttpRequest request, byte[] body) throws UnsupportedEncodingException {
log.info("URI: " + request.getURI());
log.info("HTTP Method: " + request.getMethod());
log.info("HTTP Headers: " + headersToString(request.getHeaders()));
log.info("Request Body: " + new String(body, StandardCharsets.UTF_8));
}
protected void logResponse(ClientHttpResponse response) throws IOException {
log.info("HTTP Status Code: " + response.getStatusCode().value());
log.info("Status Text: " + response.getStatusText());
log.info("HTTP Headers: " + headersToString(response.getHeaders()));
log.info("Response Body: " + bodyToString(response.getBody()));
}
protected String headersToString(HttpHeaders headers) {
if (headers == null || headers.isEmpty()) {
return "";
}
StringBuilder builder = new StringBuilder();
for (Entry<String, List<String>> entry : headers.entrySet()) {
builder.append(entry.getKey()).append("=[");
for (String value : entry.getValue()) {
builder.append(value).append(",");
}
builder.setLength(builder.length() - 1); // Get rid of trailing comma
builder.append("],");
}
builder.setLength(builder.length() - 1); // Get rid of trailing comma
return builder.toString();
}
protected String bodyToString(InputStream body) throws IOException {
StringBuilder builder = new StringBuilder();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(body, StandardCharsets.UTF_8));
String line = bufferedReader.readLine();
while (line != null) {
builder.append(line).append(System.lineSeparator());
line = bufferedReader.readLine();
}
bufferedReader.close();
return builder.toString();
}
}
}

View File

@@ -0,0 +1,89 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestClientException;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public abstract class BaseApi {
protected ApiClient apiClient;
public BaseApi() {
this(new ApiClient());
}
public BaseApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
* @param url The URL for the request, either full URL or only the path.
* @param method The HTTP method for the request.
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {
});
}
/**
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
* @param url The URL for the request, either full URL or only the path.
* @param method The HTTP method for the request.
* @param request The request object.
* @return ResponseEntity&lt;Void&gt;
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {
});
}
/**
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
* @param url The URL for the request, either full URL or only the path.
* @param method The HTTP method for the request.
* @param returnType The return type.
* @return ResponseEntity in the specified type.
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
return invokeAPI(url, method, null, returnType);
}
/**
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
* @param url The URL for the request, either full URL or only the path.
* @param method The HTTP method for the request.
* @param request The request object.
* @param returnType The return type.
* @return ResponseEntity in the specified type.
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
}

View File

@@ -0,0 +1,68 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
/**
* Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class.
* It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class JavaTimeFormatter {
private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
/**
* Get the date format used to parse/format {@code OffsetDateTime} parameters.
*
* @return DateTimeFormatter
*/
public DateTimeFormatter getOffsetDateTimeFormatter() {
return offsetDateTimeFormatter;
}
/**
* Set the date format used to parse/format {@code OffsetDateTime} parameters.
*
* @param offsetDateTimeFormatter {@code DateTimeFormatter}
*/
public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter) {
this.offsetDateTimeFormatter = offsetDateTimeFormatter;
}
/**
* Parse the given string into {@code OffsetDateTime} object.
*
* @param str String
* @return {@code OffsetDateTime}
*/
public OffsetDateTime parseOffsetDateTime(String str) {
try {
return OffsetDateTime.parse(str, offsetDateTimeFormatter);
} catch (DateTimeParseException e) {
throw new RuntimeException(e);
}
}
/**
* Format the given {@code OffsetDateTime} object into string.
*
* @param offsetDateTime {@code OffsetDateTime}
* @return {@code OffsetDateTime} in string format
*/
public String formatOffsetDateTime(OffsetDateTime offsetDateTime) {
return offsetDateTimeFormatter.format(offsetDateTime);
}
}

View File

@@ -0,0 +1,58 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import com.fasterxml.jackson.databind.util.StdDateFormat;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.FieldPosition;
import java.text.ParsePosition;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class RFC3339DateFormat extends DateFormat {
private static final long serialVersionUID = 1L;
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
private final StdDateFormat fmt = new StdDateFormat()
.withTimeZone(TIMEZONE_Z)
.withColonInTimeZone(true);
public RFC3339DateFormat() {
this.calendar = new GregorianCalendar();
this.numberFormat = new DecimalFormat();
}
@Override
public Date parse(String source) {
return parse(source, new ParsePosition(0));
}
@Override
public Date parse(String source, ParsePosition pos) {
return fmt.parse(source, pos);
}
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
return fmt.format(date, toAppendTo, fieldPosition);
}
@Override
public Object clone() {
return super.clone();
}
}

View File

@@ -0,0 +1,100 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature;
import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;
import java.io.IOException;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.Temporal;
import java.time.temporal.TemporalAccessor;
import java.util.function.BiFunction;
import java.util.function.Function;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
private static final long serialVersionUID = 1L;
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();
public static final RFC3339InstantDeserializer<Instant> INSTANT = new RFC3339InstantDeserializer<>(
Instant.class, DateTimeFormatter.ISO_INSTANT,
Instant::from,
a -> Instant.ofEpochMilli(a.value),
a -> Instant.ofEpochSecond(a.integer, a.fraction),
null,
true, // yes, replace zero offset with Z
DEFAULT_NORMALIZE_ZONE_ID,
DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
);
public static final RFC3339InstantDeserializer<OffsetDateTime> OFFSET_DATE_TIME = new RFC3339InstantDeserializer<>(
OffsetDateTime.class, DateTimeFormatter.ISO_OFFSET_DATE_TIME,
OffsetDateTime::from,
a -> OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId),
a -> OffsetDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId),
(d, z) -> (d.isEqual(OffsetDateTime.MIN) || d.isEqual(OffsetDateTime.MAX) ?
d :
d.withOffsetSameInstant(z.getRules().getOffset(d.toLocalDateTime()))),
true, // yes, replace zero offset with Z
DEFAULT_NORMALIZE_ZONE_ID,
DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
);
public static final RFC3339InstantDeserializer<ZonedDateTime> ZONED_DATE_TIME = new RFC3339InstantDeserializer<>(
ZonedDateTime.class, DateTimeFormatter.ISO_ZONED_DATE_TIME,
ZonedDateTime::from,
a -> ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId),
a -> ZonedDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId),
ZonedDateTime::withZoneSameInstant,
false, // keep zero offset and Z separate since zones explicitly supported
DEFAULT_NORMALIZE_ZONE_ID,
DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
);
protected RFC3339InstantDeserializer(
Class<T> supportedType,
DateTimeFormatter formatter,
Function<TemporalAccessor, T> parsedToValue,
Function<FromIntegerArguments, T> fromMilliseconds,
Function<FromDecimalArguments, T> fromNanoseconds,
BiFunction<T, ZoneId, T> adjust,
boolean replaceZeroOffsetAsZ,
boolean normalizeZoneId,
boolean readNumericStringsAsTimestamp) {
super(
supportedType,
formatter,
parsedToValue,
fromMilliseconds,
fromNanoseconds,
adjust,
replaceZeroOffsetAsZ,
normalizeZoneId,
readNumericStringsAsTimestamp
);
}
@Override
protected T _fromString(JsonParser p, DeserializationContext ctxt, String string0) throws IOException {
return super._fromString(p, ctxt, string0.replace(' ', 'T'));
}
}

View File

@@ -0,0 +1,38 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import com.fasterxml.jackson.databind.module.SimpleModule;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class RFC3339JavaTimeModule extends SimpleModule {
private static final long serialVersionUID = 1L;
public RFC3339JavaTimeModule() {
super("RFC3339JavaTimeModule");
}
@Override
public void setupModule(SetupContext context) {
super.setupModule(context);
addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT);
addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME);
addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME);
}
}

View File

@@ -0,0 +1,72 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import java.util.Map;
/**
* Representing a Server configuration.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class ServerConfiguration {
public String URL;
public String description;
public Map<String, ServerVariable> variables;
/**
* @param URL A URL to the target host.
* @param description A description of the host designated by the URL.
* @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
*/
public ServerConfiguration(String URL, String description, Map<String, ServerVariable> variables) {
this.URL = URL;
this.description = description;
this.variables = variables;
}
/**
* Format URL template using given variables.
*
* @param variables A map between a variable name and its value.
* @return Formatted URL.
*/
public String URL(Map<String, String> variables) {
String url = this.URL;
// go through variables and replace placeholders
for (Map.Entry<String, ServerVariable> variable : this.variables.entrySet()) {
String name = variable.getKey();
ServerVariable serverVariable = variable.getValue();
String value = serverVariable.defaultValue;
if (variables != null && variables.containsKey(name)) {
value = variables.get(name);
if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
}
}
url = url.replace("{" + name + "}", value);
}
return url;
}
/**
* Format URL template using default server variables.
*
* @return Formatted URL.
*/
public String URL() {
return URL(null);
}
}

View File

@@ -0,0 +1,37 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker;
import java.util.HashSet;
/**
* Representing a Server Variable for server URL template substitution.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class ServerVariable {
public String description;
public String defaultValue;
public HashSet<String> enumValues = null;
/**
* @param description A description for the server variable.
* @param defaultValue The default value to use for substitution.
* @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
*/
public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) {
this.description = description;
this.defaultValue = defaultValue;
this.enumValues = enumValues;
}
}

View File

@@ -0,0 +1,75 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker.auth;
import org.springframework.http.HttpHeaders;
import org.springframework.util.MultiValueMap;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
private String apiKey;
private String apiKeyPrefix;
public ApiKeyAuth(String location, String paramName) {
this.location = location;
this.paramName = paramName;
}
public String getLocation() {
return location;
}
public String getParamName() {
return paramName;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getApiKeyPrefix() {
return apiKeyPrefix;
}
public void setApiKeyPrefix(String apiKeyPrefix) {
this.apiKeyPrefix = apiKeyPrefix;
}
@Override
public void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams) {
if (apiKey == null) {
return;
}
String value;
if (apiKeyPrefix != null) {
value = apiKeyPrefix + " " + apiKey;
} else {
value = apiKey;
}
if (location.equals("query")) {
queryParams.add(paramName, value);
} else if (location.equals("header")) {
headerParams.add(paramName, value);
} else if (location.equals("cookie")) {
cookieParams.add(paramName, value);
}
}
}

View File

@@ -0,0 +1,29 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker.auth;
import org.springframework.http.HttpHeaders;
import org.springframework.util.MultiValueMap;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public interface Authentication {
/**
* Apply authentication settings to header and / or query parameters.
*
* @param queryParams The query parameters for the request
* @param headerParams The header parameters for the request
* @param cookieParams The cookie parameters for the request
*/
void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
}

View File

@@ -0,0 +1,51 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker.auth;
import org.springframework.http.HttpHeaders;
import org.springframework.util.MultiValueMap;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class HttpBasicAuth implements Authentication {
private String username;
private String password;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams) {
if (username == null && password == null) {
return;
}
String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
headerParams.add(HttpHeaders.AUTHORIZATION, "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8)));
}
}

View File

@@ -0,0 +1,70 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.invoker.auth;
import org.springframework.http.HttpHeaders;
import org.springframework.util.MultiValueMap;
import java.util.Optional;
import java.util.function.Supplier;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private Supplier<String> tokenSupplier;
public HttpBearerAuth(String scheme) {
this.scheme = scheme;
}
/**
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
*
* @return The bearer token
*/
public String getBearerToken() {
return tokenSupplier.get();
}
/**
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
*
* @param bearerToken The bearer token to send in the Authorization header
*/
public void setBearerToken(String bearerToken) {
this.tokenSupplier = () -> bearerToken;
}
/**
* Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header.
*
* @param tokenSupplier The supplier of bearer tokens to send in the Authorization header
*/
public void setBearerToken(Supplier<String> tokenSupplier) {
this.tokenSupplier = tokenSupplier;
}
@Override
public void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams) {
String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null);
if (bearerToken == null) {
return;
}
headerParams.add(HttpHeaders.AUTHORIZATION, (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
}
private static String upperCaseBearer(String scheme) {
return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme;
}
}

View File

@@ -0,0 +1,140 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Objects;
/**
* MaxidataCFGBILoginV4BLLLoginType
*/
@JsonPropertyOrder({
MaxidataCFGBILoginV4BLLLoginType.JSON_PROPERTY_JWT,
MaxidataCFGBILoginV4BLLLoginType.JSON_PROPERTY_PAYLOAD
})
@JsonTypeName("Maxidata.CFG.BI.Login.v4.BLL.Login_Type")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataCFGBILoginV4BLLLoginType implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_JWT = "jwt";
@javax.annotation.Nullable
private String jwt;
public static final String JSON_PROPERTY_PAYLOAD = "payload";
@javax.annotation.Nullable
private MaxidataCFGBILoginV4BLLPayLoadType payload;
public MaxidataCFGBILoginV4BLLLoginType() {
}
public MaxidataCFGBILoginV4BLLLoginType jwt(@javax.annotation.Nullable String jwt) {
this.jwt = jwt;
return this;
}
/**
* token jwt
*
* @return jwt
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_JWT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getJwt() {
return jwt;
}
@JsonProperty(JSON_PROPERTY_JWT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJwt(@javax.annotation.Nullable String jwt) {
this.jwt = jwt;
}
public MaxidataCFGBILoginV4BLLLoginType payload(@javax.annotation.Nullable MaxidataCFGBILoginV4BLLPayLoadType payload) {
this.payload = payload;
return this;
}
/**
* Get payload
*
* @return payload
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAYLOAD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MaxidataCFGBILoginV4BLLPayLoadType getPayload() {
return payload;
}
@JsonProperty(JSON_PROPERTY_PAYLOAD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPayload(@javax.annotation.Nullable MaxidataCFGBILoginV4BLLPayLoadType payload) {
this.payload = payload;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataCFGBILoginV4BLLLoginType maxidataCFGBILoginV4BLLLoginType = (MaxidataCFGBILoginV4BLLLoginType) o;
return Objects.equals(this.jwt, maxidataCFGBILoginV4BLLLoginType.jwt) &&
Objects.equals(this.payload, maxidataCFGBILoginV4BLLLoginType.payload);
}
@Override
public int hashCode() {
return Objects.hash(jwt, payload);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataCFGBILoginV4BLLLoginType {\n");
sb.append(" jwt: ").append(toIndentedString(jwt)).append("\n");
sb.append(" payload: ").append(toIndentedString(payload)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,202 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Objects;
/**
* MaxidataCFGBILoginV4BLLModuleType
*/
@JsonPropertyOrder({
MaxidataCFGBILoginV4BLLModuleType.JSON_PROPERTY_I_D,
MaxidataCFGBILoginV4BLLModuleType.JSON_PROPERTY_GROUP,
MaxidataCFGBILoginV4BLLModuleType.JSON_PROPERTY_DESCRIPTION,
MaxidataCFGBILoginV4BLLModuleType.JSON_PROPERTY_VALUE
})
@JsonTypeName("Maxidata.CFG.BI.Login.v4.BLL.Module_Type")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataCFGBILoginV4BLLModuleType implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_I_D = "ID";
@javax.annotation.Nullable
private String ID;
public static final String JSON_PROPERTY_GROUP = "Group";
@javax.annotation.Nullable
private String group;
public static final String JSON_PROPERTY_DESCRIPTION = "Description";
@javax.annotation.Nullable
private String description;
public static final String JSON_PROPERTY_VALUE = "Value";
@javax.annotation.Nullable
private Integer value;
public MaxidataCFGBILoginV4BLLModuleType() {
}
public MaxidataCFGBILoginV4BLLModuleType ID(@javax.annotation.Nullable String ID) {
this.ID = ID;
return this;
}
/**
* Modulo ID
* @return ID
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getID() {
return ID;
}
@JsonProperty(JSON_PROPERTY_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setID(@javax.annotation.Nullable String ID) {
this.ID = ID;
}
public MaxidataCFGBILoginV4BLLModuleType group(@javax.annotation.Nullable String group) {
this.group = group;
return this;
}
/**
* Grouppo
* @return group
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GROUP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGroup() {
return group;
}
@JsonProperty(JSON_PROPERTY_GROUP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGroup(@javax.annotation.Nullable String group) {
this.group = group;
}
public MaxidataCFGBILoginV4BLLModuleType description(@javax.annotation.Nullable String description) {
this.description = description;
return this;
}
/**
* Descrizione
* @return description
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(@javax.annotation.Nullable String description) {
this.description = description;
}
public MaxidataCFGBILoginV4BLLModuleType value(@javax.annotation.Nullable Integer value) {
this.value = value;
return this;
}
/**
* Valore
* @return value
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getValue() {
return value;
}
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValue(@javax.annotation.Nullable Integer value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataCFGBILoginV4BLLModuleType maxidataCFGBILoginV4BLLModuleType = (MaxidataCFGBILoginV4BLLModuleType) o;
return Objects.equals(this.ID, maxidataCFGBILoginV4BLLModuleType.ID) &&
Objects.equals(this.group, maxidataCFGBILoginV4BLLModuleType.group) &&
Objects.equals(this.description, maxidataCFGBILoginV4BLLModuleType.description) &&
Objects.equals(this.value, maxidataCFGBILoginV4BLLModuleType.value);
}
@Override
public int hashCode() {
return Objects.hash(ID, group, description, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataCFGBILoginV4BLLModuleType {\n");
sb.append(" ID: ").append(toIndentedString(ID)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,573 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* MaxidataCFGBILoginV4BLLPayLoadType
*/
@JsonPropertyOrder({
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_EMAIL,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_PREFERRED_USERNAME,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_GIVEN_NAME,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_FAMILY_NAME,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_ALLOWED_ORIGINS,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_APPLICATION,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_USERNAME,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_AUDIENCE,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_CREATION,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_EXPIRATION,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_IDAZIENDA,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_ADMIN,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_ACTIVECODE,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_MODULES,
MaxidataCFGBILoginV4BLLPayLoadType.JSON_PROPERTY_TIMETOEXPIRATION
})
@JsonTypeName("Maxidata.CFG.BI.Login.v4.BLL.PayLoad_Type")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataCFGBILoginV4BLLPayLoadType implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_EMAIL = "email";
@javax.annotation.Nullable
private String email;
public static final String JSON_PROPERTY_PREFERRED_USERNAME = "preferred_username";
@javax.annotation.Nullable
private String preferredUsername;
public static final String JSON_PROPERTY_GIVEN_NAME = "given_name";
@javax.annotation.Nullable
private String givenName;
public static final String JSON_PROPERTY_FAMILY_NAME = "family_name";
@javax.annotation.Nullable
private String familyName;
public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowed_origins";
@javax.annotation.Nullable
private List<String> allowedOrigins = new ArrayList<>();
public static final String JSON_PROPERTY_APPLICATION = "application";
@javax.annotation.Nullable
private String application;
public static final String JSON_PROPERTY_USERNAME = "username";
@javax.annotation.Nullable
private String username;
public static final String JSON_PROPERTY_AUDIENCE = "audience";
@javax.annotation.Nullable
private String audience;
public static final String JSON_PROPERTY_CREATION = "creation";
@javax.annotation.Nullable
private LocalDateTime creation;
public static final String JSON_PROPERTY_EXPIRATION = "expiration";
@javax.annotation.Nullable
private LocalDateTime expiration;
public static final String JSON_PROPERTY_IDAZIENDA = "idazienda";
@javax.annotation.Nullable
private String idazienda;
public static final String JSON_PROPERTY_ADMIN = "admin";
@javax.annotation.Nullable
private Boolean admin;
public static final String JSON_PROPERTY_ACTIVECODE = "activecode";
@javax.annotation.Nullable
private String activecode;
public static final String JSON_PROPERTY_MODULES = "modules";
@javax.annotation.Nullable
private List<MaxidataCFGBILoginV4BLLModuleType> modules = new ArrayList<>();
public static final String JSON_PROPERTY_TIMETOEXPIRATION = "timetoexpiration";
@javax.annotation.Nullable
private Integer timetoexpiration;
public MaxidataCFGBILoginV4BLLPayLoadType() {
}
public MaxidataCFGBILoginV4BLLPayLoadType email(@javax.annotation.Nullable String email) {
this.email = email;
return this;
}
/**
* user email
* @return email
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() {
return email;
}
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmail(@javax.annotation.Nullable String email) {
this.email = email;
}
public MaxidataCFGBILoginV4BLLPayLoadType preferredUsername(@javax.annotation.Nullable String preferredUsername) {
this.preferredUsername = preferredUsername;
return this;
}
/**
* Nome utente completo
* @return preferredUsername
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PREFERRED_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPreferredUsername() {
return preferredUsername;
}
@JsonProperty(JSON_PROPERTY_PREFERRED_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPreferredUsername(@javax.annotation.Nullable String preferredUsername) {
this.preferredUsername = preferredUsername;
}
public MaxidataCFGBILoginV4BLLPayLoadType givenName(@javax.annotation.Nullable String givenName) {
this.givenName = givenName;
return this;
}
/**
* Nome proprio utente
* @return givenName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIVEN_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGivenName() {
return givenName;
}
@JsonProperty(JSON_PROPERTY_GIVEN_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGivenName(@javax.annotation.Nullable String givenName) {
this.givenName = givenName;
}
public MaxidataCFGBILoginV4BLLPayLoadType familyName(@javax.annotation.Nullable String familyName) {
this.familyName = familyName;
return this;
}
/**
* cognome utente
* @return familyName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FAMILY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFamilyName() {
return familyName;
}
@JsonProperty(JSON_PROPERTY_FAMILY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFamilyName(@javax.annotation.Nullable String familyName) {
this.familyName = familyName;
}
public MaxidataCFGBILoginV4BLLPayLoadType allowedOrigins(@javax.annotation.Nullable List<String> allowedOrigins) {
this.allowedOrigins = allowedOrigins;
return this;
}
public MaxidataCFGBILoginV4BLLPayLoadType addAllowedOriginsItem(String allowedOriginsItem) {
if (this.allowedOrigins == null) {
this.allowedOrigins = new ArrayList<>();
}
this.allowedOrigins.add(allowedOriginsItem);
return this;
}
/**
* Origini abilitate
* @return allowedOrigins
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getAllowedOrigins() {
return allowedOrigins;
}
@JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAllowedOrigins(@javax.annotation.Nullable List<String> allowedOrigins) {
this.allowedOrigins = allowedOrigins;
}
public MaxidataCFGBILoginV4BLLPayLoadType application(@javax.annotation.Nullable String application) {
this.application = application;
return this;
}
/**
* Application name
* @return application
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_APPLICATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getApplication() {
return application;
}
@JsonProperty(JSON_PROPERTY_APPLICATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setApplication(@javax.annotation.Nullable String application) {
this.application = application;
}
public MaxidataCFGBILoginV4BLLPayLoadType username(@javax.annotation.Nullable String username) {
this.username = username;
return this;
}
/**
* username
* @return username
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUsername() {
return username;
}
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUsername(@javax.annotation.Nullable String username) {
this.username = username;
}
public MaxidataCFGBILoginV4BLLPayLoadType audience(@javax.annotation.Nullable String audience) {
this.audience = audience;
return this;
}
/**
* Audience
* @return audience
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AUDIENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAudience() {
return audience;
}
@JsonProperty(JSON_PROPERTY_AUDIENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAudience(@javax.annotation.Nullable String audience) {
this.audience = audience;
}
public MaxidataCFGBILoginV4BLLPayLoadType creation(@javax.annotation.Nullable LocalDateTime creation) {
this.creation = creation;
return this;
}
/**
* data creazione del token jwt
* @return creation
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CREATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getCreation() {
return creation;
}
@JsonProperty(JSON_PROPERTY_CREATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreation(@javax.annotation.Nullable LocalDateTime creation) {
this.creation = creation;
}
public MaxidataCFGBILoginV4BLLPayLoadType expiration(@javax.annotation.Nullable LocalDateTime expiration) {
this.expiration = expiration;
return this;
}
/**
* data scadenza del token jwt
* @return expiration
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPIRATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getExpiration() {
return expiration;
}
@JsonProperty(JSON_PROPERTY_EXPIRATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiration(@javax.annotation.Nullable LocalDateTime expiration) {
this.expiration = expiration;
}
public MaxidataCFGBILoginV4BLLPayLoadType idazienda(@javax.annotation.Nullable String idazienda) {
this.idazienda = idazienda;
return this;
}
/**
* IDAzienda
* @return idazienda
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IDAZIENDA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdazienda() {
return idazienda;
}
@JsonProperty(JSON_PROPERTY_IDAZIENDA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdazienda(@javax.annotation.Nullable String idazienda) {
this.idazienda = idazienda;
}
public MaxidataCFGBILoginV4BLLPayLoadType admin(@javax.annotation.Nullable Boolean admin) {
this.admin = admin;
return this;
}
/**
* Indica se si tratta di amministratore
* @return admin
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADMIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAdmin() {
return admin;
}
@JsonProperty(JSON_PROPERTY_ADMIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdmin(@javax.annotation.Nullable Boolean admin) {
this.admin = admin;
}
public MaxidataCFGBILoginV4BLLPayLoadType activecode(@javax.annotation.Nullable String activecode) {
this.activecode = activecode;
return this;
}
/**
* Activecode
* @return activecode
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ACTIVECODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getActivecode() {
return activecode;
}
@JsonProperty(JSON_PROPERTY_ACTIVECODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setActivecode(@javax.annotation.Nullable String activecode) {
this.activecode = activecode;
}
public MaxidataCFGBILoginV4BLLPayLoadType modules(@javax.annotation.Nullable List<MaxidataCFGBILoginV4BLLModuleType> modules) {
this.modules = modules;
return this;
}
public MaxidataCFGBILoginV4BLLPayLoadType addModulesItem(MaxidataCFGBILoginV4BLLModuleType modulesItem) {
if (this.modules == null) {
this.modules = new ArrayList<>();
}
this.modules.add(modulesItem);
return this;
}
/**
* Lista di moduli attivi
* @return modules
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MODULES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<MaxidataCFGBILoginV4BLLModuleType> getModules() {
return modules;
}
@JsonProperty(JSON_PROPERTY_MODULES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setModules(@javax.annotation.Nullable List<MaxidataCFGBILoginV4BLLModuleType> modules) {
this.modules = modules;
}
public MaxidataCFGBILoginV4BLLPayLoadType timetoexpiration(@javax.annotation.Nullable Integer timetoexpiration) {
this.timetoexpiration = timetoexpiration;
return this;
}
/**
* Tempo rimanente di validita della login in (Secondi)
* @return timetoexpiration
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TIMETOEXPIRATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTimetoexpiration() {
return timetoexpiration;
}
@JsonProperty(JSON_PROPERTY_TIMETOEXPIRATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTimetoexpiration(@javax.annotation.Nullable Integer timetoexpiration) {
this.timetoexpiration = timetoexpiration;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataCFGBILoginV4BLLPayLoadType maxidataCFGBILoginV4BLLPayLoadType = (MaxidataCFGBILoginV4BLLPayLoadType) o;
return Objects.equals(this.email, maxidataCFGBILoginV4BLLPayLoadType.email) &&
Objects.equals(this.preferredUsername, maxidataCFGBILoginV4BLLPayLoadType.preferredUsername) &&
Objects.equals(this.givenName, maxidataCFGBILoginV4BLLPayLoadType.givenName) &&
Objects.equals(this.familyName, maxidataCFGBILoginV4BLLPayLoadType.familyName) &&
Objects.equals(this.allowedOrigins, maxidataCFGBILoginV4BLLPayLoadType.allowedOrigins) &&
Objects.equals(this.application, maxidataCFGBILoginV4BLLPayLoadType.application) &&
Objects.equals(this.username, maxidataCFGBILoginV4BLLPayLoadType.username) &&
Objects.equals(this.audience, maxidataCFGBILoginV4BLLPayLoadType.audience) &&
Objects.equals(this.creation, maxidataCFGBILoginV4BLLPayLoadType.creation) &&
Objects.equals(this.expiration, maxidataCFGBILoginV4BLLPayLoadType.expiration) &&
Objects.equals(this.idazienda, maxidataCFGBILoginV4BLLPayLoadType.idazienda) &&
Objects.equals(this.admin, maxidataCFGBILoginV4BLLPayLoadType.admin) &&
Objects.equals(this.activecode, maxidataCFGBILoginV4BLLPayLoadType.activecode) &&
Objects.equals(this.modules, maxidataCFGBILoginV4BLLPayLoadType.modules) &&
Objects.equals(this.timetoexpiration, maxidataCFGBILoginV4BLLPayLoadType.timetoexpiration);
}
@Override
public int hashCode() {
return Objects.hash(email, preferredUsername, givenName, familyName, allowedOrigins, application, username, audience, creation, expiration, idazienda, admin, activecode, modules, timetoexpiration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataCFGBILoginV4BLLPayLoadType {\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" preferredUsername: ").append(toIndentedString(preferredUsername)).append("\n");
sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n");
sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n");
sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n");
sb.append(" application: ").append(toIndentedString(application)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" audience: ").append(toIndentedString(audience)).append("\n");
sb.append(" creation: ").append(toIndentedString(creation)).append("\n");
sb.append(" expiration: ").append(toIndentedString(expiration)).append("\n");
sb.append(" idazienda: ").append(toIndentedString(idazienda)).append("\n");
sb.append(" admin: ").append(toIndentedString(admin)).append("\n");
sb.append(" activecode: ").append(toIndentedString(activecode)).append("\n");
sb.append(" modules: ").append(toIndentedString(modules)).append("\n");
sb.append(" timetoexpiration: ").append(toIndentedString(timetoexpiration)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,239 @@
/*
* Autenticazione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V4-R1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Objects;
/**
* MaxidataLibrerie2WebServicesRestAPIErrorException
*/
@JsonPropertyOrder({
MaxidataLibrerie2WebServicesRestAPIErrorException.JSON_PROPERTY_ERROR_CODE,
MaxidataLibrerie2WebServicesRestAPIErrorException.JSON_PROPERTY_ERROR_NAME,
MaxidataLibrerie2WebServicesRestAPIErrorException.JSON_PROPERTY_ERROR_MESSAGE,
MaxidataLibrerie2WebServicesRestAPIErrorException.JSON_PROPERTY_ERROR_STACK_TRACE,
MaxidataLibrerie2WebServicesRestAPIErrorException.JSON_PROPERTY_ERROR_INNER
})
@JsonTypeName("Maxidata.Librerie2.WebServices.RestAPI.ErrorException")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:19.438917900+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataLibrerie2WebServicesRestAPIErrorException implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
@javax.annotation.Nullable
private Integer errorCode;
public static final String JSON_PROPERTY_ERROR_NAME = "errorName";
@javax.annotation.Nullable
private String errorName;
public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage";
@javax.annotation.Nullable
private String errorMessage;
public static final String JSON_PROPERTY_ERROR_STACK_TRACE = "errorStackTrace";
@javax.annotation.Nullable
private String errorStackTrace;
public static final String JSON_PROPERTY_ERROR_INNER = "errorInner";
@javax.annotation.Nullable
private MaxidataLibrerie2WebServicesRestAPIErrorException errorInner;
public MaxidataLibrerie2WebServicesRestAPIErrorException() {
}
public MaxidataLibrerie2WebServicesRestAPIErrorException errorCode(@javax.annotation.Nullable Integer errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
*
* @return errorCode
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ERROR_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getErrorCode() {
return errorCode;
}
@JsonProperty(JSON_PROPERTY_ERROR_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorCode(@javax.annotation.Nullable Integer errorCode) {
this.errorCode = errorCode;
}
public MaxidataLibrerie2WebServicesRestAPIErrorException errorName(@javax.annotation.Nullable String errorName) {
this.errorName = errorName;
return this;
}
/**
* Get errorName
*
* @return errorName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ERROR_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getErrorName() {
return errorName;
}
@JsonProperty(JSON_PROPERTY_ERROR_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorName(@javax.annotation.Nullable String errorName) {
this.errorName = errorName;
}
public MaxidataLibrerie2WebServicesRestAPIErrorException errorMessage(@javax.annotation.Nullable String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* Get errorMessage
*
* @return errorMessage
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getErrorMessage() {
return errorMessage;
}
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorMessage(@javax.annotation.Nullable String errorMessage) {
this.errorMessage = errorMessage;
}
public MaxidataLibrerie2WebServicesRestAPIErrorException errorStackTrace(@javax.annotation.Nullable String errorStackTrace) {
this.errorStackTrace = errorStackTrace;
return this;
}
/**
* Get errorStackTrace
*
* @return errorStackTrace
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ERROR_STACK_TRACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getErrorStackTrace() {
return errorStackTrace;
}
@JsonProperty(JSON_PROPERTY_ERROR_STACK_TRACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorStackTrace(@javax.annotation.Nullable String errorStackTrace) {
this.errorStackTrace = errorStackTrace;
}
public MaxidataLibrerie2WebServicesRestAPIErrorException errorInner(@javax.annotation.Nullable MaxidataLibrerie2WebServicesRestAPIErrorException errorInner) {
this.errorInner = errorInner;
return this;
}
/**
* Get errorInner
*
* @return errorInner
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ERROR_INNER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MaxidataLibrerie2WebServicesRestAPIErrorException getErrorInner() {
return errorInner;
}
@JsonProperty(JSON_PROPERTY_ERROR_INNER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrorInner(@javax.annotation.Nullable MaxidataLibrerie2WebServicesRestAPIErrorException errorInner) {
this.errorInner = errorInner;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataLibrerie2WebServicesRestAPIErrorException maxidataLibrerie2WebServicesRestAPIErrorException = (MaxidataLibrerie2WebServicesRestAPIErrorException) o;
return Objects.equals(this.errorCode, maxidataLibrerie2WebServicesRestAPIErrorException.errorCode) &&
Objects.equals(this.errorName, maxidataLibrerie2WebServicesRestAPIErrorException.errorName) &&
Objects.equals(this.errorMessage, maxidataLibrerie2WebServicesRestAPIErrorException.errorMessage) &&
Objects.equals(this.errorStackTrace, maxidataLibrerie2WebServicesRestAPIErrorException.errorStackTrace) &&
Objects.equals(this.errorInner, maxidataLibrerie2WebServicesRestAPIErrorException.errorInner);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, errorName, errorMessage, errorStackTrace, errorInner);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataLibrerie2WebServicesRestAPIErrorException {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" errorName: ").append(toIndentedString(errorName)).append("\n");
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
sb.append(" errorStackTrace: ").append(toIndentedString(errorStackTrace)).append("\n");
sb.append(" errorInner: ").append(toIndentedString(errorInner)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,239 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLDettaglio
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLDettaglio.JSON_PROPERTY_ID_CAMPO,
MaxidataUveBII40V2BLLDettaglio.JSON_PROPERTY_TIPO,
MaxidataUveBII40V2BLLDettaglio.JSON_PROPERTY_DESCRIZIONE,
MaxidataUveBII40V2BLLDettaglio.JSON_PROPERTY_FILE_NAME,
MaxidataUveBII40V2BLLDettaglio.JSON_PROPERTY_VALORE
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.Dettaglio")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLDettaglio implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_CAMPO = "IDCampo";
@javax.annotation.Nullable
private String idCampo;
public static final String JSON_PROPERTY_TIPO = "Tipo";
@javax.annotation.Nullable
private String tipo;
public static final String JSON_PROPERTY_DESCRIZIONE = "Descrizione";
@javax.annotation.Nullable
private String descrizione;
public static final String JSON_PROPERTY_FILE_NAME = "FileName";
@javax.annotation.Nullable
private String fileName;
public static final String JSON_PROPERTY_VALORE = "Valore";
@javax.annotation.Nullable
private String valore;
public MaxidataUveBII40V2BLLDettaglio() {
}
public MaxidataUveBII40V2BLLDettaglio idCampo(@javax.annotation.Nullable String idCampo) {
this.idCampo = idCampo;
return this;
}
/**
* Codice Campo dettaglio
*
* @return idCampo
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_CAMPO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdCampo() {
return idCampo;
}
@JsonProperty(JSON_PROPERTY_ID_CAMPO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdCampo(@javax.annotation.Nullable String idCampo) {
this.idCampo = idCampo;
}
public MaxidataUveBII40V2BLLDettaglio tipo(@javax.annotation.Nullable String tipo) {
this.tipo = tipo;
return this;
}
/**
* Tipo di dato
*
* @return tipo
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TIPO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTipo() {
return tipo;
}
@JsonProperty(JSON_PROPERTY_TIPO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTipo(@javax.annotation.Nullable String tipo) {
this.tipo = tipo;
}
public MaxidataUveBII40V2BLLDettaglio descrizione(@javax.annotation.Nullable String descrizione) {
this.descrizione = descrizione;
return this;
}
/**
* Descrizione Campo dettaglio
*
* @return descrizione
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESCRIZIONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescrizione() {
return descrizione;
}
@JsonProperty(JSON_PROPERTY_DESCRIZIONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescrizione(@javax.annotation.Nullable String descrizione) {
this.descrizione = descrizione;
}
public MaxidataUveBII40V2BLLDettaglio fileName(@javax.annotation.Nullable String fileName) {
this.fileName = fileName;
return this;
}
/**
* Nome file
*
* @return fileName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FILE_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFileName() {
return fileName;
}
@JsonProperty(JSON_PROPERTY_FILE_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFileName(@javax.annotation.Nullable String fileName) {
this.fileName = fileName;
}
public MaxidataUveBII40V2BLLDettaglio valore(@javax.annotation.Nullable String valore) {
this.valore = valore;
return this;
}
/**
* Valore Campo dettaglio
*
* @return valore
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VALORE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getValore() {
return valore;
}
@JsonProperty(JSON_PROPERTY_VALORE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValore(@javax.annotation.Nullable String valore) {
this.valore = valore;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLDettaglio maxidataUveBII40V2BLLDettaglio = (MaxidataUveBII40V2BLLDettaglio) o;
return Objects.equals(this.idCampo, maxidataUveBII40V2BLLDettaglio.idCampo) &&
Objects.equals(this.tipo, maxidataUveBII40V2BLLDettaglio.tipo) &&
Objects.equals(this.descrizione, maxidataUveBII40V2BLLDettaglio.descrizione) &&
Objects.equals(this.fileName, maxidataUveBII40V2BLLDettaglio.fileName) &&
Objects.equals(this.valore, maxidataUveBII40V2BLLDettaglio.valore);
}
@Override
public int hashCode() {
return Objects.hash(idCampo, tipo, descrizione, fileName, valore);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLDettaglio {\n");
sb.append(" idCampo: ").append(toIndentedString(idCampo)).append("\n");
sb.append(" tipo: ").append(toIndentedString(tipo)).append("\n");
sb.append(" descrizione: ").append(toIndentedString(descrizione)).append("\n");
sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n");
sb.append(" valore: ").append(toIndentedString(valore)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,306 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLMESComponenti
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_ID_COMP,
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_DESCRIZIONE,
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_QUANTITA,
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_SFRIDI,
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_LOTTO,
MaxidataUveBII40V2BLLMESComponenti.JSON_PROPERTY_ID_FOR_LOTTO
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.MES_Componenti")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLMESComponenti implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_ID_COMP = "IDComp";
@javax.annotation.Nullable
private String idComp;
public static final String JSON_PROPERTY_DESCRIZIONE = "Descrizione";
@javax.annotation.Nullable
private String descrizione;
public static final String JSON_PROPERTY_QUANTITA = "Quantita";
@javax.annotation.Nullable
private BigDecimal quantita;
public static final String JSON_PROPERTY_SFRIDI = "Sfridi";
@javax.annotation.Nullable
private BigDecimal sfridi;
public static final String JSON_PROPERTY_LOTTO = "Lotto";
@javax.annotation.Nullable
private String lotto;
public static final String JSON_PROPERTY_ID_FOR_LOTTO = "IDForLotto";
@javax.annotation.Nullable
private Integer idForLotto;
public MaxidataUveBII40V2BLLMESComponenti() {
}
public MaxidataUveBII40V2BLLMESComponenti idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLMESComponenti idComp(@javax.annotation.Nullable String idComp) {
this.idComp = idComp;
return this;
}
/**
* ID Componente
*
* @return idComp
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_COMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdComp() {
return idComp;
}
@JsonProperty(JSON_PROPERTY_ID_COMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdComp(@javax.annotation.Nullable String idComp) {
this.idComp = idComp;
}
public MaxidataUveBII40V2BLLMESComponenti descrizione(@javax.annotation.Nullable String descrizione) {
this.descrizione = descrizione;
return this;
}
/**
* Descrizione Componente
*
* @return descrizione
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESCRIZIONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescrizione() {
return descrizione;
}
@JsonProperty(JSON_PROPERTY_DESCRIZIONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescrizione(@javax.annotation.Nullable String descrizione) {
this.descrizione = descrizione;
}
public MaxidataUveBII40V2BLLMESComponenti quantita(@javax.annotation.Nullable BigDecimal quantita) {
this.quantita = quantita;
return this;
}
/**
* Quantità da utilizzare
*
* @return quantita
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QUANTITA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getQuantita() {
return quantita;
}
@JsonProperty(JSON_PROPERTY_QUANTITA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQuantita(@javax.annotation.Nullable BigDecimal quantita) {
this.quantita = quantita;
}
public MaxidataUveBII40V2BLLMESComponenti sfridi(@javax.annotation.Nullable BigDecimal sfridi) {
this.sfridi = sfridi;
return this;
}
/**
* Numero Bottiglie Scartate (Pezzi)
*
* @return sfridi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SFRIDI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getSfridi() {
return sfridi;
}
@JsonProperty(JSON_PROPERTY_SFRIDI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSfridi(@javax.annotation.Nullable BigDecimal sfridi) {
this.sfridi = sfridi;
}
public MaxidataUveBII40V2BLLMESComponenti lotto(@javax.annotation.Nullable String lotto) {
this.lotto = lotto;
return this;
}
/**
* Lotto da utilizzare
*
* @return lotto
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLotto() {
return lotto;
}
@JsonProperty(JSON_PROPERTY_LOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLotto(@javax.annotation.Nullable String lotto) {
this.lotto = lotto;
}
public MaxidataUveBII40V2BLLMESComponenti idForLotto(@javax.annotation.Nullable Integer idForLotto) {
this.idForLotto = idForLotto;
return this;
}
/**
* Fornitore del Lotto da utilizzare
*
* @return idForLotto
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_FOR_LOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getIdForLotto() {
return idForLotto;
}
@JsonProperty(JSON_PROPERTY_ID_FOR_LOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdForLotto(@javax.annotation.Nullable Integer idForLotto) {
this.idForLotto = idForLotto;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLMESComponenti maxidataUveBII40V2BLLMESComponenti = (MaxidataUveBII40V2BLLMESComponenti) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLMESComponenti.idSchedaProd) &&
Objects.equals(this.idComp, maxidataUveBII40V2BLLMESComponenti.idComp) &&
Objects.equals(this.descrizione, maxidataUveBII40V2BLLMESComponenti.descrizione) &&
Objects.equals(this.quantita, maxidataUveBII40V2BLLMESComponenti.quantita) &&
Objects.equals(this.sfridi, maxidataUveBII40V2BLLMESComponenti.sfridi) &&
Objects.equals(this.lotto, maxidataUveBII40V2BLLMESComponenti.lotto) &&
Objects.equals(this.idForLotto, maxidataUveBII40V2BLLMESComponenti.idForLotto);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, idComp, descrizione, quantita, sfridi, lotto, idForLotto);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLMESComponenti {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" idComp: ").append(toIndentedString(idComp)).append("\n");
sb.append(" descrizione: ").append(toIndentedString(descrizione)).append("\n");
sb.append(" quantita: ").append(toIndentedString(quantita)).append("\n");
sb.append(" sfridi: ").append(toIndentedString(sfridi)).append("\n");
sb.append(" lotto: ").append(toIndentedString(lotto)).append("\n");
sb.append(" idForLotto: ").append(toIndentedString(idForLotto)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,273 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLMESPallet
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLMESPallet.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLMESPallet.JSON_PROPERTY_DATA_PALLET,
MaxidataUveBII40V2BLLMESPallet.JSON_PROPERTY_PROGRESSIVO,
MaxidataUveBII40V2BLLMESPallet.JSON_PROPERTY_QTA_PEZZI,
MaxidataUveBII40V2BLLMESPallet.JSON_PROPERTY_QTA_IMBALLI,
MaxidataUveBII40V2BLLMESPallet.JSON_PROPERTY_COPIE
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.MES_Pallet")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLMESPallet implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_DATA_PALLET = "DataPallet";
@javax.annotation.Nullable
private LocalDateTime dataPallet;
public static final String JSON_PROPERTY_PROGRESSIVO = "Progressivo";
@javax.annotation.Nullable
private Integer progressivo;
public static final String JSON_PROPERTY_QTA_PEZZI = "QtaPezzi";
@javax.annotation.Nullable
private Integer qtaPezzi;
public static final String JSON_PROPERTY_QTA_IMBALLI = "QtaImballi";
@javax.annotation.Nullable
private Integer qtaImballi;
public static final String JSON_PROPERTY_COPIE = "Copie";
@javax.annotation.Nullable
private Integer copie;
public MaxidataUveBII40V2BLLMESPallet() {
}
public MaxidataUveBII40V2BLLMESPallet idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLMESPallet dataPallet(@javax.annotation.Nullable LocalDateTime dataPallet) {
this.dataPallet = dataPallet;
return this;
}
/**
* Datetime di effettiva preparazione del pallet
*
* @return dataPallet
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataPallet() {
return dataPallet;
}
@JsonProperty(JSON_PROPERTY_DATA_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataPallet(@javax.annotation.Nullable LocalDateTime dataPallet) {
this.dataPallet = dataPallet;
}
public MaxidataUveBII40V2BLLMESPallet progressivo(@javax.annotation.Nullable Integer progressivo) {
this.progressivo = progressivo;
return this;
}
/**
* Numero progressivo, solo riferimento interno (NON è il numero SSCC)
*
* @return progressivo
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROGRESSIVO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getProgressivo() {
return progressivo;
}
@JsonProperty(JSON_PROPERTY_PROGRESSIVO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProgressivo(@javax.annotation.Nullable Integer progressivo) {
this.progressivo = progressivo;
}
public MaxidataUveBII40V2BLLMESPallet qtaPezzi(@javax.annotation.Nullable Integer qtaPezzi) {
this.qtaPezzi = qtaPezzi;
return this;
}
/**
* Numero Bottiglie sul Pallet (Pezzi)
*
* @return qtaPezzi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_PEZZI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaPezzi() {
return qtaPezzi;
}
@JsonProperty(JSON_PROPERTY_QTA_PEZZI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaPezzi(@javax.annotation.Nullable Integer qtaPezzi) {
this.qtaPezzi = qtaPezzi;
}
public MaxidataUveBII40V2BLLMESPallet qtaImballi(@javax.annotation.Nullable Integer qtaImballi) {
this.qtaImballi = qtaImballi;
return this;
}
/**
* Numero Imballi sul Pallet (Cartoni)
*
* @return qtaImballi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_IMBALLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaImballi() {
return qtaImballi;
}
@JsonProperty(JSON_PROPERTY_QTA_IMBALLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaImballi(@javax.annotation.Nullable Integer qtaImballi) {
this.qtaImballi = qtaImballi;
}
public MaxidataUveBII40V2BLLMESPallet copie(@javax.annotation.Nullable Integer copie) {
this.copie = copie;
return this;
}
/**
* Coipe di etichette da stampare
*
* @return copie
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COPIE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCopie() {
return copie;
}
@JsonProperty(JSON_PROPERTY_COPIE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCopie(@javax.annotation.Nullable Integer copie) {
this.copie = copie;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLMESPallet maxidataUveBII40V2BLLMESPallet = (MaxidataUveBII40V2BLLMESPallet) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLMESPallet.idSchedaProd) &&
Objects.equals(this.dataPallet, maxidataUveBII40V2BLLMESPallet.dataPallet) &&
Objects.equals(this.progressivo, maxidataUveBII40V2BLLMESPallet.progressivo) &&
Objects.equals(this.qtaPezzi, maxidataUveBII40V2BLLMESPallet.qtaPezzi) &&
Objects.equals(this.qtaImballi, maxidataUveBII40V2BLLMESPallet.qtaImballi) &&
Objects.equals(this.copie, maxidataUveBII40V2BLLMESPallet.copie);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, dataPallet, progressivo, qtaPezzi, qtaImballi, copie);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLMESPallet {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" dataPallet: ").append(toIndentedString(dataPallet)).append("\n");
sb.append(" progressivo: ").append(toIndentedString(progressivo)).append("\n");
sb.append(" qtaPezzi: ").append(toIndentedString(qtaPezzi)).append("\n");
sb.append(" qtaImballi: ").append(toIndentedString(qtaImballi)).append("\n");
sb.append(" copie: ").append(toIndentedString(copie)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,174 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLMESPalletConfermati
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLMESPalletConfermati.JSON_PROPERTY_DATA_CONFERMA,
MaxidataUveBII40V2BLLMESPalletConfermati.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLMESPalletConfermati.JSON_PROPERTY_I_D_S_S_C_C
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.MES_PalletConfermati")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLMESPalletConfermati implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_DATA_CONFERMA = "DataConferma";
@javax.annotation.Nullable
private LocalDateTime dataConferma;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_I_D_S_S_C_C = "IDSSCC";
@javax.annotation.Nullable
private String IDSSCC;
public MaxidataUveBII40V2BLLMESPalletConfermati() {
}
public MaxidataUveBII40V2BLLMESPalletConfermati dataConferma(@javax.annotation.Nullable LocalDateTime dataConferma) {
this.dataConferma = dataConferma;
return this;
}
/**
* Data conferma da parte del MES
*
* @return dataConferma
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_CONFERMA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataConferma() {
return dataConferma;
}
@JsonProperty(JSON_PROPERTY_DATA_CONFERMA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataConferma(@javax.annotation.Nullable LocalDateTime dataConferma) {
this.dataConferma = dataConferma;
}
public MaxidataUveBII40V2BLLMESPalletConfermati idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLMESPalletConfermati IDSSCC(@javax.annotation.Nullable String IDSSCC) {
this.IDSSCC = IDSSCC;
return this;
}
/**
* Numero SSCC
*
* @return IDSSCC
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_I_D_S_S_C_C)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIDSSCC() {
return IDSSCC;
}
@JsonProperty(JSON_PROPERTY_I_D_S_S_C_C)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIDSSCC(@javax.annotation.Nullable String IDSSCC) {
this.IDSSCC = IDSSCC;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLMESPalletConfermati maxidataUveBII40V2BLLMESPalletConfermati = (MaxidataUveBII40V2BLLMESPalletConfermati) o;
return Objects.equals(this.dataConferma, maxidataUveBII40V2BLLMESPalletConfermati.dataConferma) &&
Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLMESPalletConfermati.idSchedaProd) &&
Objects.equals(this.IDSSCC, maxidataUveBII40V2BLLMESPalletConfermati.IDSSCC);
}
@Override
public int hashCode() {
return Objects.hash(dataConferma, idSchedaProd, IDSSCC);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLMESPalletConfermati {\n");
sb.append(" dataConferma: ").append(toIndentedString(dataConferma)).append("\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" IDSSCC: ").append(toIndentedString(IDSSCC)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,513 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLMESProduzioni
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_DATA_AGGIORNAMENTO,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_DATA_PROD_SCELTA,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_LOTTO_PROD,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_DATA_PROD_INIZIO,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_DATA_PROD_FINE,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_QTA_LITRI,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_QTA_PEZZI,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_QTA_IMBALLI,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_INCOMPLETA,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_QTA_SFRIDI,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_DATA_RIAPERTURA,
MaxidataUveBII40V2BLLMESProduzioni.JSON_PROPERTY_COMPONENTI
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.MES_Produzioni")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLMESProduzioni implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_DATA_AGGIORNAMENTO = "DataAggiornamento";
@javax.annotation.Nullable
private LocalDateTime dataAggiornamento;
public static final String JSON_PROPERTY_DATA_PROD_SCELTA = "DataProdScelta";
@javax.annotation.Nullable
private LocalDateTime dataProdScelta;
public static final String JSON_PROPERTY_LOTTO_PROD = "LottoProd";
@javax.annotation.Nullable
private String lottoProd;
public static final String JSON_PROPERTY_DATA_PROD_INIZIO = "DataProdInizio";
@javax.annotation.Nullable
private LocalDateTime dataProdInizio;
public static final String JSON_PROPERTY_DATA_PROD_FINE = "DataProdFine";
@javax.annotation.Nullable
private LocalDateTime dataProdFine;
public static final String JSON_PROPERTY_QTA_LITRI = "QtaLitri";
@javax.annotation.Nullable
private BigDecimal qtaLitri;
public static final String JSON_PROPERTY_QTA_PEZZI = "QtaPezzi";
@javax.annotation.Nullable
private Integer qtaPezzi;
public static final String JSON_PROPERTY_QTA_IMBALLI = "QtaImballi";
@javax.annotation.Nullable
private Integer qtaImballi;
public static final String JSON_PROPERTY_INCOMPLETA = "Incompleta";
@javax.annotation.Nullable
private Boolean incompleta;
public static final String JSON_PROPERTY_QTA_SFRIDI = "QtaSfridi";
@javax.annotation.Nullable
private Integer qtaSfridi;
public static final String JSON_PROPERTY_DATA_RIAPERTURA = "DataRiapertura";
@javax.annotation.Nullable
private LocalDateTime dataRiapertura;
public static final String JSON_PROPERTY_COMPONENTI = "Componenti";
@javax.annotation.Nullable
private List<MaxidataUveBII40V2BLLMESComponenti> componenti = new ArrayList<>();
public MaxidataUveBII40V2BLLMESProduzioni() {
}
public MaxidataUveBII40V2BLLMESProduzioni idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLMESProduzioni dataAggiornamento(@javax.annotation.Nullable LocalDateTime dataAggiornamento) {
this.dataAggiornamento = dataAggiornamento;
return this;
}
/**
* Datetime dellultimo aggiornamento del record
*
* @return dataAggiornamento
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_AGGIORNAMENTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataAggiornamento() {
return dataAggiornamento;
}
@JsonProperty(JSON_PROPERTY_DATA_AGGIORNAMENTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataAggiornamento(@javax.annotation.Nullable LocalDateTime dataAggiornamento) {
this.dataAggiornamento = dataAggiornamento;
}
public MaxidataUveBII40V2BLLMESProduzioni dataProdScelta(@javax.annotation.Nullable LocalDateTime dataProdScelta) {
this.dataProdScelta = dataProdScelta;
return this;
}
/**
* Datetime di scelta produzione (prima di attrezzaggio)
*
* @return dataProdScelta
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_PROD_SCELTA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataProdScelta() {
return dataProdScelta;
}
@JsonProperty(JSON_PROPERTY_DATA_PROD_SCELTA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataProdScelta(@javax.annotation.Nullable LocalDateTime dataProdScelta) {
this.dataProdScelta = dataProdScelta;
}
public MaxidataUveBII40V2BLLMESProduzioni lottoProd(@javax.annotation.Nullable String lottoProd) {
this.lottoProd = lottoProd;
return this;
}
/**
* Lotto effettivo prodotto
*
* @return lottoProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LOTTO_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLottoProd() {
return lottoProd;
}
@JsonProperty(JSON_PROPERTY_LOTTO_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLottoProd(@javax.annotation.Nullable String lottoProd) {
this.lottoProd = lottoProd;
}
public MaxidataUveBII40V2BLLMESProduzioni dataProdInizio(@javax.annotation.Nullable LocalDateTime dataProdInizio) {
this.dataProdInizio = dataProdInizio;
return this;
}
/**
* Datetime di inizio effettivo produzione
*
* @return dataProdInizio
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_PROD_INIZIO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataProdInizio() {
return dataProdInizio;
}
@JsonProperty(JSON_PROPERTY_DATA_PROD_INIZIO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataProdInizio(@javax.annotation.Nullable LocalDateTime dataProdInizio) {
this.dataProdInizio = dataProdInizio;
}
public MaxidataUveBII40V2BLLMESProduzioni dataProdFine(@javax.annotation.Nullable LocalDateTime dataProdFine) {
this.dataProdFine = dataProdFine;
return this;
}
/**
* Datetime di fine effettiva produzione
*
* @return dataProdFine
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_PROD_FINE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataProdFine() {
return dataProdFine;
}
@JsonProperty(JSON_PROPERTY_DATA_PROD_FINE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataProdFine(@javax.annotation.Nullable LocalDateTime dataProdFine) {
this.dataProdFine = dataProdFine;
}
public MaxidataUveBII40V2BLLMESProduzioni qtaLitri(@javax.annotation.Nullable BigDecimal qtaLitri) {
this.qtaLitri = qtaLitri;
return this;
}
/**
* Quantità litri da produrre
*
* @return qtaLitri
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_LITRI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getQtaLitri() {
return qtaLitri;
}
@JsonProperty(JSON_PROPERTY_QTA_LITRI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaLitri(@javax.annotation.Nullable BigDecimal qtaLitri) {
this.qtaLitri = qtaLitri;
}
public MaxidataUveBII40V2BLLMESProduzioni qtaPezzi(@javax.annotation.Nullable Integer qtaPezzi) {
this.qtaPezzi = qtaPezzi;
return this;
}
/**
* Numero Totale Bottiglie Prodotte (Pezzi)
*
* @return qtaPezzi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_PEZZI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaPezzi() {
return qtaPezzi;
}
@JsonProperty(JSON_PROPERTY_QTA_PEZZI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaPezzi(@javax.annotation.Nullable Integer qtaPezzi) {
this.qtaPezzi = qtaPezzi;
}
public MaxidataUveBII40V2BLLMESProduzioni qtaImballi(@javax.annotation.Nullable Integer qtaImballi) {
this.qtaImballi = qtaImballi;
return this;
}
/**
* Numero Totale Imballi Confezionati (Cartoni)
*
* @return qtaImballi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_IMBALLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaImballi() {
return qtaImballi;
}
@JsonProperty(JSON_PROPERTY_QTA_IMBALLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaImballi(@javax.annotation.Nullable Integer qtaImballi) {
this.qtaImballi = qtaImballi;
}
public MaxidataUveBII40V2BLLMESProduzioni incompleta(@javax.annotation.Nullable Boolean incompleta) {
this.incompleta = incompleta;
return this;
}
/**
* Flag produzione “Incompleta” (valori 0/1)
*
* @return incompleta
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INCOMPLETA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIncompleta() {
return incompleta;
}
@JsonProperty(JSON_PROPERTY_INCOMPLETA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIncompleta(@javax.annotation.Nullable Boolean incompleta) {
this.incompleta = incompleta;
}
public MaxidataUveBII40V2BLLMESProduzioni qtaSfridi(@javax.annotation.Nullable Integer qtaSfridi) {
this.qtaSfridi = qtaSfridi;
return this;
}
/**
* Numero Bottiglie Scartate (Pezzi)
* @return qtaSfridi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_SFRIDI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaSfridi() {
return qtaSfridi;
}
@JsonProperty(JSON_PROPERTY_QTA_SFRIDI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaSfridi(@javax.annotation.Nullable Integer qtaSfridi) {
this.qtaSfridi = qtaSfridi;
}
public MaxidataUveBII40V2BLLMESProduzioni dataRiapertura(@javax.annotation.Nullable LocalDateTime dataRiapertura) {
this.dataRiapertura = dataRiapertura;
return this;
}
/**
* Data prevista riapertura Nuova Scheda, indicata dal MES (se DataRiapertura &#x3D; Null, set DataRiapertura &#x3D; DataProdFine + 1gg)
*
* @return dataRiapertura
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_RIAPERTURA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataRiapertura() {
return dataRiapertura;
}
@JsonProperty(JSON_PROPERTY_DATA_RIAPERTURA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataRiapertura(@javax.annotation.Nullable LocalDateTime dataRiapertura) {
this.dataRiapertura = dataRiapertura;
}
public MaxidataUveBII40V2BLLMESProduzioni componenti(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLMESComponenti> componenti) {
this.componenti = componenti;
return this;
}
public MaxidataUveBII40V2BLLMESProduzioni addComponentiItem(MaxidataUveBII40V2BLLMESComponenti componentiItem) {
if (this.componenti == null) {
this.componenti = new ArrayList<>();
}
this.componenti.add(componentiItem);
return this;
}
/**
* Elenco componneti utilizzati
* @return componenti
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMPONENTI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<MaxidataUveBII40V2BLLMESComponenti> getComponenti() {
return componenti;
}
@JsonProperty(JSON_PROPERTY_COMPONENTI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComponenti(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLMESComponenti> componenti) {
this.componenti = componenti;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLMESProduzioni maxidataUveBII40V2BLLMESProduzioni = (MaxidataUveBII40V2BLLMESProduzioni) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLMESProduzioni.idSchedaProd) &&
Objects.equals(this.dataAggiornamento, maxidataUveBII40V2BLLMESProduzioni.dataAggiornamento) &&
Objects.equals(this.dataProdScelta, maxidataUveBII40V2BLLMESProduzioni.dataProdScelta) &&
Objects.equals(this.lottoProd, maxidataUveBII40V2BLLMESProduzioni.lottoProd) &&
Objects.equals(this.dataProdInizio, maxidataUveBII40V2BLLMESProduzioni.dataProdInizio) &&
Objects.equals(this.dataProdFine, maxidataUveBII40V2BLLMESProduzioni.dataProdFine) &&
Objects.equals(this.qtaLitri, maxidataUveBII40V2BLLMESProduzioni.qtaLitri) &&
Objects.equals(this.qtaPezzi, maxidataUveBII40V2BLLMESProduzioni.qtaPezzi) &&
Objects.equals(this.qtaImballi, maxidataUveBII40V2BLLMESProduzioni.qtaImballi) &&
Objects.equals(this.incompleta, maxidataUveBII40V2BLLMESProduzioni.incompleta) &&
Objects.equals(this.qtaSfridi, maxidataUveBII40V2BLLMESProduzioni.qtaSfridi) &&
Objects.equals(this.dataRiapertura, maxidataUveBII40V2BLLMESProduzioni.dataRiapertura) &&
Objects.equals(this.componenti, maxidataUveBII40V2BLLMESProduzioni.componenti);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, dataAggiornamento, dataProdScelta, lottoProd, dataProdInizio, dataProdFine, qtaLitri, qtaPezzi, qtaImballi, incompleta, qtaSfridi, dataRiapertura, componenti);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLMESProduzioni {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" dataAggiornamento: ").append(toIndentedString(dataAggiornamento)).append("\n");
sb.append(" dataProdScelta: ").append(toIndentedString(dataProdScelta)).append("\n");
sb.append(" lottoProd: ").append(toIndentedString(lottoProd)).append("\n");
sb.append(" dataProdInizio: ").append(toIndentedString(dataProdInizio)).append("\n");
sb.append(" dataProdFine: ").append(toIndentedString(dataProdFine)).append("\n");
sb.append(" qtaLitri: ").append(toIndentedString(qtaLitri)).append("\n");
sb.append(" qtaPezzi: ").append(toIndentedString(qtaPezzi)).append("\n");
sb.append(" qtaImballi: ").append(toIndentedString(qtaImballi)).append("\n");
sb.append(" incompleta: ").append(toIndentedString(incompleta)).append("\n");
sb.append(" qtaSfridi: ").append(toIndentedString(qtaSfridi)).append("\n");
sb.append(" dataRiapertura: ").append(toIndentedString(dataRiapertura)).append("\n");
sb.append(" componenti: ").append(toIndentedString(componenti)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,56 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
/**
* Gets or Sets Maxidata.Uve.BI.I40.V2.BLL.MotivoProd_Enum
*/
public enum MaxidataUveBII40V2BLLMotivoProdEnum implements Serializable {
PER_SCORTA("PerScorta"),
PER_ORDINE("PerOrdine");
private String value;
MaxidataUveBII40V2BLLMotivoProdEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static MaxidataUveBII40V2BLLMotivoProdEnum fromValue(String value) {
for (MaxidataUveBII40V2BLLMotivoProdEnum b : MaxidataUveBII40V2BLLMotivoProdEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

View File

@@ -0,0 +1,62 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
/**
* Gets or Sets Maxidata.Uve.BI.I40.V2.BLL.StatoFind_Enum
*/
public enum MaxidataUveBII40V2BLLStatoFindEnum implements Serializable {
DA_INVIARE("DaInviare"),
INVIATE("Inviate"),
IN_CORSO("InCorso"),
SOSPESA("Sospesa"),
TERMINATA("Terminata");
private String value;
MaxidataUveBII40V2BLLStatoFindEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static MaxidataUveBII40V2BLLStatoFindEnum fromValue(String value) {
for (MaxidataUveBII40V2BLLStatoFindEnum b : MaxidataUveBII40V2BLLStatoFindEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

View File

@@ -0,0 +1,64 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
/**
* Gets or Sets Maxidata.Uve.BI.I40.V2.BLL.StatoProd_Enum
*/
public enum MaxidataUveBII40V2BLLStatoProdEnum implements Serializable {
INSERITA("Inserita"),
IN_ATTESA("InAttesa"),
IN_CORSO("InCorso"),
SOSPESA("Sospesa"),
TERMINATA("Terminata"),
EVASA("Evasa");
private String value;
MaxidataUveBII40V2BLLStatoProdEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static MaxidataUveBII40V2BLLStatoProdEnum fromValue(String value) {
for (MaxidataUveBII40V2BLLStatoProdEnum b : MaxidataUveBII40V2BLLStatoProdEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

View File

@@ -0,0 +1,60 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
/**
* Gets or Sets Maxidata.Uve.BI.I40.V2.BLL.TipoProd_Enum
*/
public enum MaxidataUveBII40V2BLLTipoProdEnum implements Serializable {
IMBOTTIGLIAMENTO("Imbottigliamento"),
STOCCAGGIO("Stoccaggio"),
CONFEZIONAMENTO("Confezionamento"),
FASCETTATURA("Fascettatura");
private String value;
MaxidataUveBII40V2BLLTipoProdEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static MaxidataUveBII40V2BLLTipoProdEnum fromValue(String value) {
for (MaxidataUveBII40V2BLLTipoProdEnum b : MaxidataUveBII40V2BLLTipoProdEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

View File

@@ -0,0 +1,250 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLUVE2kComponenti
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLUVE2kComponenti.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLUVE2kComponenti.JSON_PROPERTY_ID_COMP,
MaxidataUveBII40V2BLLUVE2kComponenti.JSON_PROPERTY_DESCRIZIONE,
MaxidataUveBII40V2BLLUVE2kComponenti.JSON_PROPERTY_QUANTITA,
MaxidataUveBII40V2BLLUVE2kComponenti.JSON_PROPERTY_DETTAGLI
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.UVE2k_Componenti")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLUVE2kComponenti implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_ID_COMP = "IDComp";
@javax.annotation.Nullable
private String idComp;
public static final String JSON_PROPERTY_DESCRIZIONE = "Descrizione";
@javax.annotation.Nullable
private String descrizione;
public static final String JSON_PROPERTY_QUANTITA = "Quantita";
@javax.annotation.Nullable
private BigDecimal quantita;
public static final String JSON_PROPERTY_DETTAGLI = "Dettagli";
@javax.annotation.Nullable
private List<MaxidataUveBII40V2BLLDettaglio> dettagli = new ArrayList<>();
public MaxidataUveBII40V2BLLUVE2kComponenti() {
}
public MaxidataUveBII40V2BLLUVE2kComponenti idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLUVE2kComponenti idComp(@javax.annotation.Nullable String idComp) {
this.idComp = idComp;
return this;
}
/**
* ID Componente
*
* @return idComp
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_COMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdComp() {
return idComp;
}
@JsonProperty(JSON_PROPERTY_ID_COMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdComp(@javax.annotation.Nullable String idComp) {
this.idComp = idComp;
}
public MaxidataUveBII40V2BLLUVE2kComponenti descrizione(@javax.annotation.Nullable String descrizione) {
this.descrizione = descrizione;
return this;
}
/**
* Descrizione Componente
*
* @return descrizione
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESCRIZIONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescrizione() {
return descrizione;
}
@JsonProperty(JSON_PROPERTY_DESCRIZIONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescrizione(@javax.annotation.Nullable String descrizione) {
this.descrizione = descrizione;
}
public MaxidataUveBII40V2BLLUVE2kComponenti quantita(@javax.annotation.Nullable BigDecimal quantita) {
this.quantita = quantita;
return this;
}
/**
* Quantità da utilizzare
*
* @return quantita
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QUANTITA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getQuantita() {
return quantita;
}
@JsonProperty(JSON_PROPERTY_QUANTITA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQuantita(@javax.annotation.Nullable BigDecimal quantita) {
this.quantita = quantita;
}
public MaxidataUveBII40V2BLLUVE2kComponenti dettagli(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLDettaglio> dettagli) {
this.dettagli = dettagli;
return this;
}
public MaxidataUveBII40V2BLLUVE2kComponenti addDettagliItem(MaxidataUveBII40V2BLLDettaglio dettagliItem) {
if (this.dettagli == null) {
this.dettagli = new ArrayList<>();
}
this.dettagli.add(dettagliItem);
return this;
}
/**
* Dettagli
*
* @return dettagli
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DETTAGLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<MaxidataUveBII40V2BLLDettaglio> getDettagli() {
return dettagli;
}
@JsonProperty(JSON_PROPERTY_DETTAGLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDettagli(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLDettaglio> dettagli) {
this.dettagli = dettagli;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLUVE2kComponenti maxidataUveBII40V2BLLUVE2kComponenti = (MaxidataUveBII40V2BLLUVE2kComponenti) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLUVE2kComponenti.idSchedaProd) &&
Objects.equals(this.idComp, maxidataUveBII40V2BLLUVE2kComponenti.idComp) &&
Objects.equals(this.descrizione, maxidataUveBII40V2BLLUVE2kComponenti.descrizione) &&
Objects.equals(this.quantita, maxidataUveBII40V2BLLUVE2kComponenti.quantita) &&
Objects.equals(this.dettagli, maxidataUveBII40V2BLLUVE2kComponenti.dettagli);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, idComp, descrizione, quantita, dettagli);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLUVE2kComponenti {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" idComp: ").append(toIndentedString(idComp)).append("\n");
sb.append(" descrizione: ").append(toIndentedString(descrizione)).append("\n");
sb.append(" quantita: ").append(toIndentedString(quantita)).append("\n");
sb.append(" dettagli: ").append(toIndentedString(dettagli)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,207 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLUVE2kFileToPrint
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLUVE2kFileToPrint.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLUVE2kFileToPrint.JSON_PROPERTY_LINEA_PROD,
MaxidataUveBII40V2BLLUVE2kFileToPrint.JSON_PROPERTY_FILE_P_D_F,
MaxidataUveBII40V2BLLUVE2kFileToPrint.JSON_PROPERTY_COPIE
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.UVE2k_FileToPrint")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLUVE2kFileToPrint implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_LINEA_PROD = "LineaProd";
@javax.annotation.Nullable
private String lineaProd;
public static final String JSON_PROPERTY_FILE_P_D_F = "FilePDF";
@javax.annotation.Nullable
private byte[] filePDF;
public static final String JSON_PROPERTY_COPIE = "Copie";
@javax.annotation.Nullable
private Integer copie;
public MaxidataUveBII40V2BLLUVE2kFileToPrint() {
}
public MaxidataUveBII40V2BLLUVE2kFileToPrint idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLUVE2kFileToPrint lineaProd(@javax.annotation.Nullable String lineaProd) {
this.lineaProd = lineaProd;
return this;
}
/**
* Linea su cui è sttao prodotto il pallet
*
* @return lineaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LINEA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLineaProd() {
return lineaProd;
}
@JsonProperty(JSON_PROPERTY_LINEA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLineaProd(@javax.annotation.Nullable String lineaProd) {
this.lineaProd = lineaProd;
}
public MaxidataUveBII40V2BLLUVE2kFileToPrint filePDF(@javax.annotation.Nullable byte[] filePDF) {
this.filePDF = filePDF;
return this;
}
/**
* Array di Byte contenete il file PDF da stampare
*
* @return filePDF
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FILE_P_D_F)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public byte[] getFilePDF() {
return filePDF;
}
@JsonProperty(JSON_PROPERTY_FILE_P_D_F)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFilePDF(@javax.annotation.Nullable byte[] filePDF) {
this.filePDF = filePDF;
}
public MaxidataUveBII40V2BLLUVE2kFileToPrint copie(@javax.annotation.Nullable Integer copie) {
this.copie = copie;
return this;
}
/**
* Coipe di etichette da stampare
*
* @return copie
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COPIE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCopie() {
return copie;
}
@JsonProperty(JSON_PROPERTY_COPIE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCopie(@javax.annotation.Nullable Integer copie) {
this.copie = copie;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLUVE2kFileToPrint maxidataUveBII40V2BLLUVE2kFileToPrint = (MaxidataUveBII40V2BLLUVE2kFileToPrint) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLUVE2kFileToPrint.idSchedaProd) &&
Objects.equals(this.lineaProd, maxidataUveBII40V2BLLUVE2kFileToPrint.lineaProd) &&
Arrays.equals(this.filePDF, maxidataUveBII40V2BLLUVE2kFileToPrint.filePDF) &&
Objects.equals(this.copie, maxidataUveBII40V2BLLUVE2kFileToPrint.copie);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, lineaProd, Arrays.hashCode(filePDF), copie);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLUVE2kFileToPrint {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" lineaProd: ").append(toIndentedString(lineaProd)).append("\n");
sb.append(" filePDF: ").append(toIndentedString(filePDF)).append("\n");
sb.append(" copie: ").append(toIndentedString(copie)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,273 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLUVE2kPallet
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLUVE2kPallet.JSON_PROPERTY_I_D_S_S_C_C,
MaxidataUveBII40V2BLLUVE2kPallet.JSON_PROPERTY_PROGRESSIVO,
MaxidataUveBII40V2BLLUVE2kPallet.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLUVE2kPallet.JSON_PROPERTY_LINEA_PROD,
MaxidataUveBII40V2BLLUVE2kPallet.JSON_PROPERTY_FILE_P_D_F,
MaxidataUveBII40V2BLLUVE2kPallet.JSON_PROPERTY_COPIE
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.UVE2k_Pallet")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLUVE2kPallet implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_I_D_S_S_C_C = "IDSSCC";
@javax.annotation.Nullable
private String IDSSCC;
public static final String JSON_PROPERTY_PROGRESSIVO = "Progressivo";
@javax.annotation.Nullable
private Integer progressivo;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_LINEA_PROD = "LineaProd";
@javax.annotation.Nullable
private String lineaProd;
public static final String JSON_PROPERTY_FILE_P_D_F = "FilePDF";
@javax.annotation.Nullable
private byte[] filePDF;
public static final String JSON_PROPERTY_COPIE = "Copie";
@javax.annotation.Nullable
private Integer copie;
public MaxidataUveBII40V2BLLUVE2kPallet() {
}
public MaxidataUveBII40V2BLLUVE2kPallet IDSSCC(@javax.annotation.Nullable String IDSSCC) {
this.IDSSCC = IDSSCC;
return this;
}
/**
* Numero SSCC
*
* @return IDSSCC
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_I_D_S_S_C_C)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIDSSCC() {
return IDSSCC;
}
@JsonProperty(JSON_PROPERTY_I_D_S_S_C_C)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIDSSCC(@javax.annotation.Nullable String IDSSCC) {
this.IDSSCC = IDSSCC;
}
public MaxidataUveBII40V2BLLUVE2kPallet progressivo(@javax.annotation.Nullable Integer progressivo) {
this.progressivo = progressivo;
return this;
}
/**
* Numero progressivo, solo riferimento interno (NON è il numero SSCC)
*
* @return progressivo
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROGRESSIVO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getProgressivo() {
return progressivo;
}
@JsonProperty(JSON_PROPERTY_PROGRESSIVO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProgressivo(@javax.annotation.Nullable Integer progressivo) {
this.progressivo = progressivo;
}
public MaxidataUveBII40V2BLLUVE2kPallet idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLUVE2kPallet lineaProd(@javax.annotation.Nullable String lineaProd) {
this.lineaProd = lineaProd;
return this;
}
/**
* Linea su cui è sttao prodotto il pallet
*
* @return lineaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LINEA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLineaProd() {
return lineaProd;
}
@JsonProperty(JSON_PROPERTY_LINEA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLineaProd(@javax.annotation.Nullable String lineaProd) {
this.lineaProd = lineaProd;
}
public MaxidataUveBII40V2BLLUVE2kPallet filePDF(@javax.annotation.Nullable byte[] filePDF) {
this.filePDF = filePDF;
return this;
}
/**
* Array di Byte contenete il file PDF da stampare
*
* @return filePDF
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FILE_P_D_F)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public byte[] getFilePDF() {
return filePDF;
}
@JsonProperty(JSON_PROPERTY_FILE_P_D_F)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFilePDF(@javax.annotation.Nullable byte[] filePDF) {
this.filePDF = filePDF;
}
public MaxidataUveBII40V2BLLUVE2kPallet copie(@javax.annotation.Nullable Integer copie) {
this.copie = copie;
return this;
}
/**
* Coipe di etichette da stampare
*
* @return copie
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COPIE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCopie() {
return copie;
}
@JsonProperty(JSON_PROPERTY_COPIE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCopie(@javax.annotation.Nullable Integer copie) {
this.copie = copie;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLUVE2kPallet maxidataUveBII40V2BLLUVE2kPallet = (MaxidataUveBII40V2BLLUVE2kPallet) o;
return Objects.equals(this.IDSSCC, maxidataUveBII40V2BLLUVE2kPallet.IDSSCC) &&
Objects.equals(this.progressivo, maxidataUveBII40V2BLLUVE2kPallet.progressivo) &&
Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLUVE2kPallet.idSchedaProd) &&
Objects.equals(this.lineaProd, maxidataUveBII40V2BLLUVE2kPallet.lineaProd) &&
Arrays.equals(this.filePDF, maxidataUveBII40V2BLLUVE2kPallet.filePDF) &&
Objects.equals(this.copie, maxidataUveBII40V2BLLUVE2kPallet.copie);
}
@Override
public int hashCode() {
return Objects.hash(IDSSCC, progressivo, idSchedaProd, lineaProd, Arrays.hashCode(filePDF), copie);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLUVE2kPallet {\n");
sb.append(" IDSSCC: ").append(toIndentedString(IDSSCC)).append("\n");
sb.append(" progressivo: ").append(toIndentedString(progressivo)).append("\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" lineaProd: ").append(toIndentedString(lineaProd)).append("\n");
sb.append(" filePDF: ").append(toIndentedString(filePDF)).append("\n");
sb.append(" copie: ").append(toIndentedString(copie)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,140 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLUVE2kPalletConfermati
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLUVE2kPalletConfermati.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLUVE2kPalletConfermati.JSON_PROPERTY_I_D_S_S_C_C
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.UVE2k_PalletConfermati")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLUVE2kPalletConfermati implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_I_D_S_S_C_C = "IDSSCC";
@javax.annotation.Nullable
private String IDSSCC;
public MaxidataUveBII40V2BLLUVE2kPalletConfermati() {
}
public MaxidataUveBII40V2BLLUVE2kPalletConfermati idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Numero ordine di lavoro (Scheda Produzione)
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLUVE2kPalletConfermati IDSSCC(@javax.annotation.Nullable String IDSSCC) {
this.IDSSCC = IDSSCC;
return this;
}
/**
* Numero SSCC
*
* @return IDSSCC
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_I_D_S_S_C_C)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIDSSCC() {
return IDSSCC;
}
@JsonProperty(JSON_PROPERTY_I_D_S_S_C_C)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIDSSCC(@javax.annotation.Nullable String IDSSCC) {
this.IDSSCC = IDSSCC;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLUVE2kPalletConfermati maxidataUveBII40V2BLLUVE2kPalletConfermati = (MaxidataUveBII40V2BLLUVE2kPalletConfermati) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLUVE2kPalletConfermati.idSchedaProd) &&
Objects.equals(this.IDSSCC, maxidataUveBII40V2BLLUVE2kPalletConfermati.IDSSCC);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, IDSSCC);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLUVE2kPalletConfermati {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" IDSSCC: ").append(toIndentedString(IDSSCC)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,841 @@
/*
* MES - Gestione
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: V2-R2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package it.integry.maxidata.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* MaxidataUveBII40V2BLLUVE2kSchedeProd
*/
@JsonPropertyOrder({
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_ID_SCHEDA_PROD,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_TIPO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_MOTIVO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_ID_PROD_ORIGINALE,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_NUMERO_SCHEDA_PROD,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_DATA_PREVISTA,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_STATO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_LINEA_PROD,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_ID_PRODOTTO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_ANNATA,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_GRADO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_DESC_PRODOTTO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_EA_N_PRODOTTO,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_EA_N_CARTONE,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_LOTTO_PROD,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_QTA_LITRI,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_QTA_PEZZI,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_QTA_IMBALLI,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_ID_PALLET,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_IMBALLIX_PALLET,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_STRATIX_PALLET,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_DETTAGLI,
MaxidataUveBII40V2BLLUVE2kSchedeProd.JSON_PROPERTY_COMPONENTI
})
@JsonTypeName("Maxidata.Uve.BI.I40.V2.BLL.UVE2k_SchedeProd")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-17T17:19:04.484631300+02:00[Europe/Rome]", comments = "Generator version: 7.15.0")
public class MaxidataUveBII40V2BLLUVE2kSchedeProd implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID_SCHEDA_PROD = "IDSchedaProd";
@javax.annotation.Nullable
private String idSchedaProd;
public static final String JSON_PROPERTY_TIPO = "Tipo";
@javax.annotation.Nullable
private MaxidataUveBII40V2BLLTipoProdEnum tipo;
public static final String JSON_PROPERTY_MOTIVO = "Motivo";
@javax.annotation.Nullable
private MaxidataUveBII40V2BLLMotivoProdEnum motivo;
public static final String JSON_PROPERTY_ID_PROD_ORIGINALE = "IDProdOriginale";
@javax.annotation.Nullable
private String idProdOriginale;
public static final String JSON_PROPERTY_NUMERO_SCHEDA_PROD = "NumeroSchedaProd";
@javax.annotation.Nullable
private Integer numeroSchedaProd;
public static final String JSON_PROPERTY_DATA_PREVISTA = "DataPrevista";
@javax.annotation.Nullable
private LocalDateTime dataPrevista;
public static final String JSON_PROPERTY_STATO = "Stato";
@javax.annotation.Nullable
private MaxidataUveBII40V2BLLStatoProdEnum stato;
public static final String JSON_PROPERTY_LINEA_PROD = "LineaProd";
@javax.annotation.Nullable
private String lineaProd;
public static final String JSON_PROPERTY_ID_PRODOTTO = "IDProdotto";
@javax.annotation.Nullable
private String idProdotto;
public static final String JSON_PROPERTY_ANNATA = "Annata";
@javax.annotation.Nullable
private String annata;
public static final String JSON_PROPERTY_GRADO = "Grado";
@javax.annotation.Nullable
private BigDecimal grado;
public static final String JSON_PROPERTY_DESC_PRODOTTO = "DescProdotto";
@javax.annotation.Nullable
private String descProdotto;
public static final String JSON_PROPERTY_EA_N_PRODOTTO = "EANProdotto";
@javax.annotation.Nullable
private String eaNProdotto;
public static final String JSON_PROPERTY_EA_N_CARTONE = "EANCartone";
@javax.annotation.Nullable
private String eaNCartone;
public static final String JSON_PROPERTY_LOTTO_PROD = "LottoProd";
@javax.annotation.Nullable
private String lottoProd;
public static final String JSON_PROPERTY_QTA_LITRI = "QtaLitri";
@javax.annotation.Nullable
private BigDecimal qtaLitri;
public static final String JSON_PROPERTY_QTA_PEZZI = "QtaPezzi";
@javax.annotation.Nullable
private Integer qtaPezzi;
public static final String JSON_PROPERTY_QTA_IMBALLI = "QtaImballi";
@javax.annotation.Nullable
private Integer qtaImballi;
public static final String JSON_PROPERTY_ID_PALLET = "IDPallet";
@javax.annotation.Nullable
private String idPallet;
public static final String JSON_PROPERTY_IMBALLIX_PALLET = "ImballixPallet";
@javax.annotation.Nullable
private Integer imballixPallet;
public static final String JSON_PROPERTY_STRATIX_PALLET = "StratixPallet";
@javax.annotation.Nullable
private Integer stratixPallet;
public static final String JSON_PROPERTY_DETTAGLI = "Dettagli";
@javax.annotation.Nullable
private List<MaxidataUveBII40V2BLLDettaglio> dettagli = new ArrayList<>();
public static final String JSON_PROPERTY_COMPONENTI = "Componenti";
@javax.annotation.Nullable
private List<MaxidataUveBII40V2BLLUVE2kComponenti> componenti = new ArrayList<>();
public MaxidataUveBII40V2BLLUVE2kSchedeProd() {
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd idSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
return this;
}
/**
* Identificativo univoco Scheda Produzione
*
* @return idSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdSchedaProd() {
return idSchedaProd;
}
@JsonProperty(JSON_PROPERTY_ID_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdSchedaProd(@javax.annotation.Nullable String idSchedaProd) {
this.idSchedaProd = idSchedaProd;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd tipo(@javax.annotation.Nullable MaxidataUveBII40V2BLLTipoProdEnum tipo) {
this.tipo = tipo;
return this;
}
/**
* Get tipo
*
* @return tipo
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TIPO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MaxidataUveBII40V2BLLTipoProdEnum getTipo() {
return tipo;
}
@JsonProperty(JSON_PROPERTY_TIPO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTipo(@javax.annotation.Nullable MaxidataUveBII40V2BLLTipoProdEnum tipo) {
this.tipo = tipo;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd motivo(@javax.annotation.Nullable MaxidataUveBII40V2BLLMotivoProdEnum motivo) {
this.motivo = motivo;
return this;
}
/**
* Get motivo
*
* @return motivo
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MOTIVO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MaxidataUveBII40V2BLLMotivoProdEnum getMotivo() {
return motivo;
}
@JsonProperty(JSON_PROPERTY_MOTIVO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMotivo(@javax.annotation.Nullable MaxidataUveBII40V2BLLMotivoProdEnum motivo) {
this.motivo = motivo;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd idProdOriginale(@javax.annotation.Nullable String idProdOriginale) {
this.idProdOriginale = idProdOriginale;
return this;
}
/**
* È il riferimento al ordine da cui la produzione corrente è stata generata
*
* @return idProdOriginale
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_PROD_ORIGINALE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdProdOriginale() {
return idProdOriginale;
}
@JsonProperty(JSON_PROPERTY_ID_PROD_ORIGINALE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdProdOriginale(@javax.annotation.Nullable String idProdOriginale) {
this.idProdOriginale = idProdOriginale;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd numeroSchedaProd(@javax.annotation.Nullable Integer numeroSchedaProd) {
this.numeroSchedaProd = numeroSchedaProd;
return this;
}
/**
* Numero Scheda Produzione
*
* @return numeroSchedaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NUMERO_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNumeroSchedaProd() {
return numeroSchedaProd;
}
@JsonProperty(JSON_PROPERTY_NUMERO_SCHEDA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumeroSchedaProd(@javax.annotation.Nullable Integer numeroSchedaProd) {
this.numeroSchedaProd = numeroSchedaProd;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd dataPrevista(@javax.annotation.Nullable LocalDateTime dataPrevista) {
this.dataPrevista = dataPrevista;
return this;
}
/**
* DateTime ordine di lavoro
*
* @return dataPrevista
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_PREVISTA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDateTime getDataPrevista() {
return dataPrevista;
}
@JsonProperty(JSON_PROPERTY_DATA_PREVISTA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataPrevista(@javax.annotation.Nullable LocalDateTime dataPrevista) {
this.dataPrevista = dataPrevista;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd stato(@javax.annotation.Nullable MaxidataUveBII40V2BLLStatoProdEnum stato) {
this.stato = stato;
return this;
}
/**
* Get stato
*
* @return stato
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STATO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MaxidataUveBII40V2BLLStatoProdEnum getStato() {
return stato;
}
@JsonProperty(JSON_PROPERTY_STATO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStato(@javax.annotation.Nullable MaxidataUveBII40V2BLLStatoProdEnum stato) {
this.stato = stato;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd lineaProd(@javax.annotation.Nullable String lineaProd) {
this.lineaProd = lineaProd;
return this;
}
/**
* Linea su cui viene fatta la lavorazione
*
* @return lineaProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LINEA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLineaProd() {
return lineaProd;
}
@JsonProperty(JSON_PROPERTY_LINEA_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLineaProd(@javax.annotation.Nullable String lineaProd) {
this.lineaProd = lineaProd;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd idProdotto(@javax.annotation.Nullable String idProdotto) {
this.idProdotto = idProdotto;
return this;
}
/**
* Codice articolo da produrre
*
* @return idProdotto
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_PRODOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdProdotto() {
return idProdotto;
}
@JsonProperty(JSON_PROPERTY_ID_PRODOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdProdotto(@javax.annotation.Nullable String idProdotto) {
this.idProdotto = idProdotto;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd annata(@javax.annotation.Nullable String annata) {
this.annata = annata;
return this;
}
/**
* Annata articolo da produrre
*
* @return annata
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ANNATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAnnata() {
return annata;
}
@JsonProperty(JSON_PROPERTY_ANNATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAnnata(@javax.annotation.Nullable String annata) {
this.annata = annata;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd grado(@javax.annotation.Nullable BigDecimal grado) {
this.grado = grado;
return this;
}
/**
* Grado articolo da produrre
* @return grado
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GRADO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getGrado() {
return grado;
}
@JsonProperty(JSON_PROPERTY_GRADO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGrado(@javax.annotation.Nullable BigDecimal grado) {
this.grado = grado;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd descProdotto(@javax.annotation.Nullable String descProdotto) {
this.descProdotto = descProdotto;
return this;
}
/**
* Descrizione articolo da produrre
*
* @return descProdotto
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESC_PRODOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescProdotto() {
return descProdotto;
}
@JsonProperty(JSON_PROPERTY_DESC_PRODOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescProdotto(@javax.annotation.Nullable String descProdotto) {
this.descProdotto = descProdotto;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd eaNProdotto(@javax.annotation.Nullable String eaNProdotto) {
this.eaNProdotto = eaNProdotto;
return this;
}
/**
* Codice a barre articolo
* @return eaNProdotto
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EA_N_PRODOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEaNProdotto() {
return eaNProdotto;
}
@JsonProperty(JSON_PROPERTY_EA_N_PRODOTTO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEaNProdotto(@javax.annotation.Nullable String eaNProdotto) {
this.eaNProdotto = eaNProdotto;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd eaNCartone(@javax.annotation.Nullable String eaNCartone) {
this.eaNCartone = eaNCartone;
return this;
}
/**
* Codice a barre imballo
* @return eaNCartone
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EA_N_CARTONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEaNCartone() {
return eaNCartone;
}
@JsonProperty(JSON_PROPERTY_EA_N_CARTONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEaNCartone(@javax.annotation.Nullable String eaNCartone) {
this.eaNCartone = eaNCartone;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd lottoProd(@javax.annotation.Nullable String lottoProd) {
this.lottoProd = lottoProd;
return this;
}
/**
* Lotto da produrre
* @return lottoProd
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LOTTO_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLottoProd() {
return lottoProd;
}
@JsonProperty(JSON_PROPERTY_LOTTO_PROD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLottoProd(@javax.annotation.Nullable String lottoProd) {
this.lottoProd = lottoProd;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd qtaLitri(@javax.annotation.Nullable BigDecimal qtaLitri) {
this.qtaLitri = qtaLitri;
return this;
}
/**
* Quantità litri da produrre
* @return qtaLitri
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_LITRI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getQtaLitri() {
return qtaLitri;
}
@JsonProperty(JSON_PROPERTY_QTA_LITRI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaLitri(@javax.annotation.Nullable BigDecimal qtaLitri) {
this.qtaLitri = qtaLitri;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd qtaPezzi(@javax.annotation.Nullable Integer qtaPezzi) {
this.qtaPezzi = qtaPezzi;
return this;
}
/**
* Quantità bottiglie da produrre (Pezzi)
* @return qtaPezzi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_PEZZI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaPezzi() {
return qtaPezzi;
}
@JsonProperty(JSON_PROPERTY_QTA_PEZZI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaPezzi(@javax.annotation.Nullable Integer qtaPezzi) {
this.qtaPezzi = qtaPezzi;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd qtaImballi(@javax.annotation.Nullable Integer qtaImballi) {
this.qtaImballi = qtaImballi;
return this;
}
/**
* Quantità imballi da confezionare (Cartoni)
* @return qtaImballi
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QTA_IMBALLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQtaImballi() {
return qtaImballi;
}
@JsonProperty(JSON_PROPERTY_QTA_IMBALLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQtaImballi(@javax.annotation.Nullable Integer qtaImballi) {
this.qtaImballi = qtaImballi;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd idPallet(@javax.annotation.Nullable String idPallet) {
this.idPallet = idPallet;
return this;
}
/**
* Tipo di pallet (EPAL)
* @return idPallet
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIdPallet() {
return idPallet;
}
@JsonProperty(JSON_PROPERTY_ID_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIdPallet(@javax.annotation.Nullable String idPallet) {
this.idPallet = idPallet;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd imballixPallet(@javax.annotation.Nullable Integer imballixPallet) {
this.imballixPallet = imballixPallet;
return this;
}
/**
* Cartoni per pallet
* @return imballixPallet
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IMBALLIX_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getImballixPallet() {
return imballixPallet;
}
@JsonProperty(JSON_PROPERTY_IMBALLIX_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setImballixPallet(@javax.annotation.Nullable Integer imballixPallet) {
this.imballixPallet = imballixPallet;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd stratixPallet(@javax.annotation.Nullable Integer stratixPallet) {
this.stratixPallet = stratixPallet;
return this;
}
/**
* Strati per pallet
* @return stratixPallet
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STRATIX_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getStratixPallet() {
return stratixPallet;
}
@JsonProperty(JSON_PROPERTY_STRATIX_PALLET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStratixPallet(@javax.annotation.Nullable Integer stratixPallet) {
this.stratixPallet = stratixPallet;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd dettagli(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLDettaglio> dettagli) {
this.dettagli = dettagli;
return this;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd addDettagliItem(MaxidataUveBII40V2BLLDettaglio dettagliItem) {
if (this.dettagli == null) {
this.dettagli = new ArrayList<>();
}
this.dettagli.add(dettagliItem);
return this;
}
/**
* Dettagli
* @return dettagli
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DETTAGLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<MaxidataUveBII40V2BLLDettaglio> getDettagli() {
return dettagli;
}
@JsonProperty(JSON_PROPERTY_DETTAGLI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDettagli(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLDettaglio> dettagli) {
this.dettagli = dettagli;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd componenti(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLUVE2kComponenti> componenti) {
this.componenti = componenti;
return this;
}
public MaxidataUveBII40V2BLLUVE2kSchedeProd addComponentiItem(MaxidataUveBII40V2BLLUVE2kComponenti componentiItem) {
if (this.componenti == null) {
this.componenti = new ArrayList<>();
}
this.componenti.add(componentiItem);
return this;
}
/**
* Componenti
* @return componenti
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMPONENTI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<MaxidataUveBII40V2BLLUVE2kComponenti> getComponenti() {
return componenti;
}
@JsonProperty(JSON_PROPERTY_COMPONENTI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComponenti(@javax.annotation.Nullable List<MaxidataUveBII40V2BLLUVE2kComponenti> componenti) {
this.componenti = componenti;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MaxidataUveBII40V2BLLUVE2kSchedeProd maxidataUveBII40V2BLLUVE2kSchedeProd = (MaxidataUveBII40V2BLLUVE2kSchedeProd) o;
return Objects.equals(this.idSchedaProd, maxidataUveBII40V2BLLUVE2kSchedeProd.idSchedaProd) &&
Objects.equals(this.tipo, maxidataUveBII40V2BLLUVE2kSchedeProd.tipo) &&
Objects.equals(this.motivo, maxidataUveBII40V2BLLUVE2kSchedeProd.motivo) &&
Objects.equals(this.idProdOriginale, maxidataUveBII40V2BLLUVE2kSchedeProd.idProdOriginale) &&
Objects.equals(this.numeroSchedaProd, maxidataUveBII40V2BLLUVE2kSchedeProd.numeroSchedaProd) &&
Objects.equals(this.dataPrevista, maxidataUveBII40V2BLLUVE2kSchedeProd.dataPrevista) &&
Objects.equals(this.stato, maxidataUveBII40V2BLLUVE2kSchedeProd.stato) &&
Objects.equals(this.lineaProd, maxidataUveBII40V2BLLUVE2kSchedeProd.lineaProd) &&
Objects.equals(this.idProdotto, maxidataUveBII40V2BLLUVE2kSchedeProd.idProdotto) &&
Objects.equals(this.annata, maxidataUveBII40V2BLLUVE2kSchedeProd.annata) &&
Objects.equals(this.grado, maxidataUveBII40V2BLLUVE2kSchedeProd.grado) &&
Objects.equals(this.descProdotto, maxidataUveBII40V2BLLUVE2kSchedeProd.descProdotto) &&
Objects.equals(this.eaNProdotto, maxidataUveBII40V2BLLUVE2kSchedeProd.eaNProdotto) &&
Objects.equals(this.eaNCartone, maxidataUveBII40V2BLLUVE2kSchedeProd.eaNCartone) &&
Objects.equals(this.lottoProd, maxidataUveBII40V2BLLUVE2kSchedeProd.lottoProd) &&
Objects.equals(this.qtaLitri, maxidataUveBII40V2BLLUVE2kSchedeProd.qtaLitri) &&
Objects.equals(this.qtaPezzi, maxidataUveBII40V2BLLUVE2kSchedeProd.qtaPezzi) &&
Objects.equals(this.qtaImballi, maxidataUveBII40V2BLLUVE2kSchedeProd.qtaImballi) &&
Objects.equals(this.idPallet, maxidataUveBII40V2BLLUVE2kSchedeProd.idPallet) &&
Objects.equals(this.imballixPallet, maxidataUveBII40V2BLLUVE2kSchedeProd.imballixPallet) &&
Objects.equals(this.stratixPallet, maxidataUveBII40V2BLLUVE2kSchedeProd.stratixPallet) &&
Objects.equals(this.dettagli, maxidataUveBII40V2BLLUVE2kSchedeProd.dettagli) &&
Objects.equals(this.componenti, maxidataUveBII40V2BLLUVE2kSchedeProd.componenti);
}
@Override
public int hashCode() {
return Objects.hash(idSchedaProd, tipo, motivo, idProdOriginale, numeroSchedaProd, dataPrevista, stato, lineaProd, idProdotto, annata, grado, descProdotto, eaNProdotto, eaNCartone, lottoProd, qtaLitri, qtaPezzi, qtaImballi, idPallet, imballixPallet, stratixPallet, dettagli, componenti);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MaxidataUveBII40V2BLLUVE2kSchedeProd {\n");
sb.append(" idSchedaProd: ").append(toIndentedString(idSchedaProd)).append("\n");
sb.append(" tipo: ").append(toIndentedString(tipo)).append("\n");
sb.append(" motivo: ").append(toIndentedString(motivo)).append("\n");
sb.append(" idProdOriginale: ").append(toIndentedString(idProdOriginale)).append("\n");
sb.append(" numeroSchedaProd: ").append(toIndentedString(numeroSchedaProd)).append("\n");
sb.append(" dataPrevista: ").append(toIndentedString(dataPrevista)).append("\n");
sb.append(" stato: ").append(toIndentedString(stato)).append("\n");
sb.append(" lineaProd: ").append(toIndentedString(lineaProd)).append("\n");
sb.append(" idProdotto: ").append(toIndentedString(idProdotto)).append("\n");
sb.append(" annata: ").append(toIndentedString(annata)).append("\n");
sb.append(" grado: ").append(toIndentedString(grado)).append("\n");
sb.append(" descProdotto: ").append(toIndentedString(descProdotto)).append("\n");
sb.append(" eaNProdotto: ").append(toIndentedString(eaNProdotto)).append("\n");
sb.append(" eaNCartone: ").append(toIndentedString(eaNCartone)).append("\n");
sb.append(" lottoProd: ").append(toIndentedString(lottoProd)).append("\n");
sb.append(" qtaLitri: ").append(toIndentedString(qtaLitri)).append("\n");
sb.append(" qtaPezzi: ").append(toIndentedString(qtaPezzi)).append("\n");
sb.append(" qtaImballi: ").append(toIndentedString(qtaImballi)).append("\n");
sb.append(" idPallet: ").append(toIndentedString(idPallet)).append("\n");
sb.append(" imballixPallet: ").append(toIndentedString(imballixPallet)).append("\n");
sb.append(" stratixPallet: ").append(toIndentedString(stratixPallet)).append("\n");
sb.append(" dettagli: ").append(toIndentedString(dettagli)).append("\n");
sb.append(" componenti: ").append(toIndentedString(componenti)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -0,0 +1,57 @@
package it.integry.maxidata.model;
public class MaxiDataConfigDataDTO {
private String defaultCodMdep;
private String jwtAccessToken;
private String baseUrlPath;
private String companyId;
private String appClientId;
public String getDefaultCodMdep() {
return defaultCodMdep;
}
public MaxiDataConfigDataDTO setDefaultCodMdep(String defaultCodMdep) {
this.defaultCodMdep = defaultCodMdep;
return this;
}
public String getJwtAccessToken() {
return jwtAccessToken;
}
public MaxiDataConfigDataDTO setJwtAccessToken(String jwtAccessToken) {
this.jwtAccessToken = jwtAccessToken;
return this;
}
public String getBaseUrlPath() {
return baseUrlPath;
}
public MaxiDataConfigDataDTO setBaseUrlPath(String baseUrlPath) {
this.baseUrlPath = baseUrlPath;
return this;
}
public String getCompanyId() {
return companyId;
}
public MaxiDataConfigDataDTO setCompanyId(String companyId) {
this.companyId = companyId;
return this;
}
public String getAppClientId() {
return appClientId;
}
public MaxiDataConfigDataDTO setAppClientId(String appClientId) {
this.appClientId = appClientId;
return this;
}
}

View File

@@ -0,0 +1,67 @@
package it.integry.maxidata.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class MaxiDataIvaDTO {
@JsonProperty("IDIva")
private String idIva;
@JsonProperty("Descrizione")
private String descrizione;
@JsonProperty("Aliquota")
private double aliquota;
@JsonProperty("TipoIva")
private String tipoIva;
@JsonProperty("CodiceCED")
private String codiceCED;
public String getIdIva() {
return idIva;
}
public MaxiDataIvaDTO setIdIva(String idIva) {
this.idIva = idIva;
return this;
}
public String getDescrizione() {
return descrizione;
}
public MaxiDataIvaDTO setDescrizione(String descrizione) {
this.descrizione = descrizione;
return this;
}
public double getAliquota() {
return aliquota;
}
public MaxiDataIvaDTO setAliquota(double aliquota) {
this.aliquota = aliquota;
return this;
}
public String getTipoIva() {
return tipoIva;
}
public MaxiDataIvaDTO setTipoIva(String tipoIva) {
this.tipoIva = tipoIva;
return this;
}
public String getCodiceCED() {
return codiceCED;
}
public MaxiDataIvaDTO setCodiceCED(String codiceCED) {
this.codiceCED = codiceCED;
return this;
}
}

View File

@@ -0,0 +1,141 @@
package it.integry.maxidata.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
public class MaxiDataOrderDTO {
@JsonProperty("ID")
private String id;
@JsonProperty("Descrizione")
private String descrizione;
@JsonProperty("Tipo")
private String tipo;
@JsonProperty("StatoFisico")
private int statoFisico;
@JsonProperty("CatMIPAAF")
private String catMIPAAF;
@JsonProperty("Formato")
private double formato;
@JsonProperty("UM")
private String uM;
@JsonProperty("Vendibile")
private boolean vendibile;
@JsonProperty("IVA")
private MaxiDataIvaDTO iva;
@JsonProperty("First_Date")
private LocalDateTime firstDate;
@JsonProperty("Last_Date")
private LocalDateTime lastDate;
public String getId() {
return id;
}
public MaxiDataOrderDTO setId(String id) {
this.id = id;
return this;
}
public String getDescrizione() {
return descrizione;
}
public MaxiDataOrderDTO setDescrizione(String descrizione) {
this.descrizione = descrizione;
return this;
}
public String getTipo() {
return tipo;
}
public MaxiDataOrderDTO setTipo(String tipo) {
this.tipo = tipo;
return this;
}
public int getStatoFisico() {
return statoFisico;
}
public MaxiDataOrderDTO setStatoFisico(int statoFisico) {
this.statoFisico = statoFisico;
return this;
}
public String getCatMIPAAF() {
return catMIPAAF;
}
public MaxiDataOrderDTO setCatMIPAAF(String catMIPAAF) {
this.catMIPAAF = catMIPAAF;
return this;
}
public double getFormato() {
return formato;
}
public MaxiDataOrderDTO setFormato(double formato) {
this.formato = formato;
return this;
}
public String getuM() {
return uM;
}
public MaxiDataOrderDTO setuM(String uM) {
this.uM = uM;
return this;
}
public boolean isVendibile() {
return vendibile;
}
public MaxiDataOrderDTO setVendibile(boolean vendibile) {
this.vendibile = vendibile;
return this;
}
public MaxiDataIvaDTO getIva() {
return iva;
}
public MaxiDataOrderDTO setIva(MaxiDataIvaDTO iva) {
this.iva = iva;
return this;
}
public LocalDateTime getFirstDate() {
return firstDate;
}
public MaxiDataOrderDTO setFirstDate(LocalDateTime firstDate) {
this.firstDate = firstDate;
return this;
}
public LocalDateTime getLastDate() {
return lastDate;
}
public MaxiDataOrderDTO setLastDate(LocalDateTime lastDate) {
this.lastDate = lastDate;
return this;
}
}

View File

@@ -0,0 +1,88 @@
package it.integry.maxidata.service;
import it.integry.annotations.PostContextAutowired;
import it.integry.annotations.PostContextConstruct;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
import it.integry.ems_model.entity.StbGestSetup;
import it.integry.ems_model.service.SetupGest;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.UtilityHashMap;
import it.integry.maxidata.model.MaxiDataConfigDataDTO;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Service;
import java.util.HashMap;
@Service
public class MaxiDataApiRegistrationService {
private static final Logger logger = LogManager.getLogger();
@Autowired
private ConfigurableApplicationContext applicationContext;
@Autowired
private SetupGest setupGest;
@PostContextAutowired
private MultiDBTransactionManager postContextMultiDBTransactionManager;
@PostContextConstruct(priority = 10)
private void init() throws Exception {
// Ottieni il BeanFactory
DefaultListableBeanFactory beanFactory =
(DefaultListableBeanFactory) applicationContext.getBeanFactory();
for (Connection connection : postContextMultiDBTransactionManager.getActiveConnections()) {
final HashMap<String, String> setupSection = setupGest.getImportSetupSection(connection, "ORDINI LAVORAZIONE", "MAXIDATA");
if (!"S".equalsIgnoreCase(UtilityHashMap.getValueIfExists(setupSection, "ATTIVO")))
continue;
MaxiDataConfigDataDTO maxiDataConfigDataDTO = new MaxiDataConfigDataDTO()
.setDefaultCodMdep(UtilityHashMap.getValueIfExists(setupSection, "COD_MDEP_DEFAULT"))
.setBaseUrlPath(UtilityHashMap.getValueIfExists(setupSection, "UVE2K_URL_BASE_PATH"))
.setCompanyId(UtilityHashMap.getValueIfExists(setupSection, "UVE2K_COMPANY_ID"))
.setAppClientId(UtilityHashMap.getValueIfExists(setupSection, "UVE2K_APP_CLIENT_ID"))
.setJwtAccessToken(UtilityHashMap.getValueIfExists(setupSection, "UVE2K_JWT_ACCESS_TOKEN"));
try {
MaxiDataApiService maxiDataApiService = new MaxiDataApiService(maxiDataConfigDataDTO)
.setUsername(UtilityHashMap.getValueIfExists(setupSection, "UVE2K_USERNAME"))
.setPassword(UtilityHashMap.getValueIfExists(setupSection, "UVE2K_PASSWORD"));
String profileDb = connection.getProfileName();
maxiDataApiService.setListener(newJwtAccessToken -> {
//TODO: Store here new Access Token
try (MultiDBTransactionManager multiDBTransactionManager = new MultiDBTransactionManager(profileDb)) {
StbGestSetup stbGestSetup = new StbGestSetup("IMPORT_ORDINI LAVORAZIONE", "MAXIDATA", "UVE2K_JWT_ACCESS_TOKEN")
.setValue(newJwtAccessToken);
stbGestSetup.setOperation(OperationType.UPDATE);
stbGestSetup.manageWithParentConnection(multiDBTransactionManager.getPrimaryConnection());
} catch (Exception e) {
throw new RuntimeException(e);
}
logger.info("New JWT Access Token for MaxiData profile {}: {}", profileDb, newJwtAccessToken);
});
// Registra il bean manualmente
beanFactory.registerSingleton(String.format("maxidata-uve2k-service--%s", connection.getDbName()), maxiDataApiService);
} catch (Exception e) {
logger.error("Unable to instantiate MaxiDataApiService", e);
}
}
}
}

View File

@@ -0,0 +1,210 @@
package it.integry.maxidata.service;
import com.fasterxml.jackson.databind.ObjectMapper;
import it.integry.ems.utility.UtilityDebug;
import it.integry.ems.utility.UtilityDirs;
import it.integry.ems.utility.UtilityFile;
import it.integry.ems_model.utility.UtilityString;
import it.integry.maxidata.client.api.AutenticazioneApi;
import it.integry.maxidata.client.api.MesGestioneApi;
import it.integry.maxidata.client.invoker.ApiClient;
import it.integry.maxidata.client.model.*;
import it.integry.maxidata.model.MaxiDataConfigDataDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.client.HttpClientErrorException;
import java.nio.file.Paths;
import java.util.List;
public class MaxiDataApiService {
private static final Logger logger = LoggerFactory.getLogger(MaxiDataApiService.class);
private final ApiClient apiClient;
private final MaxiDataConfigDataDTO maxiDataConfigDataDTO;
private String username;
private String password;
private Listener listener;
public MaxiDataApiService(MaxiDataConfigDataDTO maxiDataConfigDataDTO) {
if (maxiDataConfigDataDTO == null)
throw new IllegalArgumentException("MaxiData config cannot be null");
if (UtilityString.isNullOrEmpty(maxiDataConfigDataDTO.getBaseUrlPath()))
throw new IllegalArgumentException("MaxiData BASE_URL_PATH cannot be null");
if (UtilityString.isNullOrEmpty(maxiDataConfigDataDTO.getCompanyId()))
throw new IllegalArgumentException("MaxiData COMPANY_ID cannot be null");
if (UtilityString.isNullOrEmpty(maxiDataConfigDataDTO.getAppClientId()))
throw new IllegalArgumentException("MaxiData APP_CLIENT_ID cannot be null");
this.maxiDataConfigDataDTO = maxiDataConfigDataDTO;
this.apiClient = new ApiClient();
this.apiClient.setBasePath(maxiDataConfigDataDTO.getBaseUrlPath());
this.apiClient.setDebugging(UtilityDebug.isDebugExecution());
}
public void authenticate() {
this.apiClient.setApiKey("Bearer " + this.maxiDataConfigDataDTO.getJwtAccessToken());
if (UtilityString.isNullOrEmpty(this.username))
throw new IllegalArgumentException("MaxiData USERNAME cannot be null");
if (UtilityString.isNullOrEmpty(this.password))
throw new IllegalArgumentException("MaxiData PASSWORD cannot be null");
if (isJwtTokenValid())
return;
AutenticazioneApi autenticazioneApi = new AutenticazioneApi(this.apiClient);
try {
final MaxidataCFGBILoginV4BLLLoginType integryLoginResponse =
autenticazioneApi.callStatic(this.username,
this.maxiDataConfigDataDTO.getAppClientId(),
this.password, null);
this.maxiDataConfigDataDTO.setJwtAccessToken(integryLoginResponse.getJwt());
if (this.listener != null)
this.listener.onJwtAccessTokenChanged(integryLoginResponse.getJwt());
} catch (Exception e) {
throw new RuntimeException("Unable to authenticate to MaxiData API", e);
}
}
private boolean isJwtTokenValid() {
if (UtilityString.isNullOrEmpty(this.maxiDataConfigDataDTO.getJwtAccessToken()))
return false;
try {
AutenticazioneApi autenticazioneApi = new AutenticazioneApi(this.apiClient);
final MaxidataCFGBILoginV4BLLPayLoadType checkResponse = autenticazioneApi.check();
} catch (Exception e) {
logger.error("Invalid MaxiData API Token", e);
return false;
}
return true;
}
public List<MaxidataUveBII40V2BLLUVE2kSchedeProd> retrieveSchedeProduzione() {
this.authenticate();
MesGestioneApi mesApi = new MesGestioneApi(this.apiClient);
final List<MaxidataUveBII40V2BLLUVE2kSchedeProd> ordersList = mesApi.find("DEF", null);
return ordersList;
}
public void startProductionOrder(String idSchedaProd) {
try {
this.authenticate();
final MaxidataUveBII40V2BLLMESProduzioni startProduzioneRequest = new MaxidataUveBII40V2BLLMESProduzioni();
startProduzioneRequest.setIdSchedaProd(idSchedaProd);
MesGestioneApi mesApi = new MesGestioneApi(this.apiClient);
final MaxidataUveBII40V2BLLUVE2kSchedeProd startedOrder = mesApi.start(startProduzioneRequest);
} catch (HttpClientErrorException e) {
final MaxidataLibrerie2WebServicesRestAPIErrorException errorData = handleAPIError(e);
throw new RuntimeException(errorData.getErrorMessage());
} catch (Exception e) {
throw new RuntimeException("Errore durante la generazione di un nuovo pallet in MaxiData", e);
}
}
public void pauseProductionOrder(String idSchedaProd) {
try {
this.authenticate();
MesGestioneApi mesApi = new MesGestioneApi(this.apiClient);
mesApi.pause(idSchedaProd);
} catch (HttpClientErrorException e) {
final MaxidataLibrerie2WebServicesRestAPIErrorException errorData = handleAPIError(e);
throw new RuntimeException(errorData.getErrorMessage());
} catch (Exception e) {
throw new RuntimeException("Errore durante la generazione di un nuovo pallet in MaxiData", e);
}
}
public void closeProductionOrder(String idSchedaProd) {
try {
this.authenticate();
MesGestioneApi mesApi = new MesGestioneApi(this.apiClient);
mesApi.stop(idSchedaProd);
} catch (HttpClientErrorException e) {
final MaxidataLibrerie2WebServicesRestAPIErrorException errorData = handleAPIError(e);
throw new RuntimeException(errorData.getErrorMessage());
} catch (Exception e) {
throw new RuntimeException("Errore durante la generazione di un nuovo pallet in MaxiData", e);
}
}
public void createNewProductionUnit(String idSchedaProd, int progressivo, int qtaPezzi, int qtaImballi) {
try {
this.authenticate();
final MaxidataUveBII40V2BLLMESPallet newPalletRequest = new MaxidataUveBII40V2BLLMESPallet();
newPalletRequest.setIdSchedaProd(idSchedaProd);
// newPalletRequest.setDataPallet(LocalDateTime.now());
newPalletRequest.setCopie(0);
newPalletRequest.setProgressivo(progressivo);
newPalletRequest.setQtaPezzi(qtaPezzi);
newPalletRequest.setQtaImballi(qtaImballi);
MesGestioneApi mesApi = new MesGestioneApi(this.apiClient);
final MaxidataUveBII40V2BLLUVE2kPallet generatedPallet = mesApi.pallet(newPalletRequest);
UtilityFile.saveFile(Paths.get(UtilityDirs.getEmsApiTempDirectoryPath(), "maxidata", "etichette").toString(), "etichetta_pallet_" + generatedPallet.getIDSSCC() + ".pdf", generatedPallet.getFilePDF());
} catch (HttpClientErrorException e) {
final MaxidataLibrerie2WebServicesRestAPIErrorException errorData = handleAPIError(e);
throw new RuntimeException(errorData.getErrorMessage());
} catch (Exception e) {
throw new RuntimeException("Errore durante la generazione di un nuovo pallet in MaxiData", e);
}
}
public MaxiDataApiService setUsername(String username) {
this.username = username;
return this;
}
public MaxiDataApiService setPassword(String password) {
this.password = password;
return this;
}
public MaxiDataApiService setListener(Listener listener) {
this.listener = listener;
return this;
}
private MaxidataLibrerie2WebServicesRestAPIErrorException handleAPIError(HttpClientErrorException e) {
if (e == null)
return null;
try {
ObjectMapper objectMapper = new ObjectMapper();
return objectMapper.readValue(
e.getResponseBodyAsString(),
MaxidataLibrerie2WebServicesRestAPIErrorException.class
);
} catch (Exception ex) {
logger.error("Errore durante la deserializzazione dell'errore API", ex);
return null;
}
}
public interface Listener {
void onJwtAccessTokenChanged(String newJwtAccessToken);
}
}

View File

@@ -269,7 +269,7 @@ when
eval(completeRulesEnabled)
$row: MtbColr(partitaMag == null && codMart != null && dataScadPartita != null)
then
String partitaMag = PackagesRules.completePartitaMag4DataScad(conn, $row.getCodMart(),$row.getDataScadPartita());
String partitaMag = PackagesRules.completePartitaMag4DataScad(conn, $row.getCodMart(), UtilityLocalDate.localDateFromDate($row.getDataScadPartita()));
modify ( $row ) { setPartitaMag(partitaMag) }
end

View File

@@ -34,22 +34,19 @@ public class GrammProductionController {
public @ResponseBody
ServiceRestResponse chiusuraLavorazioneSemole(HttpServletRequest request,
@RequestParam(CommonConstants.PROFILE_DB) String profileDB,
@RequestBody ChiusuraLavorazioneSemoleRequestDTO chiusuraLavorazioneSemoleRequestDTO) {
ServiceRestResponse response;
@RequestBody ChiusuraLavorazioneSemoleRequestDTO chiusuraLavorazioneSemoleRequestDTO) throws Exception {
try {
grammMesProductionService.chiusuraLavorazioneSemole(chiusuraLavorazioneSemoleRequestDTO);
response = ServiceRestResponse.createPositiveResponse();
return ServiceRestResponse.createPositiveResponse();
} catch (Exception e) {
try {
multiDBTransactionManager.rollbackAll();
} catch (Exception ex) {
logger.error(request.getRequestURI(), e);
}
logger.error(request.getRequestURI(), e);
response = new ServiceRestResponse(EsitoType.KO, profileDB, e);
throw e;
}
return response;
}
@RequestMapping(value = EmsCustomRestConstants.PATH_GRAMM_CHIUSURA_LAVORAZIONE_FORNO, method = RequestMethod.POST)

View File

@@ -0,0 +1,163 @@
package it.integry.ems.customizations.production.service;
import it.integry.annotations.CustomerService;
import it.integry.ems._context.ApplicationContextProvider;
import it.integry.ems.migration._base.IntegryCustomer;
import it.integry.ems.production.event.ProductionOrderClosedEvent;
import it.integry.ems.production.event.ProductionOrderPausedEvent;
import it.integry.ems.production.event.ProductionOrderStartedEvent;
import it.integry.ems.production.event.ProductionUlCreatedEvent;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
import it.integry.ems_model.utility.Query;
import it.integry.ems_model.utility.UtilityDB;
import it.integry.maxidata.service.MaxiDataApiService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import java.sql.SQLException;
import java.time.LocalDate;
@CustomerService(IntegryCustomer.Lamonarca)
public class LamonarcaProductionService implements ApplicationListener {
private final Logger logger = LogManager.getLogger();
private MaxiDataApiService retrieveMaxiDataService(String dbName) {
String serviceId = String.format("maxidata-uve2k-service--%s", dbName);
try {
return ApplicationContextProvider.getApplicationContext().getBean(serviceId, MaxiDataApiService.class);
} catch (Exception e) {
logger.error("Error while trying to retrieve MaxiDataApiService", e);
return null;
}
}
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ProductionOrderStartedEvent) {
handleProductionOrderStarted((ProductionOrderStartedEvent) event);
} else if (event instanceof ProductionOrderPausedEvent) {
handleProductionOrderPaused((ProductionOrderPausedEvent) event);
} else if (event instanceof ProductionOrderClosedEvent) {
handleProductionOrderClosed((ProductionOrderClosedEvent) event);
} else if (event instanceof ProductionUlCreatedEvent) {
handleProductionUlCreated((ProductionUlCreatedEvent) event);
}
}
private void handleProductionOrderStarted(ProductionOrderStartedEvent event) {
logger.info("Handling ProductionOrderStartedEvent: {}", event);
MaxiDataApiService maxiDataApiService = retrieveMaxiDataService(event.getCustomerDB().getValue());
if (maxiDataApiService == null)
return;
try (MultiDBTransactionManager mdb = new MultiDBTransactionManager(event.getCustomerDB())) {
String idSchedaProd = retrieveIdSchedaProdByOrderNotes(mdb.getPrimaryConnection(), event.getGestione(), event.getDataOrd(), event.getNumOrd());
if (idSchedaProd == null) {
logger.warn("Nessun idSchedaProd trovato nelle note dell'ordine: {} - {} - {}", event.getGestione(), event.getDataOrd(), event.getNumOrd());
return;
}
maxiDataApiService.startProductionOrder(idSchedaProd);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
private void handleProductionOrderPaused(ProductionOrderPausedEvent event) {
logger.info("Handling ProductionOrderPausedEvent: {}", event);
MaxiDataApiService maxiDataApiService = retrieveMaxiDataService(event.getCustomerDB().getValue());
if (maxiDataApiService == null)
return;
try (MultiDBTransactionManager mdb = new MultiDBTransactionManager(event.getCustomerDB())) {
String idSchedaProd = retrieveIdSchedaProdByOrderNotes(mdb.getPrimaryConnection(), event.getGestione(), event.getDataOrd(), event.getNumOrd());
if (idSchedaProd == null) {
logger.warn("Nessun idSchedaProd trovato nelle note dell'ordine: {} - {} - {}", event.getGestione(), event.getDataOrd(), event.getNumOrd());
return;
}
maxiDataApiService.pauseProductionOrder(idSchedaProd);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
private void handleProductionOrderClosed(ProductionOrderClosedEvent event) {
logger.info("Handling ProductionOrderClosedEvent: {}", event);
MaxiDataApiService maxiDataApiService = retrieveMaxiDataService(event.getCustomerDB().getValue());
if (maxiDataApiService == null)
return;
try (MultiDBTransactionManager mdb = new MultiDBTransactionManager(event.getCustomerDB())) {
String idSchedaProd = retrieveIdSchedaProdByOrderNotes(mdb.getPrimaryConnection(), event.getGestione(), event.getDataOrd(), event.getNumOrd());
if (idSchedaProd == null) {
logger.warn("Nessun idSchedaProd trovato nelle note dell'ordine: {} - {} - {}", event.getGestione(), event.getDataOrd(), event.getNumOrd());
return;
}
maxiDataApiService.closeProductionOrder(idSchedaProd);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
public void handleProductionUlCreated(ProductionUlCreatedEvent event) {
logger.info("Handling ProductionUlCreatedEvent: {}", event);
MaxiDataApiService maxiDataApiService = retrieveMaxiDataService(event.getCustomerDB().getValue());
if (maxiDataApiService == null)
return;
try (MultiDBTransactionManager mdb = new MultiDBTransactionManager(event.getCustomerDB())) {
String idSchedaProd = retrieveIdSchedaProdByOrderNotes(mdb.getPrimaryConnection(), event.getGestione(), event.getDataOrd(), event.getNumOrd());
if (idSchedaProd == null) {
logger.warn("Nessun idSchedaProd trovato nelle note dell'ordine: {} - {} - {}", event.getGestione(), event.getDataOrd(), event.getNumOrd());
return;
}
maxiDataApiService.createNewProductionUnit(idSchedaProd, event.getProgressivo(), event.getQtaCol().intValue(), event.getNumCnf().intValue());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
private String retrieveIdSchedaProdByOrderNotes(Connection connection, String gestioneOrd, LocalDate dataOrd, int numeroOrd) throws SQLException {
String sql = "SELECT dtb_ordr_prod.system_note\n" +
"FROM dtb_ordt dtb_ordt_lav\n" +
" INNER JOIN dtb_ordr dtb_ordr_prod ON dtb_ordt_lav.data_ord_rif = dtb_ordr_prod.data_ord\n" +
" AND dtb_ordt_lav.num_ord_rif = dtb_ordr_prod.num_ord\n" +
" AND dtb_ordt_lav.gestione_rif = dtb_ordr_prod.gestione\n" +
"WHERE dtb_ordt_lav.gestione = {}\n" +
" AND dtb_ordt_lav.data_ord = {}\n" +
" AND dtb_ordt_lav.num_ord = {}";
String idSchedaProd = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(connection, Query.format(sql, gestioneOrd, dataOrd, numeroOrd));
return idSchedaProd;
}
}

View File

@@ -20,10 +20,7 @@ import it.integry.ems_model.entity.common.DtbDocOrdR;
import it.integry.ems_model.rules.util.DroolsUtil;
import it.integry.ems_model.service.SetupGest;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.UtilityBigDecimal;
import it.integry.ems_model.utility.UtilityDB;
import it.integry.ems_model.utility.UtilityHashMap;
import it.integry.ems_model.utility.UtilityString;
import it.integry.ems_model.utility.*;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
@@ -446,7 +443,7 @@ public class DocumentiDialogoImportServices {
if (testata instanceof WdtbDoct) {
((WdtbDocr) rigaDoc).setDataScadPartita(rows.get(i).getDataScad());
} else {
((DtbDocr) rigaDoc).setDataScad(rows.get(i).getDataScad());
((DtbDocr) rigaDoc).setDataScad(UtilityLocalDate.localDateFromDate(rows.get(i).getDataScad()));
}
}
@@ -791,7 +788,7 @@ public class DocumentiDialogoImportServices {
if (isDocumentoWeb) {
((WdtbDocr) rigaDoc).setDataScadPartita(row.getDataScad());
} else {
((DtbDocr) rigaDoc).setDataScad(row.getDataScad());
((DtbDocr) rigaDoc).setDataScad(UtilityLocalDate.localDateFromDate(row.getDataScad()));
}

View File

@@ -639,7 +639,7 @@ public class WPMService {
partita.setOperation(OperationType.INSERT_OR_UPDATE);
partita.setCodMart(codProd);
partita.setPartitaMag(partitaMagOrd);
partita.setDataScad(dataScadPartita);
partita.setDataScad(UtilityLocalDate.localDateFromDate(dataScadPartita));
arrayEntity.add(partita);
}
res.close();

View File

@@ -40,6 +40,7 @@ import java.math.BigDecimal;
import java.math.RoundingMode;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -205,7 +206,7 @@ public class ContoLavoroService {
Integer numOrd = rowOrdine.getNumOrd();
BigDecimal qtaProd = rowOrdine.getQtaProd();
String partitaMagProd = rowOrdine.getPartitaMag();
Date dataScad = rowOrdine.getDataScad();
LocalDate dataScad = UtilityLocalDate.localDateFromDate(rowOrdine.getDataScad());
String terminaLav = rowOrdine.getTerminaLav();
// Chiusura forzata prdozuone

View File

@@ -12,6 +12,7 @@ import it.integry.ems_model.entity.*;
import it.integry.ems_model.service.SetupGest;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.UtilityDB;
import it.integry.ems_model.utility.UtilityLocalDate;
import it.integry.ems_model.utility.UtilityString;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -268,7 +269,7 @@ public class ImportDocumentiEUROFOODService {
partMag.setOperation(OperationType.INSERT);
partMag.setCodMart(codMart);
partMag.setPartitaMag(partitaMag);
partMag.setDataScad(dataScad);
partMag.setDataScad(UtilityLocalDate.localDateFromDate(dataScad));
entityProcessor.processEntity(partMag, true, multiDBTransactionManager);
}
}

View File

@@ -20,6 +20,7 @@ import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.types.SetupGestKeySection;
import it.integry.ems_model.utility.UtilityDB;
import it.integry.ems_model.utility.UtilityDate;
import it.integry.ems_model.utility.UtilityLocalDate;
import it.integry.ems_model.utility.UtilityString;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -84,7 +85,7 @@ public class SyncFromPuddyService {
mtbPartitaMag.setOperation(OperationType.INSERT);
mtbPartitaMag.setCodMart(codMart);
mtbPartitaMag.setPartitaMag(partitaMag);
mtbPartitaMag.setDataScad(dataScadPart);
mtbPartitaMag.setDataScad(UtilityLocalDate.localDateFromDate(dataScadPart));
entityProcessor.processEntity(mtbPartitaMag, multiDBTransactionManager);
}

View File

@@ -7,6 +7,8 @@ import it.integry.ems.document.Import.dto.MaterialiDaDistintaDTO;
import it.integry.ems.document.Import.service.DocumentiLavDaDist;
import it.integry.ems.document.dto.*;
import it.integry.ems.javabeans.RequestDataDTO;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.ems.production.event.ProductionOrderClosedEvent;
import it.integry.ems.retail.wms.lavorazione.service.WMSLavorazioneService;
import it.integry.ems.rules.businessLogic.LoadColliService;
import it.integry.ems.rules.businessLogic.dto.LoadColliDTO;
@@ -32,6 +34,7 @@ import org.apache.logging.log4j.Logger;
import org.josql.Query;
import org.josql.QueryResults;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Scope;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
@@ -72,6 +75,8 @@ public class DocumentProdService {
private final String tipoMateriaPrima = "MATERIA PRIMA";
private final String tipoImballaggi = "IMBALLAGGI";
@Autowired
private ApplicationEventPublisher applicationEventPublisher;
public List<EntityBase> riapriGiornataProd(String codMdep, Date dataProd) throws Exception {
List<EntityBase> arrayEntity = new ArrayList<>();
@@ -649,6 +654,12 @@ public class DocumentProdService {
Statement storedProcedure = multiDBTransactionManager.getPrimaryConnection().createStatement();
storedProcedure.execute(syncChiusuraOrdineLavorazione);
applicationEventPublisher.publishEvent(new ProductionOrderClosedEvent(this,
IntegryCustomerDB.parse(multiDBTransactionManager.getPrimaryConnection().getDbName()),
carico.getGestione(),
UtilityLocalDate.localDateFromDate(carico.getDataOrd()),
carico.getNumOrd()));
}
private void generateCaricoProdottoFinito(CaricoProdFinLavDTO carico, List<EntityBase> arrayEntity) throws Exception {

View File

@@ -211,7 +211,7 @@ public class BiolexchImportService {
partMag.setOperation(OperationType.INSERT_OR_UPDATE);
partMag.setCodMart(codMart);
partMag.setPartitaMag(partitaMag);
partMag.setDataScad(dataScadPartitaMag);
partMag.setDataScad(UtilityLocalDate.localDateFromDate(dataScadPartitaMag));
if (!entities.isEmpty()) {
index = entities.size() - 1;
} else {

View File

@@ -21,7 +21,6 @@ import java.math.RoundingMode;
import java.nio.ByteBuffer;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
@@ -255,7 +254,7 @@ public class PackagesImportService {
partitaMagRif.setDataIns(now);
if (!UtilityString.isNullOrEmpty(dataScad))
partitaMagRif.setDataScad(new SimpleDateFormat("yyyyMMdd").parse(dataScad));
partitaMagRif.setDataScad(LocalDate.parse(dataScad, DateTimeFormatter.ofPattern("yyyyMMdd")));
// /////////////////////////////////////////
MtbColr row = new MtbColr();

View File

@@ -52,6 +52,9 @@ public class OrdiniImporter extends BaseEntityImporter<List<EntityBase>> impleme
break;
case MAXIDATA:
result = getContextBean(ProduzioniLamonarcaMaxidataService.class).importProduzioniLamonarca();
// final OrdiniMaxiDataImportService ordiniMaxiDataImportService = getContextBean(OrdiniMaxiDataImportService.class);
// ordiniMaxiDataImportService.importArticoli();
// result = ordiniMaxiDataImportService.importProduzioni();
break;
case ORDINIDAAPPROV:
result = getContextBean(OrdiniDaApprov.class).importOrdiniDaApprov(requestDto.getWhereCond());

View File

@@ -0,0 +1,339 @@
package it.integry.ems.order.Import.service;
import it.integry.common.var.CommonConstants;
import it.integry.ems._context.ApplicationContextProvider;
import it.integry.ems.exception.PrimaryDatabaseNotPresentException;
import it.integry.ems.retail.wms.Utility.WMSUtility;
import it.integry.ems.service.EntityProcessor;
import it.integry.ems.sync.MultiDBTransaction.Connection;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
import it.integry.ems.utility.UtilityEntity;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.config.EmsRestConstants;
import it.integry.ems_model.entity.*;
import it.integry.ems_model.service.SetupGest;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.*;
import it.integry.maxidata.client.model.MaxidataUveBII40V2BLLUVE2kSchedeProd;
import it.integry.maxidata.model.MaxiDataConfigDataDTO;
import it.integry.maxidata.service.MaxiDataApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;
@Service
@Scope("request")
public class OrdiniMaxiDataImportService {
@Autowired
private MultiDBTransactionManager multiDBTransactionManager;
@Autowired
private SetupGest setupGest;
@Autowired
private EntityProcessor entityProcessor;
private MaxiDataApiService maxiDataApiService;
@PostConstruct
private void init() throws PrimaryDatabaseNotPresentException {
String serviceId = String.format("maxidata-uve2k-service--%s", multiDBTransactionManager.getPrimaryConnection().getDbName());
maxiDataApiService = ApplicationContextProvider.getApplicationContext().getBean(serviceId, MaxiDataApiService.class);
}
public List<EntityBase> importArticoli() throws Exception {
Connection conn = multiDBTransactionManager.getPrimaryConnection();
List<MaxidataUveBII40V2BLLUVE2kSchedeProd> schedeProduzione = maxiDataApiService.retrieveSchedeProduzione();
if (schedeProduzione == null || schedeProduzione.isEmpty())
return new ArrayList<>();
final List<MtbAart> artsToSave = schedeProduzione.stream()
.map(x -> {
final BigDecimal qtaCnf = UtilityBigDecimal.divide(BigDecimal.valueOf(x.getQtaPezzi()), BigDecimal.valueOf(x.getQtaImballi()));
MtbAart mtbAart = new MtbAart();
mtbAart.setCodMart(x.getIdProdotto());
mtbAart.setDescrizione(x.getDescProdotto());
mtbAart.setDescrizioneEstesa(String.format("%s %s", x.getIdProdotto(), x.getDescProdotto()));
mtbAart.setCodMgrp("PF");
mtbAart.setCodMsgr("99999");
mtbAart.setCodMsfa(EmsRestConstants.NULL);
mtbAart.setCodTcolUl(UtilityString.isNull(x.getIdPallet(), "EPAL"));
if (x.getImballixPallet() != null && x.getImballixPallet() > 0) {
mtbAart.setColliPedana(BigDecimal.valueOf(x.getImballixPallet()));
mtbAart.setColliStrato(UtilityBigDecimal.divide(mtbAart.getColliPedana(), BigDecimal.valueOf(x.getStratixPallet())));
}
//mtbAart.setMarchio("");
mtbAart.setCodAliq("22");
mtbAart.setQtaCnf(qtaCnf);
mtbAart.setUntMis(UtilityBigDecimal.equalsTo(qtaCnf, BigDecimal.ZERO) ? "LT" : "PZ");
mtbAart.setUntMis2(!UtilityBigDecimal.equalsTo(qtaCnf, BigDecimal.ZERO) ? "LT" : null);
mtbAart.setRapConv2(!UtilityBigDecimal.equalsTo(qtaCnf, BigDecimal.ZERO) ? UtilityBigDecimal.divide(BigDecimal.ONE, qtaCnf) : null);
mtbAart.setCodDiviCar("EURO");
mtbAart.setCambioDiviCar(BigDecimal.ONE);
mtbAart.setCodDiviScar("EURO");
mtbAart.setCambioDiviScar(BigDecimal.ONE);
mtbAart.setCodBarreImb(x.getEaNCartone());
mtbAart.setBarCode(x.getEaNProdotto());
mtbAart.setPesoKg(UtilityBigDecimal.divide(x.getQtaLitri(), BigDecimal.valueOf(x.getQtaPezzi())));
mtbAart.setOperation(OperationType.INSERT_OR_UPDATE);
return mtbAart;
})
.collect(Collectors.toList());
entityProcessor.processEntityList(artsToSave, multiDBTransactionManager, true);
UtilityEntity.throwEntitiesException(artsToSave);
List<JtbCicl> anagDistinteLavoro = generateJtbCiclFromAnagArts(artsToSave);
entityProcessor.processEntityList(anagDistinteLavoro, multiDBTransactionManager, true);
UtilityEntity.throwEntitiesException(anagDistinteLavoro);
return UtilityEntity.toEntityBaseList(artsToSave);
}
public List<EntityBase> importProduzioni() throws Exception {
Connection conn = multiDBTransactionManager.getPrimaryConnection();
final HashMap<String, String> setupData = setupGest.getImportSetupSection(conn, "ORDINI LAVORAZIONE", "MAXIDATA");
String codMdepDefault = UtilityHashMap.getValueIfExists(setupData, "COD_MDEP_DEFAULT");
if (UtilityString.isNullOrEmpty(codMdepDefault))
throw new Exception("Nessun deposito di default configurato (IMPORT_ORDINI LAVORAZIONE > MAXIDATA > COD_MDEP_DEFAULT)");
VtbDest currentDepoDest = getCurrentDepoDest(codMdepDefault);
if (currentDepoDest == null || UtilityString.isNullOrEmpty(currentDepoDest.getCodAnag()))
throw new Exception(String.format("Nessun codice fornitore configurato per il deposito %s", codMdepDefault));
List<MaxidataUveBII40V2BLLUVE2kSchedeProd> schedeProduzione = maxiDataApiService.retrieveSchedeProduzione();
schedeProduzione = removeAlreadyImportedOrders(conn, schedeProduzione);
if (schedeProduzione == null || schedeProduzione.isEmpty())
return new ArrayList<>();
List<MtbAart> anafraficheArticoli = WMSUtility.getArticoliByCodMarts(
schedeProduzione.stream()
.map(MaxidataUveBII40V2BLLUVE2kSchedeProd::getIdProdotto)
.distinct()
.collect(Collectors.toList()),
conn);
List<DtbOrdt> generatedOrders = new ArrayList<>();
schedeProduzione.stream()
.collect(Collectors.groupingBy(MaxidataUveBII40V2BLLUVE2kSchedeProd::getDataPrevista))
.forEach((dataPrevista, schedeProdByDate) -> {
schedeProdByDate.stream()
.collect(Collectors.groupingBy(MaxidataUveBII40V2BLLUVE2kSchedeProd::getLineaProd))
.forEach((codJfas, schedeProdByLine) -> {
try {
DtbOrdt productionOrder = getOrCreateProductionOrder(conn, dataPrevista.toLocalDate(), codMdepDefault, codJfas, currentDepoDest.getCodAnag());
generatedOrders.add(productionOrder);
for (MaxidataUveBII40V2BLLUVE2kSchedeProd schedaProd : schedeProdByLine) {
MtbAart anagraficaArt = anafraficheArticoli.stream().filter(x -> x.getCodMart().equalsIgnoreCase(schedaProd.getIdProdotto()))
.findFirst()
.orElse(null);
if (anagraficaArt == null)
throw new Exception(String.format("L'articolo %s non esiste in anagrafica.", schedaProd.getIdProdotto()));
productionOrder.addDtbOrdr(new DtbOrdr()
.setNote(String.format("%s N°%d", UtilityLocalDate.formatDate(schedaProd.getDataPrevista().toLocalDate(), CommonConstants.DATE_FORMAT_DMY), schedaProd.getNumeroSchedaProd()))
.setSystemNote(schedaProd.getIdSchedaProd())
.setCodJfas(schedaProd.getLineaProd())
.setCodMart(schedaProd.getIdProdotto())
.setPartitaMag(schedaProd.getLottoProd())
.setUntOrd(anagraficaArt.getUntMis())
.setQtaOrd(BigDecimal.valueOf(schedaProd.getQtaPezzi()))
);
}
} catch (Exception e) {
throw new RuntimeException(e);
}
});
});
entityProcessor.processEntityList(generatedOrders, true);
UtilityEntity.throwEntitiesException(generatedOrders);
return UtilityEntity.toEntityBaseList(generatedOrders);
}
private MaxiDataConfigDataDTO retrieveUve2kConfiguration(Connection connection) throws Exception {
HashMap<String, String> setupValues = setupGest.getImportSetupSection(connection, "ORDINI LAVORAZIONE", "MAXIDATA");
String codMdepDefault = UtilityHashMap.getValueIfExists(setupValues, "COD_MDEP_DEFAULT");
if (UtilityString.isNullOrEmpty(codMdepDefault))
throw new Exception("Nessun deposito di destinazione per l'importazione degli ordini di produzione (Uve2K) configurato nella setup ORDINI LAVORAZIONE > MAXIDATA > COD_MDEP_DEFAULT.");
String jwtAccessToken = UtilityHashMap.getValueIfExists(setupValues, "UVE2K_JWT_ACCESS_TOKEN");
if (UtilityString.isNullOrEmpty(jwtAccessToken))
throw new Exception("Nessun JWT Access Token configurato per l'accesso a Uve2K nella setup ORDINI LAVORAZIONE > MAXIDATA > UVE2K_JWT_ACCESS_TOKEN.");
return new MaxiDataConfigDataDTO()
.setDefaultCodMdep(codMdepDefault)
.setJwtAccessToken(jwtAccessToken);
}
private VtbDest getCurrentDepoDest(String codMdep) throws Exception {
String sql = "SELECT mtb_depo.cod_anag, mtb_depo.cod_vdes " +
" FROM mtb_depo " +
" WHERE cod_mdep = " + UtilityDB.valueToString(codMdep);
return UtilityDB.executeSimpleQueryOnlyFirstRowDTO(multiDBTransactionManager.getPrimaryConnection(), sql, VtbDest.class);
}
private List<MaxidataUveBII40V2BLLUVE2kSchedeProd> removeAlreadyImportedOrders(Connection connection, List<MaxidataUveBII40V2BLLUVE2kSchedeProd> orders) throws Exception {
if (orders == null || orders.isEmpty())
return orders;
List<String> rifOrdsToCheck = orders.stream()
.map(MaxidataUveBII40V2BLLUVE2kSchedeProd::getIdSchedaProd)
.collect(Collectors.toList());
String sql = "SELECT system_note " +
" FROM " + DtbOrdr.ENTITY +
" WHERE system_note IN (" + UtilityQuery.concatStringFieldsWithSeparator(rifOrdsToCheck, ",") + ")";
List<String> existingRifOrds = UtilityDB.executeSimpleQueryOnlyFirstColumn(connection, sql);
if (existingRifOrds == null || existingRifOrds.isEmpty())
return orders;
return orders.stream()
.filter(x -> !existingRifOrds.contains(x.getIdSchedaProd()))
.collect(Collectors.toList());
}
private DtbOrdt getOrCreateProductionOrder(Connection connection, LocalDate dataOrd, String codMdep, String codJfas, String codAnag) throws Exception {
String sql = "SELECT * FROM " + DtbOrdt.ENTITY + " " +
" WHERE data_ord = " + UtilityDB.valueToString(dataOrd) + " " +
" AND gestione = 'A' " +
" AND gestione_rif = 'A' " +
" AND cod_mdep = " + UtilityDB.valueToString(codMdep) +
" AND cod_jfas = " + UtilityDB.valueToString(codJfas) +
" AND cod_anag = " + UtilityDB.valueToString(codAnag);
DtbOrdt productionOrder = UtilityDB.executeSimpleQueryOnlyFirstRowDTO(connection, sql, DtbOrdt.class);
if (productionOrder != null)
return productionOrder;
productionOrder = new DtbOrdt()
.setDataOrd(new Date())
.setGestione("A")
.setGestioneRif("A")
.setCodJfas(codJfas)
.setCodMdep(codMdep)
.setCodAnag(codAnag);
productionOrder.setOperation(OperationType.INSERT);
return productionOrder;
}
private void createPartitaMagIfNotExists(Connection connection, String codMart, String partitaMag, LocalDate dataScad) throws Exception {
String sql = "SELECT * FROM " + MtbPartitaMag.ENTITY + " " +
" WHERE cod_mart = " + UtilityDB.valueToString(codMart) + " " +
" AND partita_mag = " + UtilityDB.valueToString(partitaMag);
MtbPartitaMag mtbPartitaMag = UtilityDB.executeSimpleQueryOnlyFirstRowDTO(connection, sql, MtbPartitaMag.class);
if (mtbPartitaMag != null)
return;
mtbPartitaMag = new MtbPartitaMag()
.setCodMart(codMart)
.setPartitaMag(partitaMag)
.setDataScad(dataScad);
mtbPartitaMag.setOperation(OperationType.INSERT);
mtbPartitaMag.manageWithParentConnection(connection);
}
private List<JtbCicl> generateJtbCiclFromAnagArts(List<MtbAart> anagraficaArticoli) throws Exception {
List<JtbCicl> jtbCiclList = new ArrayList<>();
for (MtbAart art : anagraficaArticoli) {
JtbCicl jtbCicl = new JtbCicl()
.setCodProd(art.getCodMart())
.setCodJfas("PROD")
.setQtaProd(art.getQtaCnf())
.setgIniz(0)
.setGgTot(0)
.setDescrizioneProd(art.getDescrizione())
.setUntMisProd(art.getUntMis())
.setDescrizioneEstesa(art.getDescrizioneEstesa())
.setCodMart(art.getCodMart())
.setActivityTypeId("PRODUZIONE")
.setFlagTipologia("P")
.setFlagScomposizione("N")
.setCambioDiviCont(BigDecimal.ONE)
.setCodDiviCont("EURO");
jtbCicl.setOperation(OperationType.INSERT_OR_UPDATE);
jtbCiclList.add(jtbCicl);
JtbDistClavDir jtbDistClavDir = new JtbDistClavDir()
.setCodProd(art.getCodMart())
.setIdRiga(1)
.setCodJcosDir("MD")
.setDescrizione("MANODOPERA")
.setUntMis("ORE")
.setNumFase(1)
.setActivityTypeId("CONFEZIONAMENTO")
.setCodJfas("PROD")
.setFlagTipologia("A")
.setActivityDescription("CONFEZIONAMENTO")
.setDurationType("SS")
.setTimeType("SS")
.setQtaLav(BigDecimal.ZERO)
.setValUnt(BigDecimal.ZERO);
jtbDistClavDir.setOperation(OperationType.INSERT_OR_UPDATE);
jtbCicl.getJtbDistClavDir().add(jtbDistClavDir);
JrlCiclDisegni jrlCiclDisegni = new JrlCiclDisegni()
.setCodProd(art.getCodMart())
.setCodDisegno("ETICHETTA_SSCC_LAV")
.setQta(BigDecimal.ZERO)
.setRigaOrd(BigDecimal.ZERO);
jrlCiclDisegni.setOperation(OperationType.INSERT_OR_UPDATE);
jtbCicl.getJrlCiclDisegni().add(jrlCiclDisegni);
}
return jtbCiclList;
}
}

View File

@@ -15,6 +15,7 @@ import it.integry.ems_model.service.SetupGest;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.UtilityDB;
import it.integry.ems_model.utility.UtilityHashMap;
import it.integry.ems_model.utility.UtilityLocalDate;
import it.integry.ems_model.utility.UtilityString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
@@ -115,7 +116,7 @@ public class ProduzioniLamonarcaMaxidataService {
MtbPartitaMag mtbPartitaMag = new MtbPartitaMag();
mtbPartitaMag.setPartitaMag(produzioneDTO.getPartitaMag());
mtbPartitaMag.setCodMart(produzioneDTO.getCodMart());
mtbPartitaMag.setDataScad(produzioneDTO.getDataScad());
mtbPartitaMag.setDataScad(UtilityLocalDate.localDateFromDate(produzioneDTO.getDataScad()));
mtbPartitaMag.setOperation(OperationType.SELECT_OBJECT);
MtbPartitaMag mtbPartitaMagClone = entityProcessor.processEntity(mtbPartitaMag.clone(), multiDBTransactionManager);

View File

@@ -16,7 +16,6 @@ import it.integry.ems.service.dto.production.OrdineLavorazioneDTO;
import it.integry.ems.service.production.ProductionOrderDataHandlerService;
import it.integry.ems.status.ServiceChecker;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
import it.integry.ems_model.business_logic.GeneraOrdLav;
import it.integry.ems_model.config.EmsRestConstants;
import it.integry.ems_model.entity.MtbColt;
import it.integry.ems_model.types.OperationType;
@@ -99,8 +98,8 @@ public class MesProductionControllerV2 {
@RequestParam(required = false) String flagEvaso,
@RequestParam(required = false) String codJfas,
@RequestParam(required = false) String codAnag,
@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd",fallbackPatterns = "yyyy/MM/dd") LocalDate startDate,
@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd",fallbackPatterns = "yyyy/MM/dd") LocalDate endDate) throws Exception {
@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd", fallbackPatterns = "yyyy/MM/dd") LocalDate startDate,
@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd", fallbackPatterns = "yyyy/MM/dd") LocalDate endDate) throws Exception {
ServiceRestResponse response = new ServiceRestResponse(EsitoType.OK);
@@ -115,7 +114,7 @@ public class MesProductionControllerV2 {
ServiceRestResponse getOrdineLavorazione(HttpServletRequest request,
@RequestParam(CommonConstants.PROFILE_DB) String profileDB,
@RequestParam int numOrd,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd",fallbackPatterns = "yyyy/MM/dd") LocalDate dataOrd,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd", fallbackPatterns = "yyyy/MM/dd") LocalDate dataOrd,
@RequestParam String gestione,
@RequestParam String codJfas
) throws Exception {
@@ -180,13 +179,18 @@ public class MesProductionControllerV2 {
ServiceRestResponse openOrderSteps(HttpServletRequest request,
@RequestParam(CommonConstants.PROFILE_DB) String profileDB,
@RequestParam(required = false, defaultValue = "") String codJfas,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd",fallbackPatterns = "yyyy/MM/dd") LocalDate dataOrd,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd", fallbackPatterns = "yyyy/MM/dd") LocalDate dataOrd,
@RequestParam Integer numOrd,
@RequestParam String gestioneOrd,
@RequestParam(required = false, defaultValue = "0") int hrNum,
@RequestParam(required = false) String descrizioneAttivita) throws Exception {
mesProductionService.openStep(dataOrd, numOrd, gestioneOrd, UtilityString.emptyStr2Null(codJfas), hrNum, null, descrizioneAttivita);
return ServiceRestResponse.createPositiveResponse();
try {
mesProductionService.openStep(dataOrd, numOrd, gestioneOrd, UtilityString.emptyStr2Null(codJfas), hrNum, null, descrizioneAttivita);
return ServiceRestResponse.createPositiveResponse();
} catch (Exception e) {
multiDBTransactionManager.rollbackAll();
throw e;
}
}
@RequestMapping(value = EmsRestConstants.PATH_MES_CLOSE_ORDER_STEPS_V2, method = RequestMethod.GET)
@@ -194,14 +198,19 @@ public class MesProductionControllerV2 {
ServiceRestResponse closeOrderSteps(HttpServletRequest request,
@RequestParam(CommonConstants.PROFILE_DB) String profileDB,
@RequestParam(required = false, defaultValue = "") String codJfas,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd",fallbackPatterns = "yyyy/MM/dd") LocalDate dataOrd,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd", fallbackPatterns = "yyyy/MM/dd") LocalDate dataOrd,
@RequestParam Integer numOrd,
@RequestParam String gestioneOrd,
@RequestParam(required = false) Integer idStep,
@RequestParam(required = false) Integer idRiga) throws Exception {
mesProductionService.closeStep(dataOrd, numOrd, gestioneOrd, UtilityString.emptyStr2Null(codJfas), idStep, idRiga);
return ServiceRestResponse.createPositiveResponse();
try {
mesProductionService.closeStep(dataOrd, numOrd, gestioneOrd, UtilityString.emptyStr2Null(codJfas), idStep, idRiga);
return ServiceRestResponse.createPositiveResponse();
} catch (Exception e) {
multiDBTransactionManager.rollbackAll();
throw e;
}
}
@RequestMapping(value = EmsRestConstants.PATH_MES_UPDATE_QTA_IMMESSA_ORDER_STEPS_V2, method = RequestMethod.POST)
@@ -339,8 +348,12 @@ public class MesProductionControllerV2 {
@RequestParam(CommonConstants.PROFILE_DB) String profileDB,
@RequestBody CaricoProdottoFinitoDTO caricoProdottoFinitoDTO) throws Exception {
return ServiceRestResponse.createPositiveResponse(mesProductionService.createColloCaricoProdottoFinito(caricoProdottoFinitoDTO));
try {
return ServiceRestResponse.createPositiveResponse(mesProductionService.createColloCaricoProdottoFinito(caricoProdottoFinitoDTO));
} catch (Exception e) {
multiDBTransactionManager.rollbackAll();
throw e;
}
}
@@ -464,11 +477,11 @@ public class MesProductionControllerV2 {
try {
productionOrdersLifecycleService.stopOrdineLav(dto);
return ServiceRestResponse.createPositiveResponse();
} catch (Exception e) {
multiDBTransactionManager.rollbackAll();
throw e;
}
return ServiceRestResponse.createPositiveResponse();
}
@PostMapping(value = "ordine/reopen")
@@ -478,6 +491,7 @@ public class MesProductionControllerV2 {
return ServiceRestResponse.createPositiveResponse();
}
@PostMapping(value = "ordine/ripianifica")
public @ResponseBody
ServiceRestResponse ripianifica(@RequestBody RipianificaOrdineLavRequestDTO dto) throws Exception {

View File

@@ -3,13 +3,12 @@ package it.integry.ems.production.dto;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
public class CaricoProdottoFinitoDTO {
private String codMart;
private BigDecimal qtaCollo;
private LocalDate dataOrd;
private Date dataCollo;
private LocalDate dataCollo;
private String gestione;
private int numOrd;
private int rigaOrd;
@@ -202,11 +201,11 @@ public class CaricoProdottoFinitoDTO {
return this;
}
public Date getDataCollo() {
public LocalDate getDataCollo() {
return dataCollo;
}
public CaricoProdottoFinitoDTO setDataCollo(Date dataCollo) {
public CaricoProdottoFinitoDTO setDataCollo(LocalDate dataCollo) {
this.dataCollo = dataCollo;
return this;
}

View File

@@ -2,9 +2,13 @@ package it.integry.ems.production.dto;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
public class CreateUDCProduzioneRequestDTO {
private LocalDate customDataCollo;
private LocalDateTime customDataVersamento;
private String codMdep;
private String codJfas;
private String codAnag;
@@ -12,16 +16,42 @@ public class CreateUDCProduzioneRequestDTO {
private LocalDate dataOrd;
private Integer numOrd;
private String rifOrd;
private Integer rigaOrd;
private String codTcol;
private String codJcom;
private String codMart;
private String codVdes;
private BigDecimal qta;
private BigDecimal qtaCnf;
private BigDecimal numCnf;
private String partitaMag;
private String annotazioni;
private String codDtipProvv;
private int numEtich = 0;
public LocalDate getCustomDataCollo() {
return customDataCollo;
}
public CreateUDCProduzioneRequestDTO setCustomDataCollo(LocalDate customDataCollo) {
this.customDataCollo = customDataCollo;
return this;
}
public LocalDateTime getCustomDataVersamento() {
return customDataVersamento;
}
public CreateUDCProduzioneRequestDTO setCustomDataVersamento(LocalDateTime customDataVersamento) {
this.customDataVersamento = customDataVersamento;
return this;
}
public String getCodMdep() {
return codMdep;
}
@@ -76,6 +106,33 @@ public class CreateUDCProduzioneRequestDTO {
return this;
}
public String getRifOrd() {
return rifOrd;
}
public CreateUDCProduzioneRequestDTO setRifOrd(String rifOrd) {
this.rifOrd = rifOrd;
return this;
}
public Integer getRigaOrd() {
return rigaOrd;
}
public CreateUDCProduzioneRequestDTO setRigaOrd(Integer rigaOrd) {
this.rigaOrd = rigaOrd;
return this;
}
public String getCodTcol() {
return codTcol;
}
public CreateUDCProduzioneRequestDTO setCodTcol(String codTcol) {
this.codTcol = codTcol;
return this;
}
public String getCodJcom() {
return codJcom;
}
@@ -94,6 +151,15 @@ public class CreateUDCProduzioneRequestDTO {
return this;
}
public String getCodVdes() {
return codVdes;
}
public CreateUDCProduzioneRequestDTO setCodVdes(String codVdes) {
this.codVdes = codVdes;
return this;
}
public BigDecimal getQta() {
return qta;
}
@@ -138,4 +204,22 @@ public class CreateUDCProduzioneRequestDTO {
this.numEtich = numEtich;
return this;
}
public String getAnnotazioni() {
return annotazioni;
}
public CreateUDCProduzioneRequestDTO setAnnotazioni(String annotazioni) {
this.annotazioni = annotazioni;
return this;
}
public String getCodDtipProvv() {
return codDtipProvv;
}
public CreateUDCProduzioneRequestDTO setCodDtipProvv(String codDtipProvv) {
this.codDtipProvv = codDtipProvv;
return this;
}
}

View File

@@ -0,0 +1,32 @@
package it.integry.ems.production.event;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.event.BaseCustomerDBEvent;
import java.time.LocalDate;
public class ProductionOrderClosedEvent extends BaseCustomerDBEvent {
private final String gestione;
private final LocalDate dataOrd;
private final Integer numOrd;
public ProductionOrderClosedEvent(Object source, IntegryCustomerDB customerDB, String gestione, LocalDate dataOrd, Integer numOrd) {
super(source, customerDB);
this.gestione = gestione;
this.dataOrd = dataOrd;
this.numOrd = numOrd;
}
public String getGestione() {
return gestione;
}
public LocalDate getDataOrd() {
return dataOrd;
}
public Integer getNumOrd() {
return numOrd;
}
}

View File

@@ -0,0 +1,32 @@
package it.integry.ems.production.event;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.event.BaseCustomerDBEvent;
import java.time.LocalDate;
public class ProductionOrderPausedEvent extends BaseCustomerDBEvent {
private final String gestione;
private final LocalDate dataOrd;
private final Integer numOrd;
public ProductionOrderPausedEvent(Object source, IntegryCustomerDB customerDB, String gestione, LocalDate dataOrd, Integer numOrd) {
super(source, customerDB);
this.gestione = gestione;
this.dataOrd = dataOrd;
this.numOrd = numOrd;
}
public String getGestione() {
return gestione;
}
public LocalDate getDataOrd() {
return dataOrd;
}
public Integer getNumOrd() {
return numOrd;
}
}

View File

@@ -0,0 +1,32 @@
package it.integry.ems.production.event;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.event.BaseCustomerDBEvent;
import java.time.LocalDate;
public class ProductionOrderStartedEvent extends BaseCustomerDBEvent {
private final String gestione;
private final LocalDate dataOrd;
private final Integer numOrd;
public ProductionOrderStartedEvent(Object source, IntegryCustomerDB customerDB, String gestione, LocalDate dataOrd, Integer numOrd) {
super(source, customerDB);
this.gestione = gestione;
this.dataOrd = dataOrd;
this.numOrd = numOrd;
}
public String getGestione() {
return gestione;
}
public LocalDate getDataOrd() {
return dataOrd;
}
public Integer getNumOrd() {
return numOrd;
}
}

View File

@@ -0,0 +1,122 @@
package it.integry.ems.production.event;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.event.BaseCustomerDBEvent;
import java.math.BigDecimal;
import java.time.LocalDate;
public class ProductionUlCreatedEvent extends BaseCustomerDBEvent {
private final int numCollo;
private final LocalDate dataCollo;
private final String gestione;
private final short segno;
private final String serCollo;
private final int progressivo;
private final String codMart;
private final String partitaMag;
private final BigDecimal qtaCol;
private final BigDecimal numCnf;
private final BigDecimal qtaCnf;
private final String codJfas;
private final String codJcom;
private final String codMdep;
private final LocalDate dataOrd;
private final Integer numOrd;
private final Integer rigaOrd;
public ProductionUlCreatedEvent(Object source, IntegryCustomerDB customerDB, int numCollo, LocalDate dataCollo, String gestione, short segno, String serCollo,
int progressivo, String codMart, String partitaMag, BigDecimal qtaCol, BigDecimal numCnf, BigDecimal qtaCnf,
String codJfas, String codJcom, String codMdep,
LocalDate dataOrd, Integer numOrd, Integer rigaOrd) {
super(source, customerDB);
this.numCollo = numCollo;
this.dataCollo = dataCollo;
this.gestione = gestione;
this.segno = segno;
this.serCollo = serCollo;
this.progressivo = progressivo;
this.codMart = codMart;
this.partitaMag = partitaMag;
this.qtaCol = qtaCol;
this.numCnf = numCnf;
this.qtaCnf = qtaCnf;
this.codJfas = codJfas;
this.codJcom = codJcom;
this.codMdep = codMdep;
this.dataOrd = dataOrd;
this.numOrd = numOrd;
this.rigaOrd = rigaOrd;
}
public int getNumCollo() {
return numCollo;
}
public LocalDate getDataCollo() {
return dataCollo;
}
public String getGestione() {
return gestione;
}
public short getSegno() {
return segno;
}
public String getSerCollo() {
return serCollo;
}
public int getProgressivo() {
return progressivo;
}
public String getCodMart() {
return codMart;
}
public String getPartitaMag() {
return partitaMag;
}
public BigDecimal getQtaCol() {
return qtaCol;
}
public BigDecimal getNumCnf() {
return numCnf;
}
public BigDecimal getQtaCnf() {
return qtaCnf;
}
public String getCodJfas() {
return codJfas;
}
public String getCodJcom() {
return codJcom;
}
public String getCodMdep() {
return codMdep;
}
public LocalDate getDataOrd() {
return dataOrd;
}
public Integer getNumOrd() {
return numOrd;
}
public Integer getRigaOrd() {
return rigaOrd;
}
}

View File

@@ -14,10 +14,15 @@ import it.integry.ems.document.dto.ScaricoLavorazioneDTO;
import it.integry.ems.document.service.DocumentProdService;
import it.integry.ems.exception.MissingDataException;
import it.integry.ems.exception.PrimaryDatabaseNotPresentException;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.ems.production.dto.*;
import it.integry.ems.production.event.ProductionOrderPausedEvent;
import it.integry.ems.production.event.ProductionOrderStartedEvent;
import it.integry.ems.production.event.ProductionUlCreatedEvent;
import it.integry.ems.report.dto.JasperDTO;
import it.integry.ems.report.dto.PairsDTO;
import it.integry.ems.retail.pvmRetail.service.PvmService;
import it.integry.ems.retail.wms.Utility.WMSUtility;
import it.integry.ems.retail.wms.accettazione.service.WMSAccettazioneService;
import it.integry.ems.retail.wms.dto.*;
import it.integry.ems.retail.wms.generic.dto.MvwSitArtUdcDetInventarioDTO;
@@ -48,17 +53,16 @@ import it.integry.ems_model.utility.BarcodeEan128.Ean128Model;
import it.integry.ems_model.utility.BarcodeEan128.UtilityBarcodeEan128;
import it.integry.ems_model.utility.*;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.apache.http.entity.ContentType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.pdfbox.printing.Orientation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.net.HttpURLConnection;
@@ -121,6 +125,9 @@ public class MesProductionServiceV2 {
@Autowired
private WMSGiacenzaULService wmsGiacenzaULService;
@Autowired
private ApplicationEventPublisher applicationEventPublisher;
public BasePanelAnswerDTO callSupervisorServiceGET(String serviceIp, int servicePort, String serviceName, HashMap<String, String> queryParams) throws Exception {
Integer timeout = setupGest.getSetupInteger(multiDBTransactionManager.getPrimaryConnection(), "MES", "HMI", "TIMEOUT_MACHINE_CONNECTION", 5);
@@ -501,6 +508,13 @@ public class MesProductionServiceV2 {
Statement storedProcedure = multiDBTransactionManager.getPrimaryConnection().createStatement();
storedProcedure.execute(syncOpenOrder);
applicationEventPublisher.publishEvent(new ProductionOrderStartedEvent(
this,
IntegryCustomerDB.parse(multiDBTransactionManager.getPrimaryConnection().getDbName()),
gestioneOrd,
dataOrd,
numOrd));
}
@@ -559,6 +573,13 @@ public class MesProductionServiceV2 {
entityProcessor.processEntityList(dtbOrdtList, skipCommit);
UtilityEntity.throwEntitiesException(UtilityEntity.toEntityBaseList(dtbOrdtList));
applicationEventPublisher.publishEvent(new ProductionOrderPausedEvent(
this,
IntegryCustomerDB.parse(multiDBTransactionManager.getPrimaryConnection().getDbName()),
gestioneOrd,
dataOrd,
numOrd));
}
public void cambioFase(LocalDate dataOrd, Integer numOrd, String gestioneOrd, String codJfas, Integer idStep, Integer idRiga, String newCodJfas) throws Exception {
@@ -717,7 +738,7 @@ public class MesProductionServiceV2 {
throw new Exception("Non è stato configurato un indirizzo ip per il pannello supervisore ");
if (printerServicePort <= 0 )
if (printerServicePort <= 0)
throw new Exception("Non è stato configurato una porta per il pannello supervisore ");
return hmiData;
@@ -757,10 +778,16 @@ public class MesProductionServiceV2 {
}};
MtbColt createdUdc = wmsLavorazioneService.createUDC(new CreateUDCRequestDTO()
.setDataCollo(request.getCustomDataCollo())
.setCodMdep(request.getCodMdep())
.setCodJfas(request.getCodJfas())
.setCodAnag(request.getCodAnag())
.setCodVdes(request.getCodVdes())
.setPosizione(request.getPosizione())
.setCodTcol(request.getCodTcol())
.setRifOrd(request.getRifOrd())
.setDataVersamento(request.getCustomDataVersamento())
.setCodDtipProvv(request.getCodDtipProvv())
.setOrders(orders));
final InsertUDCRowResponseDTO insertUDCRowResponse = wmsAccettazioneService.insertUDCRow(new InsertUDCRowRequestDTO()
@@ -769,19 +796,15 @@ public class MesProductionServiceV2 {
.setPartitaMag(request.getPartitaMag())
.setDataOrd(request.getDataOrd())
.setNumOrd(request.getNumOrd())
.setRigaOrd(0)
.setRigaOrd(request.getRigaOrd())
.setCodJcom(request.getCodJcom())
.setQtaTot(request.getQta())
.setQtaCnf(request.getQtaCnf())
.setNumCnf(request.getNumCnf()));
.setNumCnf(request.getNumCnf())
.setDatetimeRow(request.getCustomDataVersamento())
.setAnnotazioni(request.getAnnotazioni())
.setNumEtich(Math.max(request.getNumEtich(), 0)));
if (request.getNumEtich() > 0 && insertUDCRowResponse.getSavedMtbColr() != null) {
MtbColr savedMtbColr = insertUDCRowResponse.getSavedMtbColr()
.setNumEtich(request.getNumEtich());
savedMtbColr.setOperation(OperationType.UPDATE);
entityProcessor.processEntity(savedMtbColr, multiDBTransactionManager);
}
CloseUDCLavorazioneRequestDTO closeRequest = new CloseUDCLavorazioneRequestDTO();
closeRequest.setMtbColt(createdUdc);
@@ -799,6 +822,27 @@ public class MesProductionServiceV2 {
Statement storedProcedure = multiDBTransactionManager.getPrimaryConnection().createStatement();
storedProcedure.execute(syncNewULLavorazione);
applicationEventPublisher.publishEvent(new ProductionUlCreatedEvent(
this,
IntegryCustomerDB.parse(multiDBTransactionManager.getPrimaryConnection().getDbName()),
createdUdc.getNumCollo(),
createdUdc.getDataCollo(),
createdUdc.getGestione(),
(short) createdUdc.getSegno().intValue(),
createdUdc.getSerCollo(),
createdUdc.getProgressivoUl(),
insertUDCRowResponse.getSavedMtbColr().getCodMart(),
insertUDCRowResponse.getSavedMtbColr().getPartitaMag(),
insertUDCRowResponse.getSavedMtbColr().getQtaCol(),
insertUDCRowResponse.getSavedMtbColr().getNumCnf(),
insertUDCRowResponse.getSavedMtbColr().getQtaCnf(),
createdUdc.getCodJfas(),
insertUDCRowResponse.getSavedMtbColr().getCodJcom(),
createdUdc.getCodMdep(),
insertUDCRowResponse.getSavedMtbColr().getDataOrd(),
insertUDCRowResponse.getSavedMtbColr().getNumOrd(),
insertUDCRowResponse.getSavedMtbColr().getRigaOrd()));
return createdUdc;
}
@@ -867,12 +911,12 @@ public class MesProductionServiceV2 {
if (UtilityString.isNullOrEmpty(reportName)) {
if (firstChildCodMart != null) {
reportName = wmsLavorazioneService.getEtichettaSSCCArticolo(firstChildCodMart);
if (UtilityString.hasContent(reportName)) {
logger.debug("Eseguita stampa SSCC del report " + reportName);
}else {
logger.error("Nessun disegno trovato con il cod_prod " + firstChildCodMart);
}
reportName = wmsLavorazioneService.getEtichettaSSCCArticolo(firstChildCodMart);
if (UtilityString.hasContent(reportName)) {
logger.debug("Eseguita stampa SSCC del report " + reportName);
} else {
logger.error("Nessun disegno trovato con il cod_prod " + firstChildCodMart);
}
} else {
logger.error("Il collo " + mtbColtToPrint.getNumCollo() + " del " + CommonConstants.DATETIME_DMY_SLASHED_FORMATTER.format(mtbColtToPrint.getDataCollo()) + " non ha una riga prodotto al suo interno");
@@ -965,7 +1009,8 @@ public class MesProductionServiceV2 {
.setPartitaMag(dtbOrdt.getPartitaMag())
.setNumEtich(1)
.setQta(BigDecimal.ZERO)
.setNumCnf(BigDecimal.ZERO));
.setNumCnf(BigDecimal.ZERO)
.setRigaOrd(0));
}
private RegisterSupervisorDTO getSupervisorPanelData(String codJfas) throws Exception {
@@ -1066,10 +1111,9 @@ public class MesProductionServiceV2 {
ordineLav.setOperation(OperationType.SELECT_OBJECT);
entityProcessor.processEntity(ordineLav, multiDBTransactionManager);
MtbAart mtbAart = new MtbAart().setCodMart(ordineLav.getCodProd());
mtbAart.setOperation(OperationType.SELECT_OBJECT);
entityProcessor.processEntity(mtbAart, multiDBTransactionManager);
MtbAart mtbAart =
WMSUtility.getArticoloByCodMart(ordineLav.getCodProd(), multiDBTransactionManager.getPrimaryConnection());
if (UtilityBigDecimal.isNullOrZero(dto.getQtaCollo())) {
if (UtilityBigDecimal.isNullOrZero(dto.getColliPedana())) {
@@ -1095,7 +1139,8 @@ public class MesProductionServiceV2 {
}
MtbColt mtbColtToInsert = null;
MtbColt productionUdc = null;
MtbColr savedMtbColr = null;
if (dto.isAccodaAdEsistenti()) {
String queryMtbColt = "SELECT mtb_colr.datetime_row, mtb_colr.* " +
@@ -1115,68 +1160,70 @@ public class MesProductionServiceV2 {
List<MtbColt> alreadyPresentMtbColts = UtilityDB.executeSimpleQueryDTO(multiDBTransactionManager.getPrimaryConnection(), queryMtbColt, MtbColt.class);
if (alreadyPresentMtbColts != null && !alreadyPresentMtbColts.isEmpty()) {
mtbColtToInsert = alreadyPresentMtbColts.get(0);
mtbColtToInsert.setOperation(OperationType.NO_OP);
productionUdc = alreadyPresentMtbColts.get(0);
productionUdc.setOperation(OperationType.NO_OP);
}
}
if (mtbColtToInsert == null) {
mtbColtToInsert = new MtbColt()
.setMtbColr(new ArrayList<>())
.setGestione("L")
.setSegno(1)
savedMtbColr = new MtbColr()
.setCodJcom(ordineLav.getCodJcom())
.setDataOrd(dto.getDataOrd())
.setNumOrd(dto.getNumOrd())
.setCodMart(ordineLav.getCodProd())
.setPartitaMag(ordineLav.getPartitaMag())
.setRigaOrd(UtilityInteger.isNull(dto.getRigaOrd(), 0))
.setNumEtich(dto.getNumEtich())
.setNote(dto.getNote())
.setQtaCol(dto.getQtaCollo());
if (dto.getDataVers() != null) {
savedMtbColr.setDatetimeRow(dto.getDataVers());
}
savedMtbColr.setOperation(OperationType.INSERT);
productionUdc.getMtbColr().add(savedMtbColr);
entityProcessor.processEntity(productionUdc, true, multiDBTransactionManager);
} else {
final CreateUDCProduzioneRequestDTO createUdcRequest = new CreateUDCProduzioneRequestDTO()
.setDataOrd(dto.getDataOrd())
.setNumOrd(dto.getNumOrd())
.setCodMdep(UtilityString.isNull(dto.getCodMdep(), ordineLav.getCodMdep()))
.setCodJfas(UtilityString.isNull(dto.getCodJfas(), ordineLav.getCodJfas()))
.setCodVdes(UtilityString.isNull(dto.getCodVdes(), ordineLav.getCodVdes()))
.setCodAnag(ordineLav.getCodAnag())
.setPosizione(dto.getCodJfas())
.setDataOrd(dto.getDataOrd())
.setCodTcol(ordineLav.getCodTcolUl())
.setRifOrd(ordineLav.getRifOrd())
.setCodVdes(ordineLav.getCodVdes())
.setPreparatoDa(dto.getPreparatoDa())
.setNumOrd(dto.getNumOrd());
.setRifOrd(ordineLav.getRifOrd());
if (dto.getDataCollo() != null) {
mtbColtToInsert.setDataCollo(UtilityLocalDate.localDateFromDate(dto.getDataCollo()));
createUdcRequest.setCustomDataCollo(dto.getDataCollo());
}
if (dto.getDataVers() != null) {
mtbColtToInsert.setDataVers(dto.getDataVers());
createUdcRequest.setCustomDataVersamento(dto.getDataVers());
}
if (dto.isSegnaQuarantena()) {
String codDtipProvv = setupGest.getSetup("MES", "SETUP", "COD_DTIP_PROVV");
if (UtilityString.isNullOrEmpty(codDtipProvv)) {
if (UtilityString.isNullOrEmpty(codDtipProvv))
throw new GestSetupNotFoundException("MES", "SETUP", "COD_DTIP_PROVV");
}
mtbColtToInsert.setCodDtipProvv(codDtipProvv);
createUdcRequest.setCodDtipProvv(codDtipProvv);
}
mtbColtToInsert.setOperation(OperationType.INSERT_OR_UPDATE);
createUdcRequest.setCodJcom(ordineLav.getCodJcom())
.setCodMart(ordineLav.getCodProd())
.setPartitaMag(ordineLav.getPartitaMag())
.setNumEtich(dto.getNumEtich())
.setQta(dto.getQtaCollo())
.setRigaOrd(UtilityInteger.isNull(dto.getRigaOrd(), 0))
.setAnnotazioni(dto.getNote());
productionUdc = createULLavorazione(createUdcRequest);
savedMtbColr = productionUdc.getMtbColr().get(0);
}
MtbColr mtbColrToInsert = new MtbColr()
.setCodJcom(ordineLav.getCodJcom())
.setDataOrd(dto.getDataOrd())
.setNumOrd(dto.getNumOrd())
.setCodMart(ordineLav.getCodProd())
.setPartitaMag(ordineLav.getPartitaMag())
.setRigaOrd(UtilityInteger.isNull(dto.getRigaOrd(), 0))
.setNumEtich(dto.getNumEtich())
.setNote(dto.getNote())
.setQtaCol(dto.getQtaCollo());
if (dto.getDataVers() != null) {
mtbColrToInsert.setDatetimeRow(dto.getDataVers());
}
mtbColrToInsert.setOperation(OperationType.INSERT);
mtbColtToInsert.getMtbColr().add(mtbColrToInsert);
entityProcessor.processEntity(mtbColtToInsert, true, multiDBTransactionManager);
if (dto.isSegnaQuarantena()) {
String indirizziQuarantena = setupGest.getSetup("MES", "MAIL", "INDIRIZZI_QUARANTENA");
@@ -1188,14 +1235,14 @@ public class MesProductionServiceV2 {
}
testoMailQuarantena = testoMailQuarantena
.replace("[codMdep]", mtbColtToInsert.getCodMdep())
.replace("[dataCollo]", UtilityLocalDate.formatDate(mtbColtToInsert.getDataCollo(), CommonConstants.DATE_FORMAT_DMY))
.replace("[numCollo]", String.valueOf(mtbColtToInsert.getNumCollo()))
.replace("[codMdep]", productionUdc.getCodMdep())
.replace("[dataCollo]", UtilityLocalDate.formatDate(productionUdc.getDataCollo(), CommonConstants.DATE_FORMAT_DMY))
.replace("[numCollo]", String.valueOf(productionUdc.getNumCollo()))
.replace("[articolo]", String.format("%s - %s", mtbAart.getCodMart(), mtbAart.getDescrizione()))
.replace("[partitaMag]", mtbColrToInsert.getPartitaMag())
.replace("[qtaCol]", UtilityString.bigDecimalToString(mtbColrToInsert.getQtaCol(), "#,###"))
.replace("[numCnf]", UtilityString.bigDecimalToString(mtbColrToInsert.getNumCnf(), "#,###"))
.replace("[posizione]", mtbColtToInsert.getPosizione());
.replace("[partitaMag]", savedMtbColr.getPartitaMag())
.replace("[qtaCol]", UtilityString.bigDecimalToString(savedMtbColr.getQtaCol(), "#,###"))
.replace("[numCnf]", UtilityString.bigDecimalToString(savedMtbColr.getNumCnf(), "#,###"))
.replace("[posizione]", productionUdc.getPosizione());
String subject = "Pedane in Quarantena";
@@ -1212,10 +1259,10 @@ public class MesProductionServiceV2 {
}
}
return mtbColtToInsert;
return productionUdc;
}
private int getMaxFaseOrdine(DtbOrdt ordineLav) throws SQLException, IOException, PrimaryDatabaseNotPresentException {
private int getMaxFaseOrdine(DtbOrdt ordineLav) throws SQLException, PrimaryDatabaseNotPresentException {
String sql = "select top 1 num_fase \n" +
"from dtb_ord_steps \n" +
"where data_ord = " + UtilityDB.valueToString(ordineLav.getDataOrd()) +
@@ -1495,7 +1542,7 @@ public class MesProductionServiceV2 {
&& matchLottoSlToOrdine
&& !UtilityString.isNullOrEmpty(ordineLav.getPartitaMag())
&& (!partitaMagRow.getPartitaMagProd().equalsIgnoreCase(partitaMagOrdine.getPartitaMagProd())
|| !DateUtils.isSameDay(partitaMagRow.getDataScad(), partitaMagOrdine.getDataScad()))) {
|| !partitaMagRow.getDataScad().isEqual(partitaMagOrdine.getDataScad()))) {
if (!partitaMagRow.getPartitaMagProd().equalsIgnoreCase(partitaMagOrdine.getPartitaMagProd())) {
response.getAnomalie().add(AnomalieDTO.warning(String.format(
"Lotto di produzione (%s) diverso da quello in lavorazione (%s).\nVuoi creare un nuovo ordine?",
@@ -1504,8 +1551,8 @@ public class MesProductionServiceV2 {
} else {
response.getAnomalie().add(AnomalieDTO.warning(String.format(
"La data di scadenza del lotto versato (%s) è diversa da quella del lotto di lavorazione (%s).\nVuoi creare un nuovo ordine?",
UtilityDate.formatDate(partitaMagRow.getDataScad(), CommonConstants.DATE_FORMAT_DMY),
UtilityDate.formatDate(partitaMagOrdine.getDataScad(), CommonConstants.DATE_FORMAT_DMY)
UtilityLocalDate.formatDate(partitaMagRow.getDataScad(), CommonConstants.DATE_FORMAT_DMY),
UtilityLocalDate.formatDate(partitaMagOrdine.getDataScad(), CommonConstants.DATE_FORMAT_DMY)
)));
}
@@ -1718,7 +1765,7 @@ public class MesProductionServiceV2 {
&& scarico.getCodGruppo().equalsIgnoreCase(codMgrpSL)
&& (UtilityString.isNullOrEmpty(ordine.getPartitaMag())
|| !partitaOrdine.getPartitaMagProd().equalsIgnoreCase(partitaSL.getPartitaMagProd())
|| !DateUtils.isSameDay(partitaOrdine.getDataScad(), partitaSL.getDataScad()))) {
|| !partitaOrdine.getDataScad().isEqual(partitaSL.getDataScad()))) {
String partitaMagProd = UtilityString.isNull(partitaSL.getPartitaMagProd(), partitaSL.getPartitaMag());
sql = Query.format(

View File

@@ -147,7 +147,7 @@ public class OrtoFruttaProductionService {
.setCodMdep(dto.getCodMdepProd())
.setCodJfas(dto.getCodJfas())
.setDataOrd(dto.getDataOrd())
.setDataCollo(UtilityLocalDate.localDateToDate(dto.getDataCollo()))
.setDataCollo(dto.getDataCollo())
.setNumOrd(dto.getNumOrd())
.setGestione(dto.getGestione())
.setQtaCollo(dto.getQtaCol());

View File

@@ -9,9 +9,11 @@ import it.integry.ems.document.dto.RientroLavorazioneDTO;
import it.integry.ems.document.dto.ScaricoLavorazioneDTO;
import it.integry.ems.exception.MissingDataException;
import it.integry.ems.javabeans.RequestDataDTO;
import it.integry.ems.migration._base.IntegryCustomerDB;
import it.integry.ems.product.importaz.service.RipianificaOrdineLavRequestDTO;
import it.integry.ems.production.dto.AnnullaOrdLavRequestDTO;
import it.integry.ems.production.dto.ReopenOrdineLavRequestDTO;
import it.integry.ems.production.event.ProductionOrderClosedEvent;
import it.integry.ems.service.AziendaService;
import it.integry.ems.service.EntityProcessor;
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
@@ -26,10 +28,14 @@ import org.apache.commons.lang3.ObjectUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;
@Service
@@ -58,6 +64,9 @@ public class ProductionOrdersLifecycleService {
@Autowired
private MesProductionServiceV2 mesProductionServiceV2;
@Autowired
private ApplicationEventPublisher applicationEventPublisher;
public void stopOrdineLav(ChiusuraLavorazioneDTO dto) throws Exception {
DtbOrdt dtbOrdt = dto.getOrdine();
if (dtbOrdt == null) {
@@ -178,6 +187,7 @@ public class ProductionOrdersLifecycleService {
productionService.chiudiOrdineLavorazione(dto);
//</editor-fold>
//TODO: Spostare le logiche del supervisor in una component che ascolta l'evento pubblicato
if (mesProductionServiceV2.hasSupervisorPanel(dto.getCodJfas())) {
HashMap<String, Object> body = new HashMap<>();
@@ -190,13 +200,18 @@ public class ProductionOrdersLifecycleService {
try {
mesProductionServiceV2.sendCommand(dto.getCodJfas(), "order/stop", mapper.convertValue(body, JsonNode.class));
} catch (Exception e) {
logger.error(e);
if ((!UtilityDebug.isDebugExecution() && !UtilityDebug.isIntegryServer())) {
throw e;
}
}
}
applicationEventPublisher.publishEvent(new ProductionOrderClosedEvent(this,
IntegryCustomerDB.parse(multiDBTransactionManager.getPrimaryConnection().getDbName()),
dtbOrdt.getGestione(),
UtilityLocalDate.localDateFromDate(dtbOrdt.getDataOrd()),
dtbOrdt.getNumOrd()));
}
public void reopenOrdineLav(ReopenOrdineLavRequestDTO reopenOrdineLavRequestDTO) throws Exception {

View File

@@ -1764,7 +1764,7 @@ public class ProductionService {
.setPartitaMag(partitaMag)
.setPartitaMagProd(partitaMagProd)
.setCodMart(codMart)
.setDataScad(UtilityLocalDate.localDateToDate(dataScad));
.setDataScad(dataScad);
boolean setDescrizione = setupGest.getSetupBoolean("MTB_PARTITA_MAG", "SETUP", "SET_DESCRIZIONE_FROM_NOTE_ORDINE");

View File

@@ -299,7 +299,7 @@ public class WMSUtility {
.setCodDtipDoc(insertUDCRowRequestDTO.getCodDtip())
.setSerDoc(insertUDCRowRequestDTO.getSerDoc())
.setDatetimeRow(UtilityLocalDate.getNowTime());
.setDatetimeRow(UtilityLocalDate.isNull(insertUDCRowRequestDTO.getDatetimeRow(), UtilityLocalDate.getNowTime()));
if (insertUDCRowRequestDTO.getCodMart() != null) {

View File

@@ -312,7 +312,8 @@ public class WMSAccettazioneService {
.setCodDtipDoc(insertUDCRowRequestDTO.getCodDtip())
.setSerDoc(insertUDCRowRequestDTO.getSerDoc())
.setDatetimeRow(UtilityLocalDate.getNowTime());
.setDatetimeRow(UtilityLocalDate.getNowTime())
.setNumEtich(insertUDCRowRequestDTO.getNumEtich());
if (insertUDCRowRequestDTO.getCodMart() != null) {

View File

@@ -1,6 +1,7 @@
package it.integry.ems.retail.wms.dto;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
public class CreateUDCRequestDTO {
@@ -17,8 +18,11 @@ public class CreateUDCRequestDTO {
private String posizione;
private String annotazioni;
private String rifOrd;
private LocalDateTime dataVersamento;
private String barcodeUl;
private String codDtipProvv;
private List<CreateUDCRequestOrderDTO> orders;
@@ -86,6 +90,24 @@ public class CreateUDCRequestDTO {
return this;
}
public String getRifOrd() {
return rifOrd;
}
public CreateUDCRequestDTO setRifOrd(String rifOrd) {
this.rifOrd = rifOrd;
return this;
}
public LocalDateTime getDataVersamento() {
return dataVersamento;
}
public CreateUDCRequestDTO setDataVersamento(LocalDateTime dataVersamento) {
this.dataVersamento = dataVersamento;
return this;
}
public String getBarcodeUl() {
return barcodeUl;
}
@@ -95,6 +117,15 @@ public class CreateUDCRequestDTO {
return this;
}
public String getCodDtipProvv() {
return codDtipProvv;
}
public CreateUDCRequestDTO setCodDtipProvv(String codDtipProvv) {
this.codDtipProvv = codDtipProvv;
return this;
}
public List<CreateUDCRequestOrderDTO> getOrders() {
return orders;
}

View File

@@ -4,6 +4,7 @@ import it.integry.ems_model.entity.MtbColt;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
public class InsertUDCRowRequestDTO {
@@ -19,6 +20,7 @@ public class InsertUDCRowRequestDTO {
private LocalDate dataScad;
private String codJcom;
private String gestioneRif;
private LocalDateTime datetimeRow;
private LocalDate dataOrd;
private Integer numOrd;
@@ -30,6 +32,8 @@ public class InsertUDCRowRequestDTO {
private String codDtip;
private String fullName;
private String annotazioni;
private Integer numEtich;
public MtbColt getTargetMtbColt() {
return targetMtbColt;
@@ -130,6 +134,15 @@ public class InsertUDCRowRequestDTO {
return this;
}
public LocalDateTime getDatetimeRow() {
return datetimeRow;
}
public InsertUDCRowRequestDTO setDatetimeRow(LocalDateTime datetimeRow) {
this.datetimeRow = datetimeRow;
return this;
}
public LocalDate getDataOrd() {
return dataOrd;
}
@@ -201,4 +214,22 @@ public class InsertUDCRowRequestDTO {
this.fullName = fullName;
return this;
}
public String getAnnotazioni() {
return annotazioni;
}
public InsertUDCRowRequestDTO setAnnotazioni(String annotazioni) {
this.annotazioni = annotazioni;
return this;
}
public Integer getNumEtich() {
return numEtich;
}
public InsertUDCRowRequestDTO setNumEtich(Integer numEtich) {
this.numEtich = numEtich;
return this;
}
}

View File

@@ -599,9 +599,11 @@ public class WMSLavorazioneService {
MtbColt udcMtbColt = new MtbColt()
.setGestione(GestioneEnum.LAVORAZIONE.getText())
.setDataCollo(createUDCRequestDTO.getDataCollo())
.setNumCollo(createUDCRequestDTO.getNumCollo())
.setSerCollo(createUDCRequestDTO.getSerCollo())
.setCodMdep(createUDCRequestDTO.getCodMdep())
.setCodVdes(createUDCRequestDTO.getCodVdes())
.setOraInizPrep(new Date())
.setPreparatoDa(requestDataDTO.getUsername())
.setPosizione(UtilityString.isNull(createUDCRequestDTO.getPosizione(), defaultPosizioneColliAccettazione))
@@ -609,6 +611,9 @@ public class WMSLavorazioneService {
.setCodJfas(createUDCRequestDTO.getCodJfas())
.setAnnotazioni(createUDCRequestDTO.getAnnotazioni())
.setBarcodeUl(createUDCRequestDTO.getBarcodeUl())
.setRifOrd(createUDCRequestDTO.getRifOrd())
.setDataVers(createUDCRequestDTO.getDataVersamento())
.setCodDtipProvv(createUDCRequestDTO.getCodDtipProvv())
.setSegno(1);

View File

@@ -2,16 +2,13 @@
<beans xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:task="http://www.springframework.org/schema/task"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd">
<context:component-scan base-package="it.integry"/>
<bean id="ppConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
@@ -24,11 +21,6 @@
</property>
</bean>
<task:scheduler id="taskScheduler" pool-size="5"/>
<!-- Enables support to @Scheduled -->
<task:annotation-driven/>
<bean id="localeResolver"
class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
<property name="defaultLocale" value="it"/>

View File

@@ -36,7 +36,7 @@
<drools.version>6.4.0.Final</drools.version>
<spring.version>5.3.34</spring.version>
<security.version>5.8.12</security.version>
<jackson.version>2.17.0</jackson.version>
<jackson.version>2.20.0</jackson.version>
<resteasy.version>3.15.6.Final</resteasy.version>
<swagger.version>3.0.0</swagger.version>
<ems.war.name>ems</ems.war.name>