-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggiunti DAO e DTO per i servizi Notifiche e Promemoria.
- Loading branch information
Showing
11 changed files
with
369 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
jars/core/src/main/java/it/govpay/core/dao/pagamenti/NotificheDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package it.govpay.core.dao.pagamenti; | ||
|
||
import it.govpay.core.dao.commons.BaseDAO; | ||
|
||
public class NotificheDAO extends BaseDAO{ | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
jars/core/src/main/java/it/govpay/core/dao/pagamenti/PromemoriaDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package it.govpay.core.dao.pagamenti; | ||
|
||
import it.govpay.core.dao.commons.BaseDAO; | ||
|
||
public class PromemoriaDAO extends BaseDAO{ | ||
|
||
} |
90 changes: 90 additions & 0 deletions
90
jars/core/src/main/java/it/govpay/core/dao/pagamenti/dto/ListaNotificheDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package it.govpay.core.dao.pagamenti.dto; | ||
|
||
import java.util.Date; | ||
|
||
import org.openspcoop2.generic_project.expression.SortOrder; | ||
import org.springframework.security.core.Authentication; | ||
|
||
import it.govpay.core.dao.anagrafica.dto.BasicFindRequestDTO; | ||
import it.govpay.orm.Notifica; | ||
|
||
public class ListaNotificheDTO extends BasicFindRequestDTO{ | ||
|
||
|
||
public ListaNotificheDTO(Authentication user) { | ||
super(user); | ||
this.addSortField("data", Notifica.model().DATA_CREAZIONE); | ||
this.addDefaultSort(Notifica.model().DATA_CREAZIONE,SortOrder.DESC); | ||
} | ||
private Date dataA; | ||
private Date dataDa; | ||
private String stato; | ||
private String tipo; | ||
private String idDominio; | ||
private String idPagamento; | ||
private String idDebitore; | ||
private String idA2A; | ||
private String idPendenza; | ||
private String iuv; | ||
|
||
public Date getDataA() { | ||
return this.dataA; | ||
} | ||
public void setDataA(Date dataA) { | ||
this.dataA = dataA; | ||
} | ||
public Date getDataDa() { | ||
return this.dataDa; | ||
} | ||
public void setDataDa(Date dataDa) { | ||
this.dataDa = dataDa; | ||
} | ||
public String getStato() { | ||
return this.stato; | ||
} | ||
public void setStato(String stato) { | ||
this.stato = stato; | ||
} | ||
public String getIdDominio() { | ||
return this.idDominio; | ||
} | ||
public void setIdDominio(String idDominio) { | ||
this.idDominio = idDominio; | ||
} | ||
public String getIdPagamento() { | ||
return this.idPagamento; | ||
} | ||
public void setIdPagamento(String idPagamento) { | ||
this.idPagamento = idPagamento; | ||
} | ||
public String getIdDebitore() { | ||
return this.idDebitore; | ||
} | ||
public void setIdDebitore(String idDebitore) { | ||
this.idDebitore = idDebitore; | ||
} | ||
public String getIdA2A() { | ||
return this.idA2A; | ||
} | ||
public void setIdA2A(String idA2A) { | ||
this.idA2A = idA2A; | ||
} | ||
public String getIdPendenza() { | ||
return idPendenza; | ||
} | ||
public void setIdPendenza(String idPendenza) { | ||
this.idPendenza = idPendenza; | ||
} | ||
public String getIuv() { | ||
return iuv; | ||
} | ||
public void setIuv(String iuv) { | ||
this.iuv = iuv; | ||
} | ||
public String getTipo() { | ||
return tipo; | ||
} | ||
public void setTipo(String tipo) { | ||
this.tipo = tipo; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
jars/core/src/main/java/it/govpay/core/dao/pagamenti/dto/ListaNotificheDTOResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package it.govpay.core.dao.pagamenti.dto; | ||
|
||
import java.util.List; | ||
|
||
import it.govpay.bd.model.Notifica; | ||
import it.govpay.core.dao.anagrafica.dto.BasicFindResponseDTO; | ||
|
||
public class ListaNotificheDTOResponse extends BasicFindResponseDTO<Notifica> { | ||
|
||
public ListaNotificheDTOResponse(long totalResults, List<Notifica> results) { | ||
super(totalResults, results); | ||
} | ||
|
||
} |
90 changes: 90 additions & 0 deletions
90
jars/core/src/main/java/it/govpay/core/dao/pagamenti/dto/ListaPromemoriaDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package it.govpay.core.dao.pagamenti.dto; | ||
|
||
import java.util.Date; | ||
|
||
import org.openspcoop2.generic_project.expression.SortOrder; | ||
import org.springframework.security.core.Authentication; | ||
|
||
import it.govpay.core.dao.anagrafica.dto.BasicFindRequestDTO; | ||
import it.govpay.orm.Promemoria; | ||
|
||
public class ListaPromemoriaDTO extends BasicFindRequestDTO{ | ||
|
||
|
||
public ListaPromemoriaDTO(Authentication user) { | ||
super(user); | ||
this.addSortField("data", Promemoria.model().DATA_CREAZIONE); | ||
this.addDefaultSort(Promemoria.model().DATA_CREAZIONE,SortOrder.DESC); | ||
} | ||
private Date dataA; | ||
private Date dataDa; | ||
private String stato; | ||
private String tipo; | ||
private String idDominio; | ||
private String idPagamento; | ||
private String idDebitore; | ||
private String idA2A; | ||
private String idPendenza; | ||
private String iuv; | ||
|
||
public Date getDataA() { | ||
return this.dataA; | ||
} | ||
public void setDataA(Date dataA) { | ||
this.dataA = dataA; | ||
} | ||
public Date getDataDa() { | ||
return this.dataDa; | ||
} | ||
public void setDataDa(Date dataDa) { | ||
this.dataDa = dataDa; | ||
} | ||
public String getStato() { | ||
return this.stato; | ||
} | ||
public void setStato(String stato) { | ||
this.stato = stato; | ||
} | ||
public String getIdDominio() { | ||
return this.idDominio; | ||
} | ||
public void setIdDominio(String idDominio) { | ||
this.idDominio = idDominio; | ||
} | ||
public String getIdPagamento() { | ||
return this.idPagamento; | ||
} | ||
public void setIdPagamento(String idPagamento) { | ||
this.idPagamento = idPagamento; | ||
} | ||
public String getIdDebitore() { | ||
return this.idDebitore; | ||
} | ||
public void setIdDebitore(String idDebitore) { | ||
this.idDebitore = idDebitore; | ||
} | ||
public String getIdA2A() { | ||
return this.idA2A; | ||
} | ||
public void setIdA2A(String idA2A) { | ||
this.idA2A = idA2A; | ||
} | ||
public String getIdPendenza() { | ||
return idPendenza; | ||
} | ||
public void setIdPendenza(String idPendenza) { | ||
this.idPendenza = idPendenza; | ||
} | ||
public String getIuv() { | ||
return iuv; | ||
} | ||
public void setIuv(String iuv) { | ||
this.iuv = iuv; | ||
} | ||
public String getTipo() { | ||
return tipo; | ||
} | ||
public void setTipo(String tipo) { | ||
this.tipo = tipo; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
jars/core/src/main/java/it/govpay/core/dao/pagamenti/dto/ListaPromemoriaDTOResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package it.govpay.core.dao.pagamenti.dto; | ||
|
||
import java.util.List; | ||
|
||
import it.govpay.bd.model.Promemoria; | ||
import it.govpay.core.dao.anagrafica.dto.BasicFindResponseDTO; | ||
|
||
public class ListaPromemoriaDTOResponse extends BasicFindResponseDTO<Promemoria> { | ||
|
||
public ListaPromemoriaDTOResponse(long totalResults, List<Promemoria> results) { | ||
super(totalResults, results); | ||
} | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
wars/api-backoffice/src/main/java/it/govpay/backoffice/v1/Notifiche.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package it.govpay.backoffice.v1; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.QueryParam; | ||
import javax.ws.rs.core.Context; | ||
import javax.ws.rs.core.HttpHeaders; | ||
import javax.ws.rs.core.Response; | ||
import javax.ws.rs.core.UriInfo; | ||
|
||
import org.openspcoop2.generic_project.exception.ServiceException; | ||
|
||
import it.govpay.backoffice.v1.controllers.NotificheController; | ||
import it.govpay.rs.v1.BaseRsServiceV1; | ||
|
||
|
||
@Path("/notifiche") | ||
|
||
public class Notifiche extends BaseRsServiceV1{ | ||
|
||
|
||
private NotificheController controller = null; | ||
|
||
public Notifiche() throws ServiceException { | ||
super("notifiche"); | ||
this.controller = new NotificheController(this.nomeServizio,this.log); | ||
} | ||
|
||
|
||
|
||
@GET | ||
@Path("/") | ||
|
||
@Produces({ "application/json" }) | ||
public Response findNotifiche(@Context UriInfo uriInfo, @Context HttpHeaders httpHeaders, @QueryParam("pagina") Integer pagina, | ||
@QueryParam("risultatiPerPagina") Integer risultatiPerPagina, @QueryParam("dataDa") String dataDa, @QueryParam("dataA") String dataA, | ||
@QueryParam("stato") String stato, @QueryParam("tipo") String tipo){ | ||
this.controller.setContext(this.getContext()); | ||
return this.controller.findNotifiche(this.getUser(), uriInfo, httpHeaders, pagina, risultatiPerPagina, dataDa, dataA, stato, tipo); | ||
} | ||
|
||
} | ||
|
||
|
45 changes: 45 additions & 0 deletions
45
wars/api-backoffice/src/main/java/it/govpay/backoffice/v1/Promemoria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package it.govpay.backoffice.v1; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.QueryParam; | ||
import javax.ws.rs.core.Context; | ||
import javax.ws.rs.core.HttpHeaders; | ||
import javax.ws.rs.core.Response; | ||
import javax.ws.rs.core.UriInfo; | ||
|
||
import org.openspcoop2.generic_project.exception.ServiceException; | ||
|
||
import it.govpay.backoffice.v1.controllers.PromemoriaController; | ||
import it.govpay.rs.v1.BaseRsServiceV1; | ||
|
||
|
||
@Path("/promemoria") | ||
|
||
public class Promemoria extends BaseRsServiceV1{ | ||
|
||
|
||
private PromemoriaController controller = null; | ||
|
||
public Promemoria() throws ServiceException { | ||
super("promemoria"); | ||
this.controller = new PromemoriaController(this.nomeServizio,this.log); | ||
} | ||
|
||
|
||
|
||
@GET | ||
@Path("/") | ||
|
||
@Produces({ "application/json" }) | ||
public Response findPromemoria(@Context UriInfo uriInfo, @Context HttpHeaders httpHeaders, | ||
@QueryParam("pagina") Integer pagina, @QueryParam("risultatiPerPagina") Integer risultatiPerPagina, | ||
@QueryParam("dataDa") String dataDa, @QueryParam("dataA") String dataA, @QueryParam("stato") String stato, @QueryParam("tipo") String tipo){ | ||
this.controller.setContext(this.getContext()); | ||
return this.controller.findPromemoria(this.getUser(), uriInfo, httpHeaders, pagina, risultatiPerPagina, dataDa, dataA, stato, tipo); | ||
} | ||
|
||
} | ||
|
||
|
28 changes: 28 additions & 0 deletions
28
...api-backoffice/src/main/java/it/govpay/backoffice/v1/controllers/NotificheController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package it.govpay.backoffice.v1.controllers; | ||
|
||
import javax.ws.rs.core.HttpHeaders; | ||
import javax.ws.rs.core.Response; | ||
import javax.ws.rs.core.Response.Status; | ||
import javax.ws.rs.core.UriInfo; | ||
|
||
import org.slf4j.Logger; | ||
import org.springframework.security.core.Authentication; | ||
|
||
|
||
|
||
public class NotificheController extends BaseController { | ||
|
||
public NotificheController(String nomeServizio,Logger log) { | ||
super(nomeServizio,log); | ||
} | ||
|
||
|
||
|
||
public Response findNotifiche(Authentication user, UriInfo uriInfo, HttpHeaders httpHeaders , Integer pagina, Integer risultatiPerPagina, String dataDa, String dataA, String stato, String tipo) { | ||
return Response.status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" ).build(); | ||
} | ||
|
||
|
||
} | ||
|
||
|
Oops, something went wrong.