First Commit - Source Code from Reply
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package dbcm.model.bean;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class GestioneRichiestaRecModel {
|
||||
private String idRichiesta;
|
||||
private String msisdn;
|
||||
private Date dataCutOverAom;
|
||||
private Long stato;
|
||||
private Long espletamentomss;
|
||||
|
||||
public GestioneRichiestaRecModel() {
|
||||
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 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;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return
|
||||
"idRichiesta=" + idRichiesta + ", " +
|
||||
"msisdn=" + msisdn + ", " +
|
||||
"dataCutOverAom=" + dataCutOverAom + ", " +
|
||||
"stato=" + stato + ", " +
|
||||
"espletamentomss=" + espletamentomss;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package dbcm.model.business;
|
||||
|
||||
public class InfoFileFtp {
|
||||
private String fileName;
|
||||
private String remotePathToGet;
|
||||
private String localPathToStore;
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
public String getRemotePathToGet() {
|
||||
return remotePathToGet;
|
||||
}
|
||||
public void setRemotePathToGet(String remotePathToGet) {
|
||||
this.remotePathToGet = remotePathToGet;
|
||||
}
|
||||
public String getLocalPathToStore() {
|
||||
return localPathToStore;
|
||||
}
|
||||
public void setLocalPathToStore(String localPathToStore) {
|
||||
this.localPathToStore = localPathToStore;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InfoFileFtp [fileName=" + fileName + ", remotePathToGet=" + remotePathToGet + ", localPathToStore="
|
||||
+ localPathToStore + "]";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package dbcm.model.business;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class ServiceErrMap extends HashMap<String, String> {
|
||||
private static final long serialVersionUID = 6250972811463381627L;
|
||||
|
||||
public static final String C_OK_SUCCESS = "000";
|
||||
public static final String C_KO_GENERIC_ERROR = "001";
|
||||
|
||||
public ServiceErrMap() {
|
||||
super();
|
||||
put(C_OK_SUCCESS, "Esito inviato con successo");
|
||||
put(C_KO_GENERIC_ERROR, "Errore generico");
|
||||
}
|
||||
}
|
||||
BIN
dbcm/dbcm-model/target/classes/dbcm/constants/Constants.class
Normal file
BIN
dbcm/dbcm-model/target/classes/dbcm/constants/Constants.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.
BIN
dbcm/dbcm-model/target/dbcm-model-1.0.jar
Normal file
BIN
dbcm/dbcm-model/target/dbcm-model-1.0.jar
Normal file
Binary file not shown.
5
dbcm/dbcm-model/target/maven-archiver/pom.properties
Normal file
5
dbcm/dbcm-model/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-model
|
||||
@@ -0,0 +1,7 @@
|
||||
dbcm\model\bean\GestioneRichiestaRecModel.class
|
||||
dbcm\model\bean\EsitoAttCessModel.class
|
||||
dbcm\model\business\InfoFileFtp.class
|
||||
dbcm\constants\Constants.class
|
||||
dbcm\model\bean\GestioneRichiestaModel.class
|
||||
dbcm\model\bean\EsitoAttCessScartiModel.class
|
||||
dbcm\model\business\ServiceErrMap.class
|
||||
@@ -0,0 +1,7 @@
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\model\bean\EsitoAttCessModel.java
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\model\business\ServiceErrMap.java
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\model\business\InfoFileFtp.java
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\model\bean\GestioneRichiestaModel.java
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\model\bean\GestioneRichiestaRecModel.java
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\model\bean\EsitoAttCessScartiModel.java
|
||||
C:\dev\TIM\DBCMNP\dbcmnp_workspace\dbcm\dbcm-model\src\main\java\dbcm\constants\Constants.java
|
||||
Reference in New Issue
Block a user