First Commit - Source Code from Reply
This commit is contained in:
277
dbcm/EsitoAttivazioneCessazione-soapui-project.xml
Normal file
277
dbcm/EsitoAttivazioneCessazione-soapui-project.xml
Normal file
@@ -0,0 +1,277 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<con:soapui-project id="37f2d992-7547-4a82-bfdd-addcf636120e" activeEnvironment="Default" name="EsitoAttivazioneCessazione" resourceRoot="" soapui-version="5.6.0" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" id="509574df-8d6a-4dd5-8bf7-88c4da320665" wsaVersion="NONE" name="esitoAttivazioneCessazioneBinding" type="wsdl" bindingName="{http://dbcm/SOA/EsitoAttivazioneCessazione}esitoAttivazioneCessazioneBinding" soapVersion="1_1" anonymous="optional" definition="file:/C:/GITRepo/SRC_DBCM/dbcm-web/src/main/resources/wsdl/EsitoAttivazioneCessazione.wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="file:/C:/GITRepo/SRC_DBCM/dbcm-web/src/main/resources/wsdl/EsitoAttivazioneCessazione.wsdl"><con:part><con:url>file:/C:/GITRepo/SRC_DBCM/dbcm-web/src/main/resources/wsdl/EsitoAttivazioneCessazione.wsdl</con:url><con:content><![CDATA[<wsdl:definitions targetNamespace="http://dbcm/SOA/EsitoAttivazioneCessazione" xmlns:nsSchema="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:head="http://telecomitalia.it/SOA/SOAP/SOAPHeader" xmlns:tns="http://dbcm/SOA/EsitoAttivazioneCessazione" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<wsdl:types>
|
||||||
|
<xsd:schema targetNamespace="http://dbcm/SOA/EsitoAttivazioneCessazione">
|
||||||
|
<xsd:import namespace="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01" schemaLocation="EsitoAttivazioneCessazione.xsd"/>
|
||||||
|
<xsd:import namespace="http://telecomitalia.it/SOA/SOAP/SOAPHeader" schemaLocation="SOAPHeader_v1.1.xsd"/>
|
||||||
|
</xsd:schema>
|
||||||
|
</wsdl:types>
|
||||||
|
<wsdl:message name="request">
|
||||||
|
<wsdl:part name="header" element="head:Header"/>
|
||||||
|
<wsdl:part name="body" element="nsSchema:request"/>
|
||||||
|
</wsdl:message>
|
||||||
|
<wsdl:message name="response">
|
||||||
|
<wsdl:part name="header" element="head:Header"/>
|
||||||
|
<wsdl:part name="body" element="nsSchema:response"/>
|
||||||
|
</wsdl:message>
|
||||||
|
<wsdl:portType name="esitoAttivazioneCessazionePortType">
|
||||||
|
<wsdl:operation name="sendEsito">
|
||||||
|
<wsdl:input message="tns:request"/>
|
||||||
|
<wsdl:output message="tns:response"/>
|
||||||
|
</wsdl:operation>
|
||||||
|
</wsdl:portType>
|
||||||
|
<wsdl:binding name="esitoAttivazioneCessazioneBinding" type="tns:esitoAttivazioneCessazionePortType">
|
||||||
|
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||||
|
<wsdl:operation name="sendEsito">
|
||||||
|
<soap:operation soapAction="sendEsito" style="document"/>
|
||||||
|
<wsdl:input>
|
||||||
|
<soap:body parts="body" use="literal"/>
|
||||||
|
<soap:header message="tns:request" part="header" use="literal"/>
|
||||||
|
</wsdl:input>
|
||||||
|
<wsdl:output>
|
||||||
|
<soap:body parts="body" use="literal"/>
|
||||||
|
<soap:header message="tns:response" part="header" use="literal"/>
|
||||||
|
</wsdl:output>
|
||||||
|
</wsdl:operation>
|
||||||
|
</wsdl:binding>
|
||||||
|
<wsdl:service name="EsitoAttivazioneCessazione">
|
||||||
|
<wsdl:port name="EsitoAttivazioneCessazioneEndPoint" binding="tns:esitoAttivazioneCessazioneBinding">
|
||||||
|
<soap:address location="http://10.174.243.199:7151/dbcm/EsitoAttivazioneCessazione"/>
|
||||||
|
</wsdl:port>
|
||||||
|
</wsdl:service>
|
||||||
|
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part><con:part><con:url>file:\C:\GITRepo\SRC_DBCM\dbcm-web\src\main\resources\wsdl\EsitoAttivazioneCessazione.xsd</con:url><con:content><![CDATA[<xs:schema targetNamespace="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01" elementFormDefault="qualified" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sm="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01">
|
||||||
|
<xs:element name="request">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="msisdn" type="sm:string15Type"/>
|
||||||
|
<xs:element name="identificativoRichiesta" type="sm:string23Type" minOccurs="0"/>
|
||||||
|
<xs:element name="tipoRichiesta" type="sm:tipoRichiestaType"/>
|
||||||
|
<xs:element name="dataEspletamento" type="sm:espletamentoDateType"/>
|
||||||
|
<xs:element name="tipoLinea" type="sm:string15Type" minOccurs="0"/>
|
||||||
|
<xs:element name="rgn" type="sm:string3Type" minOccurs="0"/>
|
||||||
|
<xs:element name="imsi" type="sm:string15Type" minOccurs="0"/>
|
||||||
|
<xs:element name="sistemaChiamante" type="sm:string15Type"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="response">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="codice" type="sm:string2Type"/>
|
||||||
|
<xs:element name="descrizione" type="sm:string255Type"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:simpleType name="tipoRichiestaType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:pattern value="1|2|3"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="string2Type">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="2"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="string3Type">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="3"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="string15Type">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="15"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="string23Type">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="23"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="string255Type">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="255"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="espletamentoDateType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:pattern value="\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:\C:\GITRepo\SRC_DBCM\dbcm-web\src\main\resources\wsdl\SOAPHeader_v1.1.xsd</con:url><con:content><![CDATA[<xs:schema targetNamespace="http://telecomitalia.it/SOA/SOAP/SOAPHeader" elementFormDefault="qualified" version="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:h="http://telecomitalia.it/SOA/SOAP/SOAPHeader">
|
||||||
|
<!--Start Types Definition-->
|
||||||
|
<xs:complexType name="HeaderType">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Informazioni di contesto dell'invocazione del servizio</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="sourceSystem" type="h:sourceSystemType" minOccurs="0">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Sistema da cui proviene la richiesta</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="interactionDate" type="h:interactionDateType" minOccurs="0">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Data e Ora di invocazione del servizio</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="businessID" type="h:businessIDType" minOccurs="0">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Identifica univocamente il processo di business</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="messageID" type="h:messageIDType" minOccurs="0">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Identifica il messaggio in maniera univoca</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="transactionID" type="h:transactionIDType" minOccurs="0">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Identifica la transazione per gestire i ritorni sincroni</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:simpleType name="dateType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:pattern value="\d{4}-\d{2}-\d{2}"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="timeType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:pattern value="\d{2}:\d{2}:\d{2}((Z)|(\.\d{1,}Z?)|((\+|-)\d{2}:\d{2}))?"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="businessIDType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="messageIDType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="sourceSystemType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="transactionIDType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:complexType name="interactionDateType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="Date" type="h:dateType">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Per compatibilità con i diversi prodotti o librerie software (es. Axis2 e BW) si è scelto di utilizzare il tipo string. La restizione applicata accetta il formato: CCYY-MM-DD. Non sono presenti restrizioni sul range dei valori.</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="Time" type="h:timeType">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:documentation>Per compatibilità con i diversi prodotti o librerie software (es. Axis2 e BW) si è scelto di utilizzare il tipo string. La restizione applicata accetta il formato: hh:mm:ss.sss. Non sono presenti restrizioni sul range dei valori. Per gli ulteriori dettagli sul formato fare riferimento alla definizione di Time Data Type W3C, presente al link: http://www.w3schools.com/Schema/schema_dtypes_date.asp</xs:documentation>
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<!--End Types Definition-->
|
||||||
|
<xs:element name="Header" type="h:HeaderType"/>
|
||||||
|
</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://10.174.243.199:7151/dbcm/EsitoAttivazioneCessazione</con:endpoint><con:endpoint>http://10.174.243.199:7151/dbcm/EsitoAttivazioneCessazioneService</con:endpoint></con:endpoints><con:operation id="bd271758-a5e6-4149-a1a8-52888435b715" isOneWay="false" action="sendEsito" name="sendEsito" bindingOperationName="sendEsito" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call id="718fa6c2-d6e8-426f-9dd1-e33dfc71e4ab" name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://10.174.243.199:7151/dbcm/EsitoAttivazioneCessazione</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://telecomitalia.it/SOA/SOAP/SOAPHeader" xmlns:ns="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01">\r
|
||||||
|
<soapenv:Header>\r
|
||||||
|
<soap:Header>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<soap:sourceSystem>?</soap:sourceSystem>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<soap:interactionDate>\r
|
||||||
|
<soap:Date>?</soap:Date>\r
|
||||||
|
<soap:Time>?</soap:Time>\r
|
||||||
|
</soap:interactionDate>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<soap:businessID>?</soap:businessID>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<soap:messageID>?</soap:messageID>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<soap:transactionID>?</soap:transactionID>\r
|
||||||
|
</soap:Header>\r
|
||||||
|
</soapenv:Header>\r
|
||||||
|
<soapenv:Body>\r
|
||||||
|
<ns:request>\r
|
||||||
|
<ns:msisdn>?</ns:msisdn>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<ns:identificativoRichiesta>?</ns:identificativoRichiesta>\r
|
||||||
|
<ns:tipoRichiesta>?</ns:tipoRichiesta>\r
|
||||||
|
<ns:dataEspletamento>?</ns:dataEspletamento>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<ns:tipoLinea>?</ns:tipoLinea>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<ns:rgn>?</ns:rgn>\r
|
||||||
|
<!--Optional:-->\r
|
||||||
|
<ns:imsi>?</ns:imsi>\r
|
||||||
|
<ns:sistemaChiamante>?</ns:sistemaChiamante>\r
|
||||||
|
</ns:request>\r
|
||||||
|
</soapenv:Body>\r
|
||||||
|
</soapenv:Envelope>]]></con:request><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="sendEsito"/><con:wsrmConfig version="1.2"/></con:call><con:call id="0d5a219c-772b-4b71-abde-beaa4ebd94c6" name="Request 2"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://10.174.243.199:7151/dbcm/EsitoAttivazioneCessazione</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://telecomitalia.it/SOA/SOAP/SOAPHeader" xmlns:ns="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01">\r
|
||||||
|
<soapenv:Header>\r
|
||||||
|
<soap:Header>\r
|
||||||
|
<soap:sourceSystem>DBCFX</soap:sourceSystem>
|
||||||
|
<soap:interactionDate>
|
||||||
|
<soap:Date>2021-05-06</soap:Date>
|
||||||
|
<soap:Time>16:09:38</soap:Time>
|
||||||
|
</soap:interactionDate>
|
||||||
|
<soap:businessID>0AA6120F60521BB2000803DB</soap:businessID>
|
||||||
|
<soap:messageID>0AA6120F60521BB20007D8B5</soap:messageID>
|
||||||
|
<soap:transactionID>0AA6120F60521BB200094A46</soap:transactionID>
|
||||||
|
</soap:Header>\r
|
||||||
|
</soapenv:Header>\r
|
||||||
|
<soapenv:Body>\r
|
||||||
|
<ns:request>\r
|
||||||
|
<ns:msisdn>3932780131378</ns:msisdn>
|
||||||
|
<ns:tipoRichiesta>1</ns:tipoRichiesta>
|
||||||
|
<ns:dataEspletamento>2021-03-17 18:21:38</ns:dataEspletamento>
|
||||||
|
<ns:sistemaChiamante>DBSS-COM</ns:sistemaChiamante>
|
||||||
|
</ns:request>\r
|
||||||
|
</soapenv:Body>\r
|
||||||
|
</soapenv:Envelope>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
3932780131379 DONOR
|
||||||
|
3932780131385 DONOR
|
||||||
|
3933080131380 DONOR
|
||||||
|
393316294771 DONOR
|
||||||
|
393391044743 DONOR
|
||||||
|
393910131401 RECIPIENT
|
||||||
|
393800131391 RECIPIENT
|
||||||
|
393809131385 RECIPIENT
|
||||||
|
3933480131391 DONOR
|
||||||
|
3933580131388 DONOR
|
||||||
|
3933680131389 DONOR
|
||||||
|
|
||||||
|
3933980131381 DONOR
|
||||||
|
3934980131378 DONOR
|
||||||
|
3934980131386 DONOR
|
||||||
|
3939180131384 DONOR
|
||||||
|
3939280131382 DONOR
|
||||||
|
3939280131392 DONOR
|
||||||
|
-->]]></con:request><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="sendEsito"/><con:wsrmConfig version="1.2"/></con:call><con:call id="a35d179e-cbc1-4602-a960-8e5bae4422ab" name="Request 3"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://10.174.243.199:7151/dbcm/EsitoAttivazioneCessazione</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://telecomitalia.it/SOA/SOAP/SOAPHeader" xmlns:ns="http://dbcm/SOA/EsitoAttivazioneCessazione/2021-02-01">\r
|
||||||
|
<soapenv:Header>\r
|
||||||
|
<soap:Header>\r
|
||||||
|
<soap:sourceSystem>DBCFX</soap:sourceSystem>
|
||||||
|
<soap:interactionDate>
|
||||||
|
<soap:Date>2021-03-17</soap:Date>
|
||||||
|
<soap:Time>16:09:38</soap:Time>
|
||||||
|
</soap:interactionDate>
|
||||||
|
<soap:businessID>0AA6120F60521BB2000803DB</soap:businessID>
|
||||||
|
<soap:messageID>0AA6120F60521BB20007D8B5</soap:messageID>
|
||||||
|
<soap:transactionID>0AA6120F60521BB200094A46</soap:transactionID>
|
||||||
|
</soap:Header>\r
|
||||||
|
</soapenv:Header>\r
|
||||||
|
<soapenv:Body>\r
|
||||||
|
<ns:request>\r
|
||||||
|
<ns:msisdn>3386377733</ns:msisdn>
|
||||||
|
<ns:tipoRichiesta>2</ns:tipoRichiesta>
|
||||||
|
<ns:dataEspletamento>2021-03-17 18:21:38</ns:dataEspletamento>
|
||||||
|
<ns:sistemaChiamante>ESBE-N</ns:sistemaChiamante>
|
||||||
|
</ns:request>\r
|
||||||
|
</soapenv:Body>\r
|
||||||
|
</soapenv:Envelope>]]></con:request><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="sendEsito"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer/><con:oAuth2ProfileContainer/><con:oAuth1ProfileContainer/></con:soapui-project>
|
||||||
26
dbcm/build.bat
Normal file
26
dbcm/build.bat
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
@echo off
|
||||||
|
set M2_BIN=%PROGRAMFILES%\Apache\apache-maven-3.2.5\bin
|
||||||
|
set JAVA_HOME=%PROGRAMFILES%\Java\jdk1.6.0_45
|
||||||
|
rem set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191
|
||||||
|
|
||||||
|
set MAVEN_OPTS="-Xss5M"
|
||||||
|
|
||||||
|
|
||||||
|
@ECHO ####################################################################################
|
||||||
|
@ECHO M2_BIN=%M2_BIN%
|
||||||
|
@ECHO JAVA_HOME=%JAVA_HOME%
|
||||||
|
@ECHO ####################################################################################
|
||||||
|
@ECHO.
|
||||||
|
@ECHO ##########################################
|
||||||
|
@ECHO ####### START MVN CLEAN/INSTALL ########
|
||||||
|
@ECHO ##########################################
|
||||||
|
@ECHO.
|
||||||
|
|
||||||
|
call "%M2_BIN%\mvn" clean install -U
|
||||||
|
|
||||||
|
@ECHO.
|
||||||
|
@ECHO ##########################################
|
||||||
|
@ECHO ####### STOP MVN CLEAN/INSTALL ########
|
||||||
|
@ECHO ##########################################
|
||||||
|
@ECHO.
|
||||||
|
pause
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
||||||
9
dbcm/dbcm-core/.settings/org.eclipse.jdt.core.prefs
Normal file
9
dbcm/dbcm-core/.settings/org.eclipse.jdt.core.prefs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.6
|
||||||
4
dbcm/dbcm-core/.settings/org.eclipse.m2e.core.prefs
Normal file
4
dbcm/dbcm-core/.settings/org.eclipse.m2e.core.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
|
<wb-module deploy-name="dbcm-core">
|
||||||
|
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||||
|
</wb-module>
|
||||||
|
</project-modules>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<faceted-project>
|
||||||
|
<installed facet="java" version="1.6"/>
|
||||||
|
<installed facet="jst.utility" version="1.0"/>
|
||||||
|
</faceted-project>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
disabled=06target
|
||||||
|
eclipse.preferences.version=1
|
||||||
25
dbcm/dbcm-core/pom.xml
Normal file
25
dbcm/dbcm-core/pom.xml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>dbcm-core</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>dbcm</groupId>
|
||||||
|
<artifactId>dbcm</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>1.6</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.6</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>log4j</groupId>
|
||||||
|
<artifactId>log4j</artifactId>
|
||||||
|
<version>1.2.7</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package dbcm.exception;
|
||||||
|
|
||||||
|
public class BadRequestException extends Exception{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public BadRequestException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package dbcm.exception;
|
||||||
|
|
||||||
|
public class NoResultException extends Exception{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public NoResultException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package dbcm.exception;
|
||||||
|
|
||||||
|
public class TooManyResultException extends Exception{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public TooManyResultException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TooManyResultException(String pattern, int resultNum, int maxNum) {
|
||||||
|
super("Per il pattern "+pattern +" sono stati restituiti "+ resultNum +" valori, ma"
|
||||||
|
+ " ne sono consentiti al massimo "+maxNum);
|
||||||
|
}
|
||||||
|
}
|
||||||
304
dbcm/dbcm-core/src/main/java/dbcm/utilities/CryptoUtility.java
Normal file
304
dbcm/dbcm-core/src/main/java/dbcm/utilities/CryptoUtility.java
Normal file
@@ -0,0 +1,304 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
import java.io.ObjectInputStream;
|
||||||
|
import java.security.Key;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import javax.crypto.Cipher;
|
||||||
|
import javax.crypto.SecretKeyFactory;
|
||||||
|
import javax.crypto.spec.DESedeKeySpec;
|
||||||
|
|
||||||
|
import sun.misc.BASE64Decoder;
|
||||||
|
import sun.misc.BASE64Encoder;
|
||||||
|
|
||||||
|
@SuppressWarnings("restriction")
|
||||||
|
public class CryptoUtility {
|
||||||
|
public static final String TRIPLE_DES_CHIPER = "DESede/ECB/PKCS5Padding";
|
||||||
|
public static final String TRIPLE_DES_PREFIX = "{3DES}";
|
||||||
|
public static final String TRIPLE_DES_KEY = "DESede";
|
||||||
|
public static final int TRIPLE_DES_KEY_SIZE = 168;
|
||||||
|
public static final String KEY_MISSING = "Symmetric Key Missing";
|
||||||
|
|
||||||
|
public static final String MEMORY_ADDRESS = "INDIRIZZO_KEY";
|
||||||
|
public static final String FLAG_SHARED_KEY = "USE_CRYPTO_SHARED";
|
||||||
|
public static final String FILE_KEY = "PATH_KEY";
|
||||||
|
public static final String INDIRIZZO_DINAMICO = "USE_DYNAMIC_ADDRESS";
|
||||||
|
public static final int INDIRIZZO_STATICO = 5625;
|
||||||
|
|
||||||
|
private Key chiave3DES = null;
|
||||||
|
private static CryptoUtility onlyInstance = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Costruttore
|
||||||
|
*
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
private CryptoUtility() throws Exception {
|
||||||
|
String fileChiave = null;
|
||||||
|
int indirizzo;
|
||||||
|
|
||||||
|
String confFile = System.getProperty("security_conf_file");
|
||||||
|
IniFile iniFile = new IniFile(confFile);
|
||||||
|
Properties p = iniFile.getSection("main.properties");
|
||||||
|
|
||||||
|
if ("true".equalsIgnoreCase(p.getProperty(FLAG_SHARED_KEY))) {
|
||||||
|
indirizzo = "true".equalsIgnoreCase(p.getProperty(INDIRIZZO_DINAMICO)) ? Integer.parseInt(p.getProperty(MEMORY_ADDRESS)) : INDIRIZZO_STATICO;
|
||||||
|
try {
|
||||||
|
readKey(indirizzo);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
System.out.println("Impossibile caricare la chiave dalla ram: verificare che la chiave sia presente.");
|
||||||
|
throw new Exception("Impossibile caricare la chiave dalla ram.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fileChiave = (String) p.get(FILE_KEY);
|
||||||
|
loadKey(fileChiave);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Utilizzato da applicazioni che inizializzano esplicitamente l'api di
|
||||||
|
* cifratura con init(). Il Properties <20> letto autonomamente prima dell'init.
|
||||||
|
*
|
||||||
|
* @param config Le properties contenute nel file security.properties.
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
private CryptoUtility(Properties config) throws Exception {
|
||||||
|
String fileChiave = null;
|
||||||
|
int indirizzo;
|
||||||
|
|
||||||
|
if ("true".equalsIgnoreCase(config.getProperty(FLAG_SHARED_KEY))) {
|
||||||
|
indirizzo = "true".equalsIgnoreCase(config.getProperty(INDIRIZZO_DINAMICO)) ? Integer.parseInt(config.getProperty(MEMORY_ADDRESS)) : INDIRIZZO_STATICO;
|
||||||
|
try {
|
||||||
|
readKey(indirizzo);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
System.out.println("Impossibile caricare la chiave dalla ram: verificare che la chiave sia presente.");
|
||||||
|
throw new Exception("Impossibile caricare la chiave dalla ram.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fileChiave = (String) config.get(FILE_KEY);
|
||||||
|
loadKey(fileChiave);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inizializzazione del framework di security
|
||||||
|
*
|
||||||
|
* @param fileChiave String
|
||||||
|
* @throws Exception
|
||||||
|
* @return CryptoUtility
|
||||||
|
*/
|
||||||
|
public static CryptoUtility getInstance() throws Exception {
|
||||||
|
if (onlyInstance == null) {
|
||||||
|
synchronized (CryptoUtility.class) {
|
||||||
|
if (onlyInstance == null) {
|
||||||
|
onlyInstance = new CryptoUtility();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return onlyInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Utilizzato per inizializzare la classe prima delle operazioni di cifratura.
|
||||||
|
*
|
||||||
|
* @param secConfig Le properties del file security.properties
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public static void init(Properties secConfig) throws Exception {
|
||||||
|
onlyInstance = new CryptoUtility(secConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* carica la chiave simmetrica di cifratura/decifratura
|
||||||
|
*
|
||||||
|
* @param fileChiave String
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
private void loadKey(String fileChiave) throws Exception {
|
||||||
|
ObjectInputStream in = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
in = new ObjectInputStream(new FileInputStream(fileChiave));
|
||||||
|
chiave3DES = (Key) in.readObject();
|
||||||
|
} finally {
|
||||||
|
if (in != null) {
|
||||||
|
try {
|
||||||
|
in.close();
|
||||||
|
} catch (IOException ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Legge la chiave (raw byte) dalla shared memory attraverso il bridge JNI
|
||||||
|
*
|
||||||
|
* @param indirizzo L'indirizzo della chiave nella memoria
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
private void readKey(int indirizzo) throws Exception {
|
||||||
|
DESedeKeySpec spec = null;
|
||||||
|
KeyJNIBridge bridge = new KeyJNIBridge();
|
||||||
|
spec = new DESedeKeySpec(bridge.readKey(indirizzo));
|
||||||
|
chiave3DES = SecretKeyFactory.getInstance(CryptoUtility.TRIPLE_DES_KEY).generateSecret(spec);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* funzione di criptazione
|
||||||
|
*
|
||||||
|
* @param value String
|
||||||
|
* @throws Exception
|
||||||
|
* @return String
|
||||||
|
*/
|
||||||
|
public String cripta3DES(String value) throws Exception {
|
||||||
|
byte[] res = null;
|
||||||
|
Cipher cipher = Cipher.getInstance(TRIPLE_DES_CHIPER);
|
||||||
|
cipher.init(Cipher.ENCRYPT_MODE, chiave3DES);
|
||||||
|
byte[] val = value.getBytes();
|
||||||
|
res = new byte[cipher.getOutputSize(val.length)];
|
||||||
|
int size = cipher.update(val, 0, val.length, res, 0);
|
||||||
|
size += cipher.doFinal(res, size);
|
||||||
|
return toString(res, res.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* funzione di decriptazione
|
||||||
|
*
|
||||||
|
* @param value String
|
||||||
|
* @throws Exception
|
||||||
|
* @return String
|
||||||
|
*/
|
||||||
|
public String decripta3DES(String value) throws Exception {
|
||||||
|
Cipher cipher = Cipher.getInstance(TRIPLE_DES_CHIPER);
|
||||||
|
cipher.init(Cipher.DECRYPT_MODE, chiave3DES);
|
||||||
|
return new String(cipher.doFinal(toByteArray(value)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* funzione di decriptazione che automaticamte elimina il prefisso 3DES
|
||||||
|
*
|
||||||
|
* @param value String
|
||||||
|
* @throws Exception
|
||||||
|
* @return String
|
||||||
|
*/
|
||||||
|
public String decripta3DESWithPrefix(String value) throws Exception {
|
||||||
|
return decripta3DES(value.substring(TRIPLE_DES_PREFIX.length()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final String toString(byte[] bytes, int length) {
|
||||||
|
BASE64Encoder encoder = new BASE64Encoder();
|
||||||
|
String base64 = encoder.encode(bytes);
|
||||||
|
return base64;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final byte[] toByteArray(String string) throws Exception {
|
||||||
|
BASE64Decoder decoder = new BASE64Decoder();
|
||||||
|
byte[] raw = decoder.decodeBuffer(string);
|
||||||
|
return raw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* decripta un inputstream ritornandone un inputstream uno con tutte le key in
|
||||||
|
* chiaro
|
||||||
|
*
|
||||||
|
* @param filename String
|
||||||
|
* @throws Exception
|
||||||
|
* @return InputStream
|
||||||
|
*/
|
||||||
|
public InputStream getCleanFile(InputStream in) throws Exception {
|
||||||
|
ByteArrayInputStream bin = null;
|
||||||
|
String read = null;
|
||||||
|
BufferedReader input = new BufferedReader(new InputStreamReader(in));
|
||||||
|
String key = null;
|
||||||
|
String value = null;
|
||||||
|
String cleanValue = null;
|
||||||
|
StringBuffer stringOutput = new StringBuffer();
|
||||||
|
byte[] b = null;
|
||||||
|
int idx = -1;
|
||||||
|
while ((read = input.readLine()) != null) {
|
||||||
|
if ((read.startsWith(";") || read.startsWith("#")))
|
||||||
|
stringOutput.append(read + "\n");
|
||||||
|
else {
|
||||||
|
idx = read.indexOf("=");
|
||||||
|
if (idx == -1)
|
||||||
|
stringOutput.append(read + "\n");
|
||||||
|
else {
|
||||||
|
cleanValue = "";
|
||||||
|
key = read.substring(0, idx);
|
||||||
|
if (idx < read.length())
|
||||||
|
value = read.substring(idx + 1, read.length());
|
||||||
|
else
|
||||||
|
value = "";
|
||||||
|
cleanValue = value;
|
||||||
|
if ((key.startsWith(TRIPLE_DES_PREFIX)) && value != null && value.length() > 0) {
|
||||||
|
try {
|
||||||
|
if (value.startsWith(TRIPLE_DES_PREFIX)) {
|
||||||
|
cleanValue = decripta3DES(value.substring(TRIPLE_DES_PREFIX.length()));
|
||||||
|
// System.out.println("decripta3DES:" + key);
|
||||||
|
}
|
||||||
|
// else
|
||||||
|
// System.out.println("NOT decripta3DES:" + key);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
System.out.println("Errore durante il decript della chiave:" + key);
|
||||||
|
ex.printStackTrace();
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stringOutput.append(key + "=" + cleanValue + "\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
b = stringOutput.toString().getBytes();
|
||||||
|
bin = new ByteArrayInputStream(b);
|
||||||
|
return bin;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* decripta un properties ritornandone uno con tutte le key in chiaro
|
||||||
|
*
|
||||||
|
* @param inProperties Properties
|
||||||
|
* @throws Exception
|
||||||
|
* @return Properties
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
|
public Properties getCleanProperties(Properties inProperties) throws Exception {
|
||||||
|
String key = null;
|
||||||
|
String value = null;
|
||||||
|
String cleanValue = null;
|
||||||
|
Properties outProperties = new Properties();
|
||||||
|
|
||||||
|
if ((inProperties != null) && (inProperties.size() != 0)) {
|
||||||
|
Enumeration e = inProperties.keys();
|
||||||
|
|
||||||
|
while (e.hasMoreElements()) {
|
||||||
|
key = (String) e.nextElement();
|
||||||
|
value = (String) inProperties.get(key);
|
||||||
|
cleanValue = value;
|
||||||
|
if ((key.startsWith(TRIPLE_DES_PREFIX)) && value != null && value.length() > 0) {
|
||||||
|
try {
|
||||||
|
if (value.startsWith(TRIPLE_DES_PREFIX)) {
|
||||||
|
cleanValue = decripta3DES(value.substring(TRIPLE_DES_PREFIX.length()));
|
||||||
|
// System.out.println("decripta3DES:"+key);
|
||||||
|
}
|
||||||
|
// else
|
||||||
|
// System.out.println("NOT decripta3DES:"+key);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
System.out.println("Errore durante il decript della chiave:" + key);
|
||||||
|
ex.printStackTrace();
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outProperties.put(key, cleanValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return outProperties;
|
||||||
|
}
|
||||||
|
}
|
||||||
34
dbcm/dbcm-core/src/main/java/dbcm/utilities/DateUtils.java
Normal file
34
dbcm/dbcm-core/src/main/java/dbcm/utilities/DateUtils.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.text.ParseException;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.GregorianCalendar;
|
||||||
|
|
||||||
|
public class DateUtils {
|
||||||
|
public static final String FORMAT_YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
|
||||||
|
public static final String FORMAT_YYYYMMDDHHMMSS000 = "yyyyMMddHHmmssSSS";
|
||||||
|
public static final String FORMAT_YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
public static final String FORMAT_YYYY_MM_DD_SEP = "yyyy-MM-dd";
|
||||||
|
public static final String FORMAT_YYYY_MM_DD = "yyyyMMdd";
|
||||||
|
public static final String FORMAT_DD_MM_YYYY = "dd-MM-yyyy";
|
||||||
|
|
||||||
|
public static Date getToday() {
|
||||||
|
return new Date();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Date getYesterday() {
|
||||||
|
Calendar gc = new GregorianCalendar();
|
||||||
|
gc.add(Calendar.DAY_OF_MONTH, -1);
|
||||||
|
return gc.getTime();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String toString(Date date, String format) {
|
||||||
|
return new SimpleDateFormat(format).format(date);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Date fromString(String dateString, String format) throws ParseException {
|
||||||
|
return new SimpleDateFormat(format).parse(dateString);
|
||||||
|
}
|
||||||
|
}
|
||||||
21
dbcm/dbcm-core/src/main/java/dbcm/utilities/FileUitls.java
Normal file
21
dbcm/dbcm-core/src/main/java/dbcm/utilities/FileUitls.java
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
public class FileUitls {
|
||||||
|
|
||||||
|
public void copyFile(File in, File out) throws Exception {
|
||||||
|
|
||||||
|
FileInputStream fis = new FileInputStream(in);
|
||||||
|
FileOutputStream fos = new FileOutputStream(out);
|
||||||
|
byte[] buf = new byte[1024];
|
||||||
|
int i = 0;
|
||||||
|
while ((i = fis.read(buf)) != -1) {
|
||||||
|
fos.write(buf, 0, i);
|
||||||
|
}
|
||||||
|
fis.close();
|
||||||
|
fos.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
277
dbcm/dbcm-core/src/main/java/dbcm/utilities/IniFile.java
Normal file
277
dbcm/dbcm-core/src/main/java/dbcm/utilities/IniFile.java
Normal file
@@ -0,0 +1,277 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
import java.net.URL;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
public class IniFile {
|
||||||
|
private Properties sections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for the IniFile object
|
||||||
|
*/
|
||||||
|
public IniFile() {
|
||||||
|
sections = new Properties();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for the IniFile object
|
||||||
|
*
|
||||||
|
* @param filename Description of Parameter
|
||||||
|
* @exception FileNotFoundException Description of Exception
|
||||||
|
*/
|
||||||
|
public IniFile(String filename) throws FileNotFoundException {
|
||||||
|
this();
|
||||||
|
load(filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for the IniFile object
|
||||||
|
*
|
||||||
|
* @param url Description of Parameter
|
||||||
|
* @exception IOException Description of Exception
|
||||||
|
*/
|
||||||
|
public IniFile(URL url) throws IOException {
|
||||||
|
this();
|
||||||
|
load(url.openStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for the IniFile object
|
||||||
|
*
|
||||||
|
* @param input Description of Parameter
|
||||||
|
* @exception IOException Description of Exception
|
||||||
|
*/
|
||||||
|
public IniFile(InputStream input) throws IOException {
|
||||||
|
this();
|
||||||
|
load(input);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the KeyValue attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section The new KeyValue value
|
||||||
|
* @param key The new KeyValue value
|
||||||
|
* @param value The new KeyValue value
|
||||||
|
*/
|
||||||
|
public void setKeyValue(String section, String key, String value) {
|
||||||
|
try {
|
||||||
|
getSection(section).put(key, value);
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the Sections attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @return The Sections value
|
||||||
|
*/
|
||||||
|
public Properties getSections() {
|
||||||
|
return sections;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the Section attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section Description of Parameter
|
||||||
|
* @return The Section value
|
||||||
|
*/
|
||||||
|
public Properties getSection(String section) {
|
||||||
|
return (Properties) (sections.get(section));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the NullOrEmpty attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section Description of Parameter
|
||||||
|
* @param key Description of Parameter
|
||||||
|
* @return The NullOrEmpty value
|
||||||
|
*/
|
||||||
|
public boolean isNullOrEmpty(String section, String key) {
|
||||||
|
String value = getKeyValue(section, key);
|
||||||
|
return (value == null || value.length() == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the KeyValue attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section Description of Parameter
|
||||||
|
* @param key Description of Parameter
|
||||||
|
* @return The KeyValue value
|
||||||
|
*/
|
||||||
|
public String getKeyValue(String section, String key) {
|
||||||
|
try {
|
||||||
|
return (String) getSection(section).get(key);
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the KeyIntValue attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section Description of Parameter
|
||||||
|
* @param key Description of Parameter
|
||||||
|
* @return The KeyIntValue value
|
||||||
|
*/
|
||||||
|
public int getKeyIntValue(String section, String key) {
|
||||||
|
return getKeyIntValue(section, key, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the KeyIntValue attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section Description of Parameter
|
||||||
|
* @param key Description of Parameter
|
||||||
|
* @param defaultValue Description of Parameter
|
||||||
|
* @return The KeyIntValue value
|
||||||
|
*/
|
||||||
|
public int getKeyIntValue(String section, String key, int defaultValue) {
|
||||||
|
String value = getKeyValue(section, key);
|
||||||
|
if (value == null) {
|
||||||
|
return defaultValue;
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
return Integer.parseInt(value);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the KeysAndValues attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param aSection Description of Parameter
|
||||||
|
* @return The KeysAndValues value
|
||||||
|
*/
|
||||||
|
public String[][] getKeysAndValues(String aSection) {
|
||||||
|
Properties section = getSection(aSection);
|
||||||
|
if (section == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
String[][] results = new String[section.size()][2];
|
||||||
|
int i = 0;
|
||||||
|
for (Enumeration<?> f = section.keys(), g = section.elements(); f.hasMoreElements(); i++) {
|
||||||
|
results[i][0] = (String) f.nextElement();
|
||||||
|
results[i][1] = (String) g.nextElement();
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the Method
|
||||||
|
*
|
||||||
|
* @param filename Description of Parameter
|
||||||
|
* @exception FileNotFoundException Description of Exception
|
||||||
|
*/
|
||||||
|
public void load(String filename) throws FileNotFoundException {
|
||||||
|
load(new FileInputStream(filename));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the Method
|
||||||
|
*
|
||||||
|
* @param filename Description of Parameter
|
||||||
|
* @exception IOException Description of Exception
|
||||||
|
*/
|
||||||
|
public void save(String filename) throws IOException {
|
||||||
|
save(new FileOutputStream(filename));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the Method
|
||||||
|
*
|
||||||
|
* @param in Description of Parameter
|
||||||
|
*/
|
||||||
|
public void load(InputStream in) {
|
||||||
|
try {
|
||||||
|
BufferedReader input = new BufferedReader(new InputStreamReader(in));
|
||||||
|
String read;
|
||||||
|
Properties section = null;
|
||||||
|
String section_name;
|
||||||
|
while ((read = input.readLine()) != null) {
|
||||||
|
if (read.startsWith(";") || read.startsWith("#")) {
|
||||||
|
continue;
|
||||||
|
} else if (read.startsWith("[")) {
|
||||||
|
// new section
|
||||||
|
section_name = read.substring(1, read.indexOf("]"));
|
||||||
|
section = (Properties) sections.get(section_name);
|
||||||
|
if (section == null) {
|
||||||
|
section = new Properties();
|
||||||
|
sections.put(section_name, section);
|
||||||
|
}
|
||||||
|
} else if (read.indexOf("=") != -1 && section != null) {
|
||||||
|
// new key
|
||||||
|
String key = read.substring(0, read.indexOf("=")).trim();
|
||||||
|
String value = read.substring(read.indexOf("=") + 1).trim();
|
||||||
|
section.put(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the Method
|
||||||
|
*
|
||||||
|
* @param out Description of Parameter
|
||||||
|
*/
|
||||||
|
public void save(OutputStream out) {
|
||||||
|
try {
|
||||||
|
PrintWriter output = new PrintWriter(out);
|
||||||
|
String section;
|
||||||
|
for (Enumeration<?> e = sections.keys(); e.hasMoreElements();) {
|
||||||
|
section = (String) e.nextElement();
|
||||||
|
output.println("[" + section + "]");
|
||||||
|
for (Enumeration<?> f = getSection(section).keys(), g = getSection(section).elements(); f.hasMoreElements();) {
|
||||||
|
output.println(f.nextElement() + "=" + g.nextElement());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
output.flush();
|
||||||
|
output.close();
|
||||||
|
out.flush();
|
||||||
|
out.close();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a feature to the Section attribute of the IniFile object
|
||||||
|
*
|
||||||
|
* @param section The feature to be added to the Section attribute
|
||||||
|
*/
|
||||||
|
public void addSection(String section) {
|
||||||
|
sections.put(section, new Properties());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the Method
|
||||||
|
*
|
||||||
|
* @param section Description of Parameter
|
||||||
|
*/
|
||||||
|
public void removeSection(String section) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simple test function
|
||||||
|
*
|
||||||
|
* @param args The command line arguments
|
||||||
|
* @exception Exception Description of Exception
|
||||||
|
*/
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
(new IniFile()).load(new FileInputStream(args[0]));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
public class KeyJNIBridge {
|
||||||
|
static {
|
||||||
|
System.loadLibrary("SecUtility");
|
||||||
|
}
|
||||||
|
|
||||||
|
public KeyJNIBridge() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public native void writeKey(int indirizzo, byte[] chiaveInChiaro);
|
||||||
|
|
||||||
|
public native byte[] readKey(int indirizzo);
|
||||||
|
}
|
||||||
196
dbcm/dbcm-core/src/main/java/dbcm/utilities/Resources.java
Normal file
196
dbcm/dbcm-core/src/main/java/dbcm/utilities/Resources.java
Normal file
@@ -0,0 +1,196 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
public class Resources {
|
||||||
|
private static Logger logger = Logger.getLogger(Resources.class.getName());
|
||||||
|
|
||||||
|
private static Properties props = null;
|
||||||
|
private static String propertiesPath = null;
|
||||||
|
|
||||||
|
static {
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void init() {
|
||||||
|
if (props == null) {
|
||||||
|
Properties appProps = new Properties();
|
||||||
|
try {
|
||||||
|
//propertiesPath = "C:\\dbcm\\properties\\resources.properties";
|
||||||
|
propertiesPath = System.getProperty("mnp_path_properties", "");
|
||||||
|
System.out.println("Path delle Properties ottenuto: " + propertiesPath);
|
||||||
|
appProps.load(new FileInputStream(propertiesPath));
|
||||||
|
// decifro gli eventuali valore cifrati
|
||||||
|
try {
|
||||||
|
props = CryptoUtility.getInstance().getCleanProperties(appProps);
|
||||||
|
} catch (Exception ex1) {
|
||||||
|
logger.error("init() - ERRORE nella creazione del properties crifrato: " + ex1.getMessage());
|
||||||
|
props = new Properties();
|
||||||
|
props.load(new FileInputStream(propertiesPath));
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
logger.error("init() - ERRORE nella creazione del properties crifrato: " + ex.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Properties getLog4jProperties() {
|
||||||
|
init();
|
||||||
|
Properties p = new Properties();
|
||||||
|
Enumeration<?> e = props.propertyNames();
|
||||||
|
while (e.hasMoreElements()) {
|
||||||
|
String s = (String) e.nextElement();
|
||||||
|
if (s.startsWith("log4j")) {
|
||||||
|
p.put(s, props.getProperty(s));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_WS_ENABLED() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_WS_ENABLED"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_SCHEDULER_ENABLED() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_SCHEDULER_ENABLED"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_SCHEDULER_INTERVAL() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_SCHEDULER_INTERVAL"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_SCHEDULER_GFP_ENABLED() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_SCHEDULER_GFP_ENABLED"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_SCHEDULER_GFP_HH() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_SCHEDULER_GFP_HH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_SCHEDULER_GFP_MM() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_SCHEDULER_GFP_MM"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_PATH_FILE_IN() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_PATH_FILE_IN"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_LOG4J_FILE() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_LOG4J_FILE"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_LOCAL_FILE_PATH() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_LOCAL_FILE_PATH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_LOCAL_BACKUP_PATH() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_LOCAL_BACKUP_PATH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OCS_REMOTE_PATH() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OCS_REMOTE_PATH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OPSC_REMOTE_PATH() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OPSC_REMOTE_PATH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OCS1_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OCS1_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OCS2_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OCS2_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OCS3_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OCS3_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OCS4_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OCS4_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OPSC1_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OPSC1_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OPSC2_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OPSC2_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OPSC3_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OPSC3_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_OPSC4_FILE_NAME() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_OPSC4_FILE_NAME"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_GFP_FILE_EXT() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_GFP_FILE_EXT"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Boolean getDBCM_STRICT_HOST_KEY_CHECKING_GFP() {
|
||||||
|
init();
|
||||||
|
String ret = StringUtils.trim(props.getProperty("DBCM_STRICT_HOST_KEY_CHECKING_GFP"));
|
||||||
|
return "YES".equalsIgnoreCase(ret) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_USER_GFP() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_USER_GFP"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getDBCM_HOST_GFP() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("DBCM_HOST_GFP"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int getDBCM_TIMEOUT_GFP() {
|
||||||
|
init();
|
||||||
|
String ret = StringUtils.trim(props.getProperty("DBCM_TIMEOUT_GFP"));
|
||||||
|
return Integer.parseInt(ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getSFTP_PRIVATEKEY_PATH() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("SFTP_PRIVATEKEY_PATH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getSFTP_PRIVATEKEY_PASSPHRASE() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("{3DES}SFTP_PRIVATEKEY_PASSPHRASE"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getSFTP_KNOWNHOSTS() {
|
||||||
|
init();
|
||||||
|
return StringUtils.trim(props.getProperty("SFTP_KNOWN_HOSTS"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
26
dbcm/dbcm-core/src/main/java/dbcm/utilities/StringUtils.java
Normal file
26
dbcm/dbcm-core/src/main/java/dbcm/utilities/StringUtils.java
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.io.StringWriter;
|
||||||
|
|
||||||
|
import javax.xml.bind.JAXBContext;
|
||||||
|
import javax.xml.bind.JAXBException;
|
||||||
|
import javax.xml.bind.Marshaller;
|
||||||
|
|
||||||
|
public class StringUtils {
|
||||||
|
public static boolean isEmpty(String string) {
|
||||||
|
return string == null || "".equals(string);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String fromObject(Class<?> clazz, Object obj) throws JAXBException {
|
||||||
|
StringWriter sw = new StringWriter();
|
||||||
|
JAXBContext jaxbContext = JAXBContext.newInstance(clazz);
|
||||||
|
Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
|
||||||
|
jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
|
||||||
|
jaxbMarshaller.marshal(obj, sw);
|
||||||
|
return sw.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String trim(String string) {
|
||||||
|
return (string != null ? string.trim() : null);
|
||||||
|
}
|
||||||
|
}
|
||||||
34
dbcm/dbcm-core/src/main/java/dbcm/utilities/ZipUtils.java
Normal file
34
dbcm/dbcm-core/src/main/java/dbcm/utilities/ZipUtils.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
package dbcm.utilities;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.util.zip.GZIPInputStream;
|
||||||
|
|
||||||
|
public class ZipUtils {
|
||||||
|
public static boolean unzip(File gzipfile) {
|
||||||
|
boolean result = true;
|
||||||
|
try {
|
||||||
|
byte[] buffer = new byte[1024];
|
||||||
|
String zippedFileName = gzipfile.getAbsolutePath();
|
||||||
|
String unzippedFileName = zippedFileName;
|
||||||
|
if (zippedFileName.endsWith(".gzip")) {
|
||||||
|
unzippedFileName = unzippedFileName.substring(0, unzippedFileName.length() - 5);
|
||||||
|
} else if (zippedFileName.endsWith(".gz")) {
|
||||||
|
unzippedFileName = unzippedFileName.substring(0, unzippedFileName.length() - 3);
|
||||||
|
}
|
||||||
|
GZIPInputStream gZIPInputStream = new GZIPInputStream(new FileInputStream(gzipfile));
|
||||||
|
FileOutputStream fileOutputStream = new FileOutputStream(unzippedFileName);
|
||||||
|
int bytes_read;
|
||||||
|
while ((bytes_read = gZIPInputStream.read(buffer)) > 0) {
|
||||||
|
fileOutputStream.write(buffer, 0, bytes_read);
|
||||||
|
}
|
||||||
|
gZIPInputStream.close();
|
||||||
|
fileOutputStream.close();
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("Exception in unzip "+ e.getMessage());
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/CryptoUtility.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/CryptoUtility.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/DateUtils.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/DateUtils.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/FileUitls.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/FileUitls.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/IniFile.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/IniFile.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/KeyJNIBridge.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/KeyJNIBridge.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/Resources.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/Resources.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/StringUtils.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/StringUtils.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/ZipUtils.class
Normal file
BIN
dbcm/dbcm-core/target/classes/dbcm/utilities/ZipUtils.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-core/target/dbcm-core-1.0.jar
Normal file
BIN
dbcm/dbcm-core/target/dbcm-core-1.0.jar
Normal file
Binary file not shown.
5
dbcm/dbcm-core/target/maven-archiver/pom.properties
Normal file
5
dbcm/dbcm-core/target/maven-archiver/pom.properties
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#Generated by Maven
|
||||||
|
#Fri Jun 10 14:06:50 CEST 2022
|
||||||
|
version=1.0
|
||||||
|
groupId=dbcm
|
||||||
|
artifactId=dbcm-core
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
dbcm\utilities\StringUtils.class
|
||||||
|
dbcm\utilities\DateUtils.class
|
||||||
|
dbcm\exception\NoResultException.class
|
||||||
|
dbcm\utilities\FileUitls.class
|
||||||
|
dbcm\utilities\Resources.class
|
||||||
|
dbcm\utilities\CryptoUtility.class
|
||||||
|
dbcm\exception\BadRequestException.class
|
||||||
|
dbcm\utilities\KeyJNIBridge.class
|
||||||
|
dbcm\utilities\ZipUtils.class
|
||||||
|
dbcm\exception\TooManyResultException.class
|
||||||
|
dbcm\utilities\IniFile.class
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\exception\BadRequestException.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\exception\NoResultException.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\DateUtils.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\CryptoUtility.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\KeyJNIBridge.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\Resources.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\StringUtils.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\FileUitls.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\ZipUtils.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\utilities\IniFile.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-core\src\main\java\dbcm\exception\TooManyResultException.java
|
||||||
4
dbcm/dbcm-dao/.settings/org.eclipse.core.resources.prefs
Normal file
4
dbcm/dbcm-dao/.settings/org.eclipse.core.resources.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
||||||
9
dbcm/dbcm-dao/.settings/org.eclipse.jdt.core.prefs
Normal file
9
dbcm/dbcm-dao/.settings/org.eclipse.jdt.core.prefs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.6
|
||||||
4
dbcm/dbcm-dao/.settings/org.eclipse.m2e.core.prefs
Normal file
4
dbcm/dbcm-dao/.settings/org.eclipse.m2e.core.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
||||||
6
dbcm/dbcm-dao/.settings/org.eclipse.wst.common.component
Normal file
6
dbcm/dbcm-dao/.settings/org.eclipse.wst.common.component
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
|
<wb-module deploy-name="dbcm-dao">
|
||||||
|
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||||
|
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
|
||||||
|
</wb-module>
|
||||||
|
</project-modules>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<faceted-project>
|
||||||
|
<installed facet="java" version="1.6"/>
|
||||||
|
<installed facet="jst.utility" version="1.0"/>
|
||||||
|
</faceted-project>
|
||||||
2
dbcm/dbcm-dao/.settings/org.eclipse.wst.validation.prefs
Normal file
2
dbcm/dbcm-dao/.settings/org.eclipse.wst.validation.prefs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
disabled=06target
|
||||||
|
eclipse.preferences.version=1
|
||||||
42
dbcm/dbcm-dao/pom.xml
Normal file
42
dbcm/dbcm-dao/pom.xml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>dbcm-dao</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>dbcm</groupId>
|
||||||
|
<artifactId>dbcm</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>1.6</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.6</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>log4j</groupId>
|
||||||
|
<artifactId>log4j</artifactId>
|
||||||
|
<version>1.2.7</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-core</artifactId>
|
||||||
|
<version>3.6.10.Final</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-simple</artifactId>
|
||||||
|
<version>1.6.2</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>javassist</groupId>
|
||||||
|
<artifactId>javassist</artifactId>
|
||||||
|
<version>3.12.1.GA</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</project>
|
||||||
11
dbcm/dbcm-dao/src/main/java/dbcm/dao/EsitoAttCessDao.java
Normal file
11
dbcm/dbcm-dao/src/main/java/dbcm/dao/EsitoAttCessDao.java
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import dbcm.entity.EsitoAttCessEntity;
|
||||||
|
|
||||||
|
public class EsitoAttCessDao extends GenericDaoImpl<EsitoAttCessEntity, Long> {
|
||||||
|
|
||||||
|
public EsitoAttCessDao() {
|
||||||
|
super(EsitoAttCessEntity.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import dbcm.entity.EsitoAttCessScartiEntity;
|
||||||
|
|
||||||
|
public class EsitoAttCessScartiDao extends GenericDaoImpl<EsitoAttCessScartiEntity, Long> {
|
||||||
|
|
||||||
|
public EsitoAttCessScartiDao() {
|
||||||
|
super(EsitoAttCessScartiEntity.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
15
dbcm/dbcm-dao/src/main/java/dbcm/dao/GenericDao.java
Normal file
15
dbcm/dbcm-dao/src/main/java/dbcm/dao/GenericDao.java
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.hibernate.criterion.Criterion;
|
||||||
|
|
||||||
|
public interface GenericDao<ClassType, IdType> {
|
||||||
|
public IdType save(ClassType obj);
|
||||||
|
public void merge(ClassType obj);
|
||||||
|
public void delete(ClassType obj);
|
||||||
|
public ClassType findById(long id);
|
||||||
|
public List<ClassType> findByCriteria(List<Criterion> criterion);
|
||||||
|
public List<ClassType> findByCriteria(List<Criterion> criterion, Map<String, Boolean> orderByList);
|
||||||
|
}
|
||||||
143
dbcm/dbcm-dao/src/main/java/dbcm/dao/GenericDaoImpl.java
Normal file
143
dbcm/dbcm-dao/src/main/java/dbcm/dao/GenericDaoImpl.java
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.hibernate.Criteria;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.criterion.Criterion;
|
||||||
|
import org.hibernate.criterion.Order;
|
||||||
|
|
||||||
|
import dbcm.utils.HibernateUtil;
|
||||||
|
|
||||||
|
public class GenericDaoImpl<ClassType, IdType> implements GenericDao<ClassType, IdType> {
|
||||||
|
private Class<ClassType> type;
|
||||||
|
|
||||||
|
public GenericDaoImpl(Class<ClassType> type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public IdType save(ClassType obj) {
|
||||||
|
Transaction tx = null;
|
||||||
|
IdType ret = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
ret = (IdType) session.save(obj);
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void merge(ClassType obj) {
|
||||||
|
Transaction tx = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
session.merge(obj);
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void delete(ClassType obj) {
|
||||||
|
Transaction tx = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
session.delete(obj);
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public ClassType findById(long id) {
|
||||||
|
Transaction tx = null;
|
||||||
|
ClassType ret = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
ret = (ClassType) session.get(type, id);
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ClassType> findByCriteria(List<Criterion> criterion) {
|
||||||
|
return findByCriteria(criterion, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public List<ClassType> findByCriteria(List<Criterion> criterion, Map<String, Boolean> orderByList) {
|
||||||
|
List<ClassType> results = new ArrayList<ClassType>();
|
||||||
|
Transaction tx = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
Criteria criteria = session.createCriteria(type);
|
||||||
|
for (Criterion crit : criterion) {
|
||||||
|
criteria.add(crit);
|
||||||
|
}
|
||||||
|
if (orderByList != null) {
|
||||||
|
Set<String> orderByListKeys = orderByList.keySet();
|
||||||
|
for (String key : orderByListKeys) {
|
||||||
|
Boolean descOrder = orderByList.get(key);
|
||||||
|
if (descOrder) {
|
||||||
|
criteria.addOrder(Order.desc(key));
|
||||||
|
} else {
|
||||||
|
criteria.addOrder(Order.asc(key));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
results = criteria.list();
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Session getSession() {
|
||||||
|
try {
|
||||||
|
return HibernateUtil.getSession();
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void commitTransaction(Transaction tx) {
|
||||||
|
tx.commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void rollbackTransaction(Transaction tx) {
|
||||||
|
if (tx != null) {
|
||||||
|
tx.rollback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Transaction startTransaction(Session session) {
|
||||||
|
return session.beginTransaction();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.hibernate.Criteria;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.criterion.Criterion;
|
||||||
|
|
||||||
|
import dbcm.entity.GestioneRichiestaEntity;
|
||||||
|
import dbcm.utils.HibernateUtil;
|
||||||
|
|
||||||
|
public class GestioneRichiestaDao {
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public List<GestioneRichiestaEntity> findByCriteria(List<Criterion> criterion) {
|
||||||
|
List<GestioneRichiestaEntity> results = new ArrayList<GestioneRichiestaEntity>();
|
||||||
|
Transaction tx = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
Criteria criteria = session.createCriteria(GestioneRichiestaEntity.class);
|
||||||
|
for (Criterion crit : criterion) {
|
||||||
|
criteria.add(crit);
|
||||||
|
}
|
||||||
|
results = criteria.list();
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Session getSession() {
|
||||||
|
try {
|
||||||
|
return HibernateUtil.getSession();
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void commitTransaction(Transaction tx) {
|
||||||
|
tx.commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void rollbackTransaction(Transaction tx) {
|
||||||
|
if (tx != null) {
|
||||||
|
tx.rollback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Transaction startTransaction(Session session) {
|
||||||
|
return session.beginTransaction();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.hibernate.Criteria;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.criterion.Criterion;
|
||||||
|
|
||||||
|
import dbcm.entity.GestioneRichiestaRecEntity;
|
||||||
|
import dbcm.utils.HibernateUtil;
|
||||||
|
|
||||||
|
public class GestioneRichiestaRecDao {
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public List<GestioneRichiestaRecEntity> findByCriteria(List<Criterion> criterion) {
|
||||||
|
List<GestioneRichiestaRecEntity> results = new ArrayList<GestioneRichiestaRecEntity>();
|
||||||
|
Transaction tx = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
Criteria criteria = session.createCriteria(GestioneRichiestaRecEntity.class);
|
||||||
|
for (Criterion crit : criterion) {
|
||||||
|
criteria.add(crit);
|
||||||
|
}
|
||||||
|
results = criteria.list();
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Session getSession() {
|
||||||
|
try {
|
||||||
|
return HibernateUtil.getSession();
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void commitTransaction(Transaction tx) {
|
||||||
|
tx.commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void rollbackTransaction(Transaction tx) {
|
||||||
|
if (tx != null) {
|
||||||
|
tx.rollback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Transaction startTransaction(Session session) {
|
||||||
|
return session.beginTransaction();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
package dbcm.dao;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.hibernate.Criteria;
|
||||||
|
import org.hibernate.SQLQuery;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.criterion.Criterion;
|
||||||
|
|
||||||
|
import dbcm.entity.ViewEsitoAttCessElabEntity;
|
||||||
|
import dbcm.utils.HibernateUtil;
|
||||||
|
|
||||||
|
public class ViewEsitoAttCessElabDao {
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public List<ViewEsitoAttCessElabEntity> findAll() {
|
||||||
|
Transaction tx = null;
|
||||||
|
List<ViewEsitoAttCessElabEntity> results = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
String sqlQuery = "SELECT * FROM MNP_VIEW_ESITO_ATT_CESS_ELAB ";
|
||||||
|
SQLQuery query = getSession().createSQLQuery(sqlQuery).addEntity(ViewEsitoAttCessElabEntity.class);
|
||||||
|
results = query.list();
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public List<ViewEsitoAttCessElabEntity> findByCriteria(List<Criterion> criterion) {
|
||||||
|
List<ViewEsitoAttCessElabEntity> results = new ArrayList<ViewEsitoAttCessElabEntity>();
|
||||||
|
Transaction tx = null;
|
||||||
|
try {
|
||||||
|
Session session = getSession();
|
||||||
|
tx = startTransaction(session);
|
||||||
|
Criteria criteria = session.createCriteria(ViewEsitoAttCessElabEntity.class);
|
||||||
|
for (Criterion crit : criterion) {
|
||||||
|
criteria.add(crit);
|
||||||
|
}
|
||||||
|
results = criteria.list();
|
||||||
|
commitTransaction(tx);
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
rollbackTransaction(tx);
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Session getSession() {
|
||||||
|
try {
|
||||||
|
return HibernateUtil.getSession();
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void commitTransaction(Transaction tx) {
|
||||||
|
tx.commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void rollbackTransaction(Transaction tx) {
|
||||||
|
if (tx != null) {
|
||||||
|
tx.rollback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Transaction startTransaction(Session session) {
|
||||||
|
return session.beginTransaction();
|
||||||
|
}
|
||||||
|
}
|
||||||
172
dbcm/dbcm-dao/src/main/java/dbcm/entity/EsitoAttCessEntity.java
Normal file
172
dbcm/dbcm-dao/src/main/java/dbcm/entity/EsitoAttCessEntity.java
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
package dbcm.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "MNP_ESITO_ATT_CESS")
|
||||||
|
public class EsitoAttCessEntity {
|
||||||
|
@Id
|
||||||
|
@Column(name = "unique_id")
|
||||||
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "c_generator")
|
||||||
|
@SequenceGenerator(name = "c_generator", sequenceName = "SEQ_MNP_ESITO_ATT_CESS", allocationSize = 1)
|
||||||
|
private Long uniqueId;
|
||||||
|
|
||||||
|
@Column(name = "id_richiesta", length = 23)
|
||||||
|
private String idRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "msisdn", length = 15, nullable = false)
|
||||||
|
private String msisdn;
|
||||||
|
|
||||||
|
@Column(name = "identificativo_richiesta", length = 23)
|
||||||
|
private String identificativoRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "tipo_richiesta", length = 1, nullable = false)
|
||||||
|
private String tipoRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "data_espletamento", nullable = false)
|
||||||
|
private Date dataEspletamento;
|
||||||
|
|
||||||
|
@Column(name = "tipo_linea", length = 15)
|
||||||
|
private String tipoLinea;
|
||||||
|
|
||||||
|
@Column(name = "rgn", length = 3)
|
||||||
|
private String rgn;
|
||||||
|
|
||||||
|
@Column(name = "imsi", length = 15)
|
||||||
|
private String imsi;
|
||||||
|
|
||||||
|
@Column(name = "sistema_chiamante", length = 15, nullable = false)
|
||||||
|
private String sistemaChiamante;
|
||||||
|
|
||||||
|
@Column(name = "sistema_chiamante_sec", length = 15, nullable = true)
|
||||||
|
private String sistemaChiamanteSec;
|
||||||
|
|
||||||
|
@Column(name = "data_ricezione_gisp")
|
||||||
|
private Date dataRicezioneGisp;
|
||||||
|
|
||||||
|
@Column(name = "data_ricezione_web")
|
||||||
|
private Date dataRicezioneWeb;
|
||||||
|
|
||||||
|
@Column(name = "data_elaborazione")
|
||||||
|
private Date dataElaborazione;
|
||||||
|
|
||||||
|
public Long getUniqueId() {
|
||||||
|
return uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUniqueId(Long uniqueId) {
|
||||||
|
this.uniqueId = uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdentificativoRichiesta() {
|
||||||
|
return identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdentificativoRichiesta(String identificativoRichiesta) {
|
||||||
|
this.identificativoRichiesta = identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoRichiesta() {
|
||||||
|
return tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoRichiesta(String tipoRichiesta) {
|
||||||
|
this.tipoRichiesta = tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataEspletamento() {
|
||||||
|
return dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataEspletamento(Date dataEspletamento) {
|
||||||
|
this.dataEspletamento = dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoLinea() {
|
||||||
|
return tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoLinea(String tipoLinea) {
|
||||||
|
this.tipoLinea = tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRgn() {
|
||||||
|
return rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRgn(String rgn) {
|
||||||
|
this.rgn = rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImsi() {
|
||||||
|
return imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImsi(String imsi) {
|
||||||
|
this.imsi = imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamante() {
|
||||||
|
return sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamante(String sistemaChiamante) {
|
||||||
|
this.sistemaChiamante = sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamanteSec() {
|
||||||
|
return sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamanteSec(String sistemaChiamanteSec) {
|
||||||
|
this.sistemaChiamanteSec = sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneGisp() {
|
||||||
|
return dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneGisp(Date dataRicezioneGisp) {
|
||||||
|
this.dataRicezioneGisp = dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneWeb() {
|
||||||
|
return dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneWeb(Date dataRicezioneWeb) {
|
||||||
|
this.dataRicezioneWeb = dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataElaborazione() {
|
||||||
|
return dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataElaborazione(Date dataElaborazione) {
|
||||||
|
this.dataElaborazione = dataElaborazione;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,172 @@
|
|||||||
|
package dbcm.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "MNP_ESITO_ATT_CESS_SCARTI")
|
||||||
|
public class EsitoAttCessScartiEntity {
|
||||||
|
@Id
|
||||||
|
@Column(name = "unique_id")
|
||||||
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "c_generator")
|
||||||
|
@SequenceGenerator(name = "c_generator", sequenceName = "SEQ_MNP_ESITO_ATT_CESS_SCARTI", allocationSize = 1)
|
||||||
|
private Long uniqueId;
|
||||||
|
|
||||||
|
@Column(name = "id_richiesta", length = 23)
|
||||||
|
private String idRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "msisdn", length = 15, nullable = false)
|
||||||
|
private String msisdn;
|
||||||
|
|
||||||
|
@Column(name = "identificativo_richiesta", length = 23)
|
||||||
|
private String identificativoRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "tipo_richiesta", length = 1, nullable = false)
|
||||||
|
private String tipoRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "data_espletamento", nullable = false)
|
||||||
|
private Date dataEspletamento;
|
||||||
|
|
||||||
|
@Column(name = "tipo_linea", length = 15)
|
||||||
|
private String tipoLinea;
|
||||||
|
|
||||||
|
@Column(name = "rgn", length = 3)
|
||||||
|
private String rgn;
|
||||||
|
|
||||||
|
@Column(name = "imsi", length = 15)
|
||||||
|
private String imsi;
|
||||||
|
|
||||||
|
@Column(name = "sistema_chiamante", length = 15, nullable = false)
|
||||||
|
private String sistemaChiamante;
|
||||||
|
|
||||||
|
@Column(name = "sistema_chiamante_sec", length = 15, nullable = true)
|
||||||
|
private String sistemaChiamanteSec;
|
||||||
|
|
||||||
|
@Column(name = "data_ricezione_gisp")
|
||||||
|
private Date dataRicezioneGisp;
|
||||||
|
|
||||||
|
@Column(name = "data_ricezione_web")
|
||||||
|
private Date dataRicezioneWeb;
|
||||||
|
|
||||||
|
@Column(name = "data_elaborazione")
|
||||||
|
private Date dataElaborazione;
|
||||||
|
|
||||||
|
public Long getUniqueId() {
|
||||||
|
return uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUniqueId(Long uniqueId) {
|
||||||
|
this.uniqueId = uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdentificativoRichiesta() {
|
||||||
|
return identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdentificativoRichiesta(String identificativoRichiesta) {
|
||||||
|
this.identificativoRichiesta = identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoRichiesta() {
|
||||||
|
return tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoRichiesta(String tipoRichiesta) {
|
||||||
|
this.tipoRichiesta = tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataEspletamento() {
|
||||||
|
return dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataEspletamento(Date dataEspletamento) {
|
||||||
|
this.dataEspletamento = dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoLinea() {
|
||||||
|
return tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoLinea(String tipoLinea) {
|
||||||
|
this.tipoLinea = tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRgn() {
|
||||||
|
return rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRgn(String rgn) {
|
||||||
|
this.rgn = rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImsi() {
|
||||||
|
return imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImsi(String imsi) {
|
||||||
|
this.imsi = imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamante() {
|
||||||
|
return sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamante(String sistemaChiamante) {
|
||||||
|
this.sistemaChiamante = sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamanteSec() {
|
||||||
|
return sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamanteSec(String sistemaChiamanteSec) {
|
||||||
|
this.sistemaChiamanteSec = sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneGisp() {
|
||||||
|
return dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneGisp(Date dataRicezioneGisp) {
|
||||||
|
this.dataRicezioneGisp = dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneWeb() {
|
||||||
|
return dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneWeb(Date dataRicezioneWeb) {
|
||||||
|
this.dataRicezioneWeb = dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataElaborazione() {
|
||||||
|
return dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataElaborazione(Date dataElaborazione) {
|
||||||
|
this.dataElaborazione = dataElaborazione;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
package dbcm.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "MNP_GESTIONE_RICHIESTA")
|
||||||
|
public class GestioneRichiestaEntity {
|
||||||
|
@Id
|
||||||
|
@Column(name = "id_richiesta")
|
||||||
|
private String idRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "msisdn")
|
||||||
|
private String msisdn;
|
||||||
|
|
||||||
|
@Column(name = "data_cut_over_calc")
|
||||||
|
private Date dataCutOverCalc;
|
||||||
|
|
||||||
|
@Column(name = "stato")
|
||||||
|
private Long stato;
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataCutOverCalc() {
|
||||||
|
return dataCutOverCalc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCutOverCalc(Date dataCutOverCalc) {
|
||||||
|
this.dataCutOverCalc = dataCutOverCalc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getStato() {
|
||||||
|
return stato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStato(Long stato) {
|
||||||
|
this.stato = stato;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
package dbcm.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "MNP_GESTIONE_RICHIESTA_REC")
|
||||||
|
public class GestioneRichiestaRecEntity {
|
||||||
|
@Id
|
||||||
|
@Column(name = "id_richiesta")
|
||||||
|
private String idRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "msisdn")
|
||||||
|
private String msisdn;
|
||||||
|
|
||||||
|
@Column(name = "data_cut_over_aom")
|
||||||
|
private Date dataCutOverAom;
|
||||||
|
|
||||||
|
@Column(name = "stato")
|
||||||
|
private Long stato;
|
||||||
|
|
||||||
|
@Column(name = "espletamentomss")
|
||||||
|
private Long espletamentomss;
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataCutOverAom() {
|
||||||
|
return dataCutOverAom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCutOverAom(Date dataCutOverAom) {
|
||||||
|
this.dataCutOverAom = dataCutOverAom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getStato() {
|
||||||
|
return stato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStato(Long stato) {
|
||||||
|
this.stato = stato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEspletamentomss() {
|
||||||
|
return espletamentomss;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEspletamentomss(Long espletamentomss) {
|
||||||
|
this.espletamentomss = espletamentomss;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,167 @@
|
|||||||
|
package dbcm.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "MNP_VIEW_ESITO_ATT_CESS_ELAB")
|
||||||
|
public class ViewEsitoAttCessElabEntity {
|
||||||
|
@Id
|
||||||
|
@Column(name = "unique_id")
|
||||||
|
private Long uniqueId;
|
||||||
|
|
||||||
|
@Column(name = "id_richiesta")
|
||||||
|
private String idRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "identificativo_richiesta")
|
||||||
|
private String identificativoRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "msisdn")
|
||||||
|
private String msisdn;
|
||||||
|
|
||||||
|
@Column(name = "tipo_richiesta")
|
||||||
|
private String tipoRichiesta;
|
||||||
|
|
||||||
|
@Column(name = "data_espletamento")
|
||||||
|
private Date dataEspletamento;
|
||||||
|
|
||||||
|
@Column(name = "tipo_linea")
|
||||||
|
private String tipoLinea;
|
||||||
|
|
||||||
|
@Column(name = "rgn")
|
||||||
|
private String rgn;
|
||||||
|
|
||||||
|
@Column(name = "imsi")
|
||||||
|
private String imsi;
|
||||||
|
|
||||||
|
@Column(name = "sistema_chiamante")
|
||||||
|
private String sistemaChiamante;
|
||||||
|
|
||||||
|
@Column(name = "sistema_chiamante_sec")
|
||||||
|
private String sistemaChiamanteSec;
|
||||||
|
|
||||||
|
@Column(name = "data_ricezione_gisp")
|
||||||
|
private Date dataRicezioneGisp;
|
||||||
|
|
||||||
|
@Column(name = "data_ricezione_web")
|
||||||
|
private Date dataRicezioneWeb;
|
||||||
|
|
||||||
|
@Column(name = "data_elaborazione")
|
||||||
|
private Date dataElaborazione;
|
||||||
|
|
||||||
|
public Long getUniqueId() {
|
||||||
|
return uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUniqueId(Long uniqueId) {
|
||||||
|
this.uniqueId = uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdentificativoRichiesta() {
|
||||||
|
return identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdentificativoRichiesta(String identificativoRichiesta) {
|
||||||
|
this.identificativoRichiesta = identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoRichiesta() {
|
||||||
|
return tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoRichiesta(String tipoRichiesta) {
|
||||||
|
this.tipoRichiesta = tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataEspletamento() {
|
||||||
|
return dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataEspletamento(Date dataEspletamento) {
|
||||||
|
this.dataEspletamento = dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoLinea() {
|
||||||
|
return tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoLinea(String tipoLinea) {
|
||||||
|
this.tipoLinea = tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRgn() {
|
||||||
|
return rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRgn(String rgn) {
|
||||||
|
this.rgn = rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImsi() {
|
||||||
|
return imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImsi(String imsi) {
|
||||||
|
this.imsi = imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamante() {
|
||||||
|
return sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamante(String sistemaChiamante) {
|
||||||
|
this.sistemaChiamante = sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamanteSec() {
|
||||||
|
return sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamanteSec(String sistemaChiamanteSec) {
|
||||||
|
this.sistemaChiamanteSec = sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneGisp() {
|
||||||
|
return dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneGisp(Date dataRicezioneGisp) {
|
||||||
|
this.dataRicezioneGisp = dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneWeb() {
|
||||||
|
return dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneWeb(Date dataRicezioneWeb) {
|
||||||
|
this.dataRicezioneWeb = dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataElaborazione() {
|
||||||
|
return dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataElaborazione(Date dataElaborazione) {
|
||||||
|
this.dataElaborazione = dataElaborazione;
|
||||||
|
}
|
||||||
|
}
|
||||||
38
dbcm/dbcm-dao/src/main/java/dbcm/utils/HibernateUtil.java
Normal file
38
dbcm/dbcm-dao/src/main/java/dbcm/utils/HibernateUtil.java
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
package dbcm.utils;
|
||||||
|
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.SessionFactory;
|
||||||
|
import org.hibernate.cfg.Configuration;
|
||||||
|
|
||||||
|
public class HibernateUtil {
|
||||||
|
private static final SessionFactory sessionFactory;
|
||||||
|
|
||||||
|
static {
|
||||||
|
try {
|
||||||
|
System.err.println("Create the SessionFactory dbcm from hibernate.cfg.xml ");
|
||||||
|
|
||||||
|
// Create the SessionFactory from hibernate.cfg.xml
|
||||||
|
sessionFactory = new Configuration().configure().buildSessionFactory();
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
// Make sure you log the exception, as it might be swallowed
|
||||||
|
System.err.println("Initial SessionFactory creation failed." + ex.toString());
|
||||||
|
System.err.println("Initial SessionFactory creation failed." + ex.getStackTrace().toString());
|
||||||
|
|
||||||
|
throw new ExceptionInInitializerError(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static SessionFactory getSessionFactory() {
|
||||||
|
return sessionFactory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Session getSession() {
|
||||||
|
return sessionFactory.getCurrentSession();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void shutdown() {
|
||||||
|
// Close caches and connection pools
|
||||||
|
getSessionFactory().close();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
26
dbcm/dbcm-dao/src/main/resources/hibernate.cfg.xml
Normal file
26
dbcm/dbcm-dao/src/main/resources/hibernate.cfg.xml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
||||||
|
<hibernate-configuration>
|
||||||
|
<session-factory>
|
||||||
|
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
|
||||||
|
<property name="connection.datasource">jdbc/mnpDS</property>
|
||||||
|
<!-- <property name="transaction.factory_class"> org.hibernate.transaction.JTATransactionFactory </property> <property name="transaction.manager_lookup_class"> org.hibernate.transaction.WeblogicTransactionManagerLookup </property> <property name="current_session_context_class"> jta </property> -->
|
||||||
|
<!-- Chooses the HQL parser implementation -->
|
||||||
|
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
|
||||||
|
<property name="hibernate.current_session_context_class">thread</property>
|
||||||
|
<property name="cache.use_second_level_cache">false</property>
|
||||||
|
<!-- <property name="dialect">org.hibernate.dialect.OracleDialect</property> -->
|
||||||
|
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
|
||||||
|
<property name="connection.password"></property>
|
||||||
|
<property name="jta.UserTransaction">javax.transaction.UserTransaction</property>
|
||||||
|
<property name="transaction.auto_close_session">true</property>
|
||||||
|
<property name="show_sql">false</property>
|
||||||
|
<!--<property name="hibernate.generate_statistics">true</property> -->
|
||||||
|
|
||||||
|
<mapping class="dbcm.entity.EsitoAttCessEntity" />
|
||||||
|
<mapping class="dbcm.entity.EsitoAttCessScartiEntity" />
|
||||||
|
<mapping class="dbcm.entity.GestioneRichiestaEntity" />
|
||||||
|
<mapping class="dbcm.entity.GestioneRichiestaRecEntity" />
|
||||||
|
<mapping class="dbcm.entity.ViewEsitoAttCessElabEntity" />
|
||||||
|
</session-factory>
|
||||||
|
</hibernate-configuration>
|
||||||
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/EsitoAttCessDao.class
Normal file
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/EsitoAttCessDao.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/GenericDao.class
Normal file
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/GenericDao.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/GenericDaoImpl.class
Normal file
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/GenericDaoImpl.class
Normal file
Binary file not shown.
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/GestioneRichiestaDao.class
Normal file
BIN
dbcm/dbcm-dao/target/classes/dbcm/dao/GestioneRichiestaDao.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
dbcm/dbcm-dao/target/classes/dbcm/utils/HibernateUtil.class
Normal file
BIN
dbcm/dbcm-dao/target/classes/dbcm/utils/HibernateUtil.class
Normal file
Binary file not shown.
26
dbcm/dbcm-dao/target/classes/hibernate.cfg.xml
Normal file
26
dbcm/dbcm-dao/target/classes/hibernate.cfg.xml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
||||||
|
<hibernate-configuration>
|
||||||
|
<session-factory>
|
||||||
|
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
|
||||||
|
<property name="connection.datasource">jdbc/mnpDS</property>
|
||||||
|
<!-- <property name="transaction.factory_class"> org.hibernate.transaction.JTATransactionFactory </property> <property name="transaction.manager_lookup_class"> org.hibernate.transaction.WeblogicTransactionManagerLookup </property> <property name="current_session_context_class"> jta </property> -->
|
||||||
|
<!-- Chooses the HQL parser implementation -->
|
||||||
|
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
|
||||||
|
<property name="hibernate.current_session_context_class">thread</property>
|
||||||
|
<property name="cache.use_second_level_cache">false</property>
|
||||||
|
<!-- <property name="dialect">org.hibernate.dialect.OracleDialect</property> -->
|
||||||
|
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
|
||||||
|
<property name="connection.password"></property>
|
||||||
|
<property name="jta.UserTransaction">javax.transaction.UserTransaction</property>
|
||||||
|
<property name="transaction.auto_close_session">true</property>
|
||||||
|
<property name="show_sql">false</property>
|
||||||
|
<!--<property name="hibernate.generate_statistics">true</property> -->
|
||||||
|
|
||||||
|
<mapping class="dbcm.entity.EsitoAttCessEntity" />
|
||||||
|
<mapping class="dbcm.entity.EsitoAttCessScartiEntity" />
|
||||||
|
<mapping class="dbcm.entity.GestioneRichiestaEntity" />
|
||||||
|
<mapping class="dbcm.entity.GestioneRichiestaRecEntity" />
|
||||||
|
<mapping class="dbcm.entity.ViewEsitoAttCessElabEntity" />
|
||||||
|
</session-factory>
|
||||||
|
</hibernate-configuration>
|
||||||
BIN
dbcm/dbcm-dao/target/dbcm-dao-1.0.jar
Normal file
BIN
dbcm/dbcm-dao/target/dbcm-dao-1.0.jar
Normal file
Binary file not shown.
5
dbcm/dbcm-dao/target/maven-archiver/pom.properties
Normal file
5
dbcm/dbcm-dao/target/maven-archiver/pom.properties
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#Generated by Maven
|
||||||
|
#Fri Jun 10 14:06:52 CEST 2022
|
||||||
|
version=1.0
|
||||||
|
groupId=dbcm
|
||||||
|
artifactId=dbcm-dao
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
dbcm\dao\EsitoAttCessScartiDao.class
|
||||||
|
dbcm\entity\GestioneRichiestaEntity.class
|
||||||
|
dbcm\entity\GestioneRichiestaRecEntity.class
|
||||||
|
dbcm\dao\ViewEsitoAttCessElabDao.class
|
||||||
|
dbcm\entity\EsitoAttCessScartiEntity.class
|
||||||
|
dbcm\entity\EsitoAttCessEntity.class
|
||||||
|
dbcm\entity\ViewEsitoAttCessElabEntity.class
|
||||||
|
dbcm\utils\HibernateUtil.class
|
||||||
|
dbcm\dao\EsitoAttCessDao.class
|
||||||
|
dbcm\dao\GestioneRichiestaDao.class
|
||||||
|
dbcm\dao\GestioneRichiestaRecDao.class
|
||||||
|
dbcm\dao\GenericDaoImpl.class
|
||||||
|
dbcm\dao\GenericDao.class
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\entity\EsitoAttCessEntity.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\EsitoAttCessDao.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\EsitoAttCessScartiDao.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\entity\ViewEsitoAttCessElabEntity.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\entity\GestioneRichiestaEntity.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\utils\HibernateUtil.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\GenericDaoImpl.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\GenericDao.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\GestioneRichiestaDao.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\ViewEsitoAttCessElabDao.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\dao\GestioneRichiestaRecDao.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\entity\GestioneRichiestaRecEntity.java
|
||||||
|
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-dao\src\main\java\dbcm\entity\EsitoAttCessScartiEntity.java
|
||||||
2
dbcm/dbcm-ear/.settings/org.eclipse.core.resources.prefs
Normal file
2
dbcm/dbcm-ear/.settings/org.eclipse.core.resources.prefs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding/<project>=UTF-8
|
||||||
4
dbcm/dbcm-ear/.settings/org.eclipse.m2e.core.prefs
Normal file
4
dbcm/dbcm-ear/.settings/org.eclipse.m2e.core.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
||||||
9
dbcm/dbcm-ear/.settings/org.eclipse.wst.common.component
Normal file
9
dbcm/dbcm-ear/.settings/org.eclipse.wst.common.component
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
|
<wb-module deploy-name="dbcm-ear-1.0">
|
||||||
|
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/ear-resources"/>
|
||||||
|
<wb-resource deploy-path="/" source-path="/EarContent" tag="defaultRootSource"/>
|
||||||
|
<dependent-module archiveName="dbcm.war" deploy-path="/" handle="module:/resource/dbcm-web/dbcm-web">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
</wb-module>
|
||||||
|
</project-modules>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<faceted-project>
|
||||||
|
<installed facet="jst.ear" version="1.3"/>
|
||||||
|
</faceted-project>
|
||||||
2
dbcm/dbcm-ear/.settings/org.eclipse.wst.validation.prefs
Normal file
2
dbcm/dbcm-ear/.settings/org.eclipse.wst.validation.prefs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
disabled=06target
|
||||||
|
eclipse.preferences.version=1
|
||||||
10
dbcm/dbcm-ear/EarContent/META-INF/application.xml
Normal file
10
dbcm/dbcm-ear/EarContent/META-INF/application.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
|
||||||
|
<display-name>dbcm</display-name>
|
||||||
|
<module>
|
||||||
|
<web>
|
||||||
|
<web-uri>dbcm.war</web-uri>
|
||||||
|
<context-root>dbcm</context-root>
|
||||||
|
</web>
|
||||||
|
</module>
|
||||||
|
</application>
|
||||||
11
dbcm/dbcm-ear/EarContent/META-INF/weblogic-application.xml
Normal file
11
dbcm/dbcm-ear/EarContent/META-INF/weblogic-application.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd">
|
||||||
|
<wls:application-param>
|
||||||
|
<wls:param-name>webapp.encoding.default</wls:param-name>
|
||||||
|
<wls:param-value>UTF-8</wls:param-value>
|
||||||
|
</wls:application-param>
|
||||||
|
|
||||||
|
<wls:prefer-application-packages>
|
||||||
|
<wls:package-name>javax.persistence.*</wls:package-name>
|
||||||
|
</wls:prefer-application-packages>
|
||||||
|
</wls:weblogic-application>
|
||||||
89
dbcm/dbcm-ear/pom.xml
Normal file
89
dbcm/dbcm-ear/pom.xml
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>dbcm-ear</artifactId>
|
||||||
|
<packaging>ear</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>dbcm</groupId>
|
||||||
|
<artifactId>dbcm</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>1.6</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.6</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>dbcm</groupId>
|
||||||
|
<artifactId>dbcm-web</artifactId>
|
||||||
|
<type>war</type>
|
||||||
|
<version>1.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-ear-plugin</artifactId>
|
||||||
|
<version>2.6</version>
|
||||||
|
<configuration>
|
||||||
|
<earSourceDirectory>${basedir}/EarContent</earSourceDirectory>
|
||||||
|
<modules>
|
||||||
|
<webModule>
|
||||||
|
<groupId>dbcm</groupId>
|
||||||
|
<artifactId>dbcm-web</artifactId>
|
||||||
|
<contextRoot>dbcm</contextRoot>
|
||||||
|
<bundleFileName>dbcm.war</bundleFileName>
|
||||||
|
<bundleDir>/</bundleDir>
|
||||||
|
</webModule>
|
||||||
|
</modules>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.7</version>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>install</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<copy todir="../target">
|
||||||
|
<fileset dir="./target">
|
||||||
|
<include name="*.ear" />
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.coderplus.maven.plugins</groupId>
|
||||||
|
<artifactId>copy-rename-maven-plugin</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-file</id>
|
||||||
|
<phase>install</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>rename</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<sourceFile>../target/dbcm-ear-1.0.ear</sourceFile>
|
||||||
|
<destinationFile>../target/dbcm.ear</destinationFile>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
10
dbcm/dbcm-ear/target/antrun/build-main.xml
Normal file
10
dbcm/dbcm-ear/target/antrun/build-main.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<project name="maven-antrun-" default="main" >
|
||||||
|
<target name="main">
|
||||||
|
<copy todir="../target">
|
||||||
|
<fileset dir="./target">
|
||||||
|
<include name="*.ear"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
</project>
|
||||||
13
dbcm/dbcm-ear/target/application.xml
Normal file
13
dbcm/dbcm-ear/target/application.xml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE application PUBLIC
|
||||||
|
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
|
||||||
|
"http://java.sun.com/dtd/application_1_3.dtd">
|
||||||
|
<application>
|
||||||
|
<display-name>dbcm-ear</display-name>
|
||||||
|
<module>
|
||||||
|
<web>
|
||||||
|
<web-uri>dbcm.war</web-uri>
|
||||||
|
<context-root>dbcm</context-root>
|
||||||
|
</web>
|
||||||
|
</module>
|
||||||
|
</application>
|
||||||
BIN
dbcm/dbcm-ear/target/dbcm-ear-1.0.ear
Normal file
BIN
dbcm/dbcm-ear/target/dbcm-ear-1.0.ear
Normal file
Binary file not shown.
10
dbcm/dbcm-ear/target/dbcm-ear-1.0/META-INF/application.xml
Normal file
10
dbcm/dbcm-ear/target/dbcm-ear-1.0/META-INF/application.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
|
||||||
|
<display-name>dbcm</display-name>
|
||||||
|
<module>
|
||||||
|
<web>
|
||||||
|
<web-uri>dbcm.war</web-uri>
|
||||||
|
<context-root>dbcm</context-root>
|
||||||
|
</web>
|
||||||
|
</module>
|
||||||
|
</application>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd">
|
||||||
|
<wls:application-param>
|
||||||
|
<wls:param-name>webapp.encoding.default</wls:param-name>
|
||||||
|
<wls:param-value>UTF-8</wls:param-value>
|
||||||
|
</wls:application-param>
|
||||||
|
|
||||||
|
<wls:prefer-application-packages>
|
||||||
|
<wls:package-name>javax.persistence.*</wls:package-name>
|
||||||
|
</wls:prefer-application-packages>
|
||||||
|
</wls:weblogic-application>
|
||||||
BIN
dbcm/dbcm-ear/target/dbcm-ear-1.0/dbcm.war
Normal file
BIN
dbcm/dbcm-ear/target/dbcm-ear-1.0/dbcm.war
Normal file
Binary file not shown.
5
dbcm/dbcm-ear/target/maven-archiver/pom.properties
Normal file
5
dbcm/dbcm-ear/target/maven-archiver/pom.properties
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#Generated by Maven
|
||||||
|
#Fri Jun 10 14:07:01 CEST 2022
|
||||||
|
version=1.0
|
||||||
|
groupId=dbcm
|
||||||
|
artifactId=dbcm-ear
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
||||||
9
dbcm/dbcm-model/.settings/org.eclipse.jdt.core.prefs
Normal file
9
dbcm/dbcm-model/.settings/org.eclipse.jdt.core.prefs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.6
|
||||||
4
dbcm/dbcm-model/.settings/org.eclipse.m2e.core.prefs
Normal file
4
dbcm/dbcm-model/.settings/org.eclipse.m2e.core.prefs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
|
<wb-module deploy-name="dbcm-model">
|
||||||
|
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||||
|
</wb-module>
|
||||||
|
</project-modules>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<faceted-project>
|
||||||
|
<installed facet="java" version="1.6"/>
|
||||||
|
<installed facet="jst.utility" version="1.0"/>
|
||||||
|
</faceted-project>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
disabled=06target
|
||||||
|
eclipse.preferences.version=1
|
||||||
17
dbcm/dbcm-model/pom.xml
Normal file
17
dbcm/dbcm-model/pom.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>dbcm-model</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>dbcm</groupId>
|
||||||
|
<artifactId>dbcm</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>1.6</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.6</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package dbcm.constants;
|
||||||
|
|
||||||
|
public class Constants {
|
||||||
|
public static final String TIPO_RICHIESTA_DONOR = "1";
|
||||||
|
public static final String TIPO_RICHIESTA_RECIPIENT = "2";
|
||||||
|
public static final String TIPO_RICHIESTA_CESSAZIONE_PORTING = "3";
|
||||||
|
public static final String OPSC_SYSTEM= "OPSC";
|
||||||
|
public static final String OCS_SYSTEM= "OCS";
|
||||||
|
}
|
||||||
@@ -0,0 +1,167 @@
|
|||||||
|
package dbcm.model.bean;
|
||||||
|
|
||||||
|
import java.text.ParseException;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import dbcm.constants.Constants;
|
||||||
|
|
||||||
|
public class EsitoAttCessModel {
|
||||||
|
private Long uniqueId;
|
||||||
|
private String idRichiesta;
|
||||||
|
private String msisdn;
|
||||||
|
private String identificativoRichiesta;
|
||||||
|
private String tipoRichiesta;
|
||||||
|
private Date dataEspletamento;
|
||||||
|
private String tipoLinea;
|
||||||
|
private String rgn;
|
||||||
|
private String imsi;
|
||||||
|
private String sistemaChiamante;
|
||||||
|
private String sistemaChiamanteSec;
|
||||||
|
private Date dataRicezioneGisp;
|
||||||
|
private Date dataRicezioneWeb;
|
||||||
|
private Date dataElaborazione;
|
||||||
|
|
||||||
|
public EsitoAttCessModel() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public EsitoAttCessModel(String fromGFPFile) {
|
||||||
|
setDataRicezioneWeb(new Date());
|
||||||
|
setMsisdn("39" + fromGFPFile.substring(15, 26).trim());
|
||||||
|
try {
|
||||||
|
setDataEspletamento(new SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fromGFPFile.substring(88, 102).trim() + "000"));
|
||||||
|
} catch (ParseException e) {
|
||||||
|
}
|
||||||
|
setSistemaChiamante("GFP");
|
||||||
|
setTipoRichiesta(Constants.TIPO_RICHIESTA_CESSAZIONE_PORTING);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUniqueId() {
|
||||||
|
return uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUniqueId(Long uniqueId) {
|
||||||
|
this.uniqueId = uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdentificativoRichiesta() {
|
||||||
|
return identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdentificativoRichiesta(String identificativoRichiesta) {
|
||||||
|
this.identificativoRichiesta = identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoRichiesta() {
|
||||||
|
return tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoRichiesta(String tipoRichiesta) {
|
||||||
|
this.tipoRichiesta = tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataEspletamento() {
|
||||||
|
return dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataEspletamento(Date dataEspletamento) {
|
||||||
|
this.dataEspletamento = dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoLinea() {
|
||||||
|
return tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoLinea(String tipoLinea) {
|
||||||
|
this.tipoLinea = tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRgn() {
|
||||||
|
return rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRgn(String rgn) {
|
||||||
|
this.rgn = rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImsi() {
|
||||||
|
return imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImsi(String imsi) {
|
||||||
|
this.imsi = imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamante() {
|
||||||
|
return sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamante(String sistemaChiamante) {
|
||||||
|
this.sistemaChiamante = sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamanteSec() {
|
||||||
|
return sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamanteSec(String sistemaChiamanteSec) {
|
||||||
|
this.sistemaChiamanteSec = sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneGisp() {
|
||||||
|
return dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneGisp(Date dataRicezioneGisp) {
|
||||||
|
this.dataRicezioneGisp = dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneWeb() {
|
||||||
|
return dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneWeb(Date dataRicezioneWeb) {
|
||||||
|
this.dataRicezioneWeb = dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataElaborazione() {
|
||||||
|
return dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataElaborazione(Date dataElaborazione) {
|
||||||
|
this.dataElaborazione = dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return
|
||||||
|
"uniqueId=" + (uniqueId != null ? uniqueId.longValue() : "null") + ", " +
|
||||||
|
"msisdn=" + msisdn + ", " +
|
||||||
|
"identificativoRichiesta=" + identificativoRichiesta + ", " +
|
||||||
|
"tipoRichiesta=" + tipoRichiesta + ", " +
|
||||||
|
"dataEspletamento=" + dataEspletamento + ", " +
|
||||||
|
"tipoLinea=" + tipoLinea + ", " +
|
||||||
|
"rgn=" + rgn + ", " +
|
||||||
|
"imsi=" + imsi + ", " +
|
||||||
|
"sistemaChiamante=" + sistemaChiamante + ", " +
|
||||||
|
"dataRicezioneGisp=" + dataRicezioneGisp + ", " +
|
||||||
|
"dataRicezioneWeb=" + dataRicezioneWeb + ", " +
|
||||||
|
"dataElaborazione=" + dataElaborazione;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,152 @@
|
|||||||
|
package dbcm.model.bean;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class EsitoAttCessScartiModel {
|
||||||
|
private Long uniqueId;
|
||||||
|
private String idRichiesta;
|
||||||
|
private String msisdn;
|
||||||
|
private String identificativoRichiesta;
|
||||||
|
private String tipoRichiesta;
|
||||||
|
private Date dataEspletamento;
|
||||||
|
private String tipoLinea;
|
||||||
|
private String rgn;
|
||||||
|
private String imsi;
|
||||||
|
private String sistemaChiamante;
|
||||||
|
private String sistemaChiamanteSec;
|
||||||
|
private Date dataRicezioneGisp;
|
||||||
|
private Date dataRicezioneWeb;
|
||||||
|
private Date dataElaborazione;
|
||||||
|
|
||||||
|
public EsitoAttCessScartiModel() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUniqueId() {
|
||||||
|
return uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUniqueId(Long uniqueId) {
|
||||||
|
this.uniqueId = uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdentificativoRichiesta() {
|
||||||
|
return identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdentificativoRichiesta(String identificativoRichiesta) {
|
||||||
|
this.identificativoRichiesta = identificativoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoRichiesta() {
|
||||||
|
return tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoRichiesta(String tipoRichiesta) {
|
||||||
|
this.tipoRichiesta = tipoRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataEspletamento() {
|
||||||
|
return dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataEspletamento(Date dataEspletamento) {
|
||||||
|
this.dataEspletamento = dataEspletamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoLinea() {
|
||||||
|
return tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoLinea(String tipoLinea) {
|
||||||
|
this.tipoLinea = tipoLinea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRgn() {
|
||||||
|
return rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRgn(String rgn) {
|
||||||
|
this.rgn = rgn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImsi() {
|
||||||
|
return imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImsi(String imsi) {
|
||||||
|
this.imsi = imsi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamante() {
|
||||||
|
return sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamante(String sistemaChiamante) {
|
||||||
|
this.sistemaChiamante = sistemaChiamante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSistemaChiamanteSec() {
|
||||||
|
return sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSistemaChiamanteSec(String sistemaChiamanteSec) {
|
||||||
|
this.sistemaChiamanteSec = sistemaChiamanteSec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneGisp() {
|
||||||
|
return dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneGisp(Date dataRicezioneGisp) {
|
||||||
|
this.dataRicezioneGisp = dataRicezioneGisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataRicezioneWeb() {
|
||||||
|
return dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataRicezioneWeb(Date dataRicezioneWeb) {
|
||||||
|
this.dataRicezioneWeb = dataRicezioneWeb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataElaborazione() {
|
||||||
|
return dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataElaborazione(Date dataElaborazione) {
|
||||||
|
this.dataElaborazione = dataElaborazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return
|
||||||
|
"uniqueId=" + (uniqueId != null ? uniqueId.longValue() : "null") + ", " +
|
||||||
|
"msisdn=" + msisdn + ", " +
|
||||||
|
"identificativoRichiesta=" + identificativoRichiesta + ", " +
|
||||||
|
"tipoRichiesta=" + tipoRichiesta + ", " +
|
||||||
|
"dataEspletamento=" + dataEspletamento + ", " +
|
||||||
|
"tipoLinea=" + tipoLinea + ", " +
|
||||||
|
"rgn=" + rgn + ", " +
|
||||||
|
"imsi=" + imsi + ", " +
|
||||||
|
"sistemaChiamante=" + sistemaChiamante + ", " +
|
||||||
|
"dataRicezioneGisp=" + dataRicezioneGisp + ", " +
|
||||||
|
"dataRicezioneWeb=" + dataRicezioneWeb + ", " +
|
||||||
|
"dataElaborazione=" + dataElaborazione;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
package dbcm.model.bean;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class GestioneRichiestaModel {
|
||||||
|
private String idRichiesta;
|
||||||
|
private String msisdn;
|
||||||
|
private Date dataCutOverCalc;
|
||||||
|
private Long stato;
|
||||||
|
|
||||||
|
public GestioneRichiestaModel() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdRichiesta() {
|
||||||
|
return idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdRichiesta(String idRichiesta) {
|
||||||
|
this.idRichiesta = idRichiesta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsisdn() {
|
||||||
|
return msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsisdn(String msisdn) {
|
||||||
|
this.msisdn = msisdn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataCutOverCalc() {
|
||||||
|
return dataCutOverCalc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCutOverCalc(Date dataCutOverCalc) {
|
||||||
|
this.dataCutOverCalc = dataCutOverCalc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getStato() {
|
||||||
|
return stato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStato(Long stato) {
|
||||||
|
this.stato = stato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return
|
||||||
|
"idRichiesta=" + idRichiesta + ", " +
|
||||||
|
"msisdn=" + msisdn + ", " +
|
||||||
|
"dataCutOverCalc=" + dataCutOverCalc + ", " +
|
||||||
|
"stato=" + stato;
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user