Commit b68b176cd6523a54f7266e27f55f6c91671e94c2
1 parent
b5000ba8
Exists in
master
Configuração p/ ignorar propriedades desconhecidas
Configura classes do modelo do SEI-Broker para ignorar propriedades desconhecidas e não retornar propriedades nulas. Além disso, foram removidas as configuraçoes para suporte a consumo XML.
Showing
45 changed files
with
1979 additions
and
1811 deletions
Show diff stats
src/main/java/br/gov/ans/integracao/sei/modelo/Arquivo.java
1 | 1 | package br.gov.ans.integracao.sei.modelo; |
2 | 2 | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
4 | 6 | |
5 | -@XmlRootElement | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
6 | 9 | public class Arquivo { |
7 | 10 | |
8 | 11 | private String nome; | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ArquivoCriado.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class ArquivoCriado { | |
7 | - private String identificador; | |
8 | - | |
9 | - public ArquivoCriado(){ | |
10 | - | |
11 | - } | |
12 | - | |
13 | - public ArquivoCriado(String identificador){ | |
14 | - this.identificador = identificador; | |
15 | - } | |
16 | - | |
17 | - public String getIdentificador() { | |
18 | - return this.identificador; | |
19 | - } | |
20 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class ArquivoCriado { | |
10 | + | |
11 | + private String identificador; | |
12 | + | |
13 | + public ArquivoCriado(){ | |
14 | + | |
15 | + } | |
16 | + | |
17 | + public ArquivoCriado(String identificador){ | |
18 | + this.identificador = identificador; | |
19 | + } | |
20 | + | |
21 | + public String getIdentificador() { | |
22 | + return this.identificador; | |
23 | + } | |
24 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/AtribuicaoProcesso.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class AtribuicaoProcesso { | |
7 | - | |
8 | - private String processo; | |
9 | - private boolean reabrir; | |
10 | - | |
11 | - public AtribuicaoProcesso(){} | |
12 | - | |
13 | - public String getProcesso() { | |
14 | - return processo; | |
15 | - } | |
16 | - public void setProcesso(String processo) { | |
17 | - this.processo = processo; | |
18 | - } | |
19 | - public boolean isReabrir() { | |
20 | - return reabrir; | |
21 | - } | |
22 | - public void setReabrir(boolean reabrir) { | |
23 | - this.reabrir = reabrir; | |
24 | - } | |
25 | - | |
26 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class AtribuicaoProcesso { | |
10 | + | |
11 | + private String processo; | |
12 | + private boolean reabrir; | |
13 | + | |
14 | + public AtribuicaoProcesso(){} | |
15 | + | |
16 | + public String getProcesso() { | |
17 | + return processo; | |
18 | + } | |
19 | + public void setProcesso(String processo) { | |
20 | + this.processo = processo; | |
21 | + } | |
22 | + public boolean isReabrir() { | |
23 | + return reabrir; | |
24 | + } | |
25 | + public void setReabrir(boolean reabrir) { | |
26 | + this.reabrir = reabrir; | |
27 | + } | |
28 | + | |
29 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/CancelamentoDocumento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class CancelamentoDocumento { | |
7 | - private String documento; | |
8 | - private String motivo; | |
9 | - | |
10 | - public CancelamentoDocumento(){} | |
11 | - | |
12 | - public String getDocumento() { | |
13 | - return documento; | |
14 | - } | |
15 | - | |
16 | - public void setDocumento(String documento) { | |
17 | - this.documento = documento; | |
18 | - } | |
19 | - | |
20 | - public String getMotivo() { | |
21 | - return motivo; | |
22 | - } | |
23 | - | |
24 | - public void setMotivo(String motivo) { | |
25 | - this.motivo = motivo; | |
26 | - } | |
27 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class CancelamentoDocumento { | |
10 | + | |
11 | + private String documento; | |
12 | + private String motivo; | |
13 | + | |
14 | + public CancelamentoDocumento(){} | |
15 | + | |
16 | + public String getDocumento() { | |
17 | + return documento; | |
18 | + } | |
19 | + | |
20 | + public void setDocumento(String documento) { | |
21 | + this.documento = documento; | |
22 | + } | |
23 | + | |
24 | + public String getMotivo() { | |
25 | + return motivo; | |
26 | + } | |
27 | + | |
28 | + public void setMotivo(String motivo) { | |
29 | + this.motivo = motivo; | |
30 | + } | |
31 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Cidade.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -public class Cidade { | |
4 | - | |
5 | - private Estado estado; | |
6 | - | |
7 | - private String nome; | |
8 | - | |
9 | - private String codigoIbge; | |
10 | - | |
11 | - public Estado getEstado() { | |
12 | - return estado; | |
13 | - } | |
14 | - | |
15 | - public void setEstado(Estado estado) { | |
16 | - this.estado = estado; | |
17 | - } | |
18 | - | |
19 | - public String getNome() { | |
20 | - return nome; | |
21 | - } | |
22 | - | |
23 | - public void setNome(String nome) { | |
24 | - this.nome = nome; | |
25 | - } | |
26 | - | |
27 | - public String getCodigoIbge() { | |
28 | - return codigoIbge; | |
29 | - } | |
30 | - | |
31 | - public void setCodigoIbge(String codigoIbge) { | |
32 | - this.codigoIbge = codigoIbge; | |
33 | - } | |
34 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnore; | |
4 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
7 | + | |
8 | +@JsonInclude(content = Include.NON_NULL) | |
9 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
10 | +public class Cidade { | |
11 | + | |
12 | + private Integer id; | |
13 | + private Estado estado; | |
14 | + private String nome; | |
15 | + private String codigoIbge; | |
16 | + | |
17 | + @JsonIgnore | |
18 | + public Integer getId() { | |
19 | + return id; | |
20 | + } | |
21 | + | |
22 | + public void setId(Integer id) { | |
23 | + this.id = id; | |
24 | + } | |
25 | + | |
26 | + public Estado getEstado() { | |
27 | + return estado; | |
28 | + } | |
29 | + | |
30 | + public void setEstado(Estado estado) { | |
31 | + this.estado = estado; | |
32 | + } | |
33 | + | |
34 | + public String getNome() { | |
35 | + return nome; | |
36 | + } | |
37 | + | |
38 | + public void setNome(String nome) { | |
39 | + this.nome = nome; | |
40 | + } | |
41 | + | |
42 | + public String getCodigoIbge() { | |
43 | + return codigoIbge; | |
44 | + } | |
45 | + | |
46 | + public void setCodigoIbge(String codigoIbge) { | |
47 | + this.codigoIbge = codigoIbge; | |
48 | + } | |
49 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Contato.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -public class Contato{ | |
4 | - | |
5 | - private Integer id; | |
6 | - | |
7 | - private String nome; | |
8 | - | |
9 | - private String sigla; | |
10 | - | |
11 | - private TipoContato tipo; | |
12 | - | |
13 | - public Integer getId() { | |
14 | - return id; | |
15 | - } | |
16 | - | |
17 | - public void setId(Integer id) { | |
18 | - this.id = id; | |
19 | - } | |
20 | - | |
21 | - public String getNome() { | |
22 | - return nome; | |
23 | - } | |
24 | - | |
25 | - public void setNome(String nome) { | |
26 | - this.nome = nome; | |
27 | - } | |
28 | - | |
29 | - public String getSigla() { | |
30 | - return sigla; | |
31 | - } | |
32 | - | |
33 | - public void setSigla(String sigla) { | |
34 | - this.sigla = sigla; | |
35 | - } | |
36 | - | |
37 | - public TipoContato getTipo() { | |
38 | - return tipo; | |
39 | - } | |
40 | - | |
41 | - public void setTipo(TipoContato tipo) { | |
42 | - this.tipo = tipo; | |
43 | - } | |
44 | - | |
45 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class Contato{ | |
10 | + | |
11 | + private Integer id; | |
12 | + private String nome; | |
13 | + private String sigla; | |
14 | + private TipoContato tipo; | |
15 | + | |
16 | + public Integer getId() { | |
17 | + return id; | |
18 | + } | |
19 | + | |
20 | + public void setId(Integer id) { | |
21 | + this.id = id; | |
22 | + } | |
23 | + | |
24 | + public String getNome() { | |
25 | + return nome; | |
26 | + } | |
27 | + | |
28 | + public void setNome(String nome) { | |
29 | + this.nome = nome; | |
30 | + } | |
31 | + | |
32 | + public String getSigla() { | |
33 | + return sigla; | |
34 | + } | |
35 | + | |
36 | + public void setSigla(String sigla) { | |
37 | + this.sigla = sigla; | |
38 | + } | |
39 | + | |
40 | + public TipoContato getTipo() { | |
41 | + return tipo; | |
42 | + } | |
43 | + | |
44 | + public void setTipo(TipoContato tipo) { | |
45 | + this.tipo = tipo; | |
46 | + } | |
47 | + | |
48 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/DocumentoResumido.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -public class DocumentoResumido { | |
6 | - private String numero; | |
7 | - private String numeroInformado; | |
8 | - private String tipo; | |
9 | - private String unidade; | |
10 | - private String origem; | |
11 | - private Date dataGeracao; | |
12 | - private String processo; | |
13 | - | |
14 | - public DocumentoResumido(){ | |
15 | - | |
16 | - } | |
17 | - | |
18 | - public DocumentoResumido(String numero, String tipo, String numeroInformado, String origem, Date dataGeracao){ | |
19 | - this.numero = numero; | |
20 | - this.tipo = tipo; | |
21 | - this.numeroInformado = numeroInformado; | |
22 | - this.origem = origem; | |
23 | - this.dataGeracao = dataGeracao; | |
24 | - } | |
25 | - | |
26 | - public String getNumero() { | |
27 | - return numero; | |
28 | - } | |
29 | - | |
30 | - public void setNumero(String numero) { | |
31 | - this.numero = numero; | |
32 | - } | |
33 | - | |
34 | - public String getTipo() { | |
35 | - return tipo; | |
36 | - } | |
37 | - | |
38 | - public void setTipo(String tipo) { | |
39 | - this.tipo = tipo; | |
40 | - } | |
41 | - | |
42 | - public String getProcesso() { | |
43 | - return processo; | |
44 | - } | |
45 | - | |
46 | - public void setProcesso(String processo) { | |
47 | - this.processo = processo; | |
48 | - } | |
49 | - | |
50 | - public String getUnidade() { | |
51 | - return unidade; | |
52 | - } | |
53 | - | |
54 | - public void setUnidade(String unidade) { | |
55 | - this.unidade = unidade; | |
56 | - } | |
57 | - | |
58 | - public String getOrigem() { | |
59 | - return origem; | |
60 | - } | |
61 | - | |
62 | - public void setOrigem(String origem) { | |
63 | - this.origem = origem; | |
64 | - } | |
65 | - | |
66 | - public Date getDataGeracao() { | |
67 | - return dataGeracao; | |
68 | - } | |
69 | - | |
70 | - public void setDataGeracao(Date dataGeracao) { | |
71 | - this.dataGeracao = dataGeracao; | |
72 | - } | |
73 | - | |
74 | - public String getNumeroInformado() { | |
75 | - return numeroInformado; | |
76 | - } | |
77 | - | |
78 | - public void setNumeroInformado(String numeroInformado) { | |
79 | - this.numeroInformado = numeroInformado; | |
80 | - } | |
81 | - | |
82 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +public class DocumentoResumido { | |
12 | + private String numero; | |
13 | + private String numeroInformado; | |
14 | + private String nome; | |
15 | + private String unidade; | |
16 | + private String origem; | |
17 | + private Date dataGeracao; | |
18 | + private String processo; | |
19 | + private Tipo tipo; | |
20 | + private String tipoConferencia; | |
21 | + private boolean assinado; | |
22 | + | |
23 | + public String getNumero() { | |
24 | + return numero; | |
25 | + } | |
26 | + | |
27 | + public void setNumero(String numero) { | |
28 | + this.numero = numero; | |
29 | + } | |
30 | + | |
31 | + public String getNome() { | |
32 | + return nome; | |
33 | + } | |
34 | + | |
35 | + public void setNome(String nome) { | |
36 | + this.nome = nome; | |
37 | + } | |
38 | + | |
39 | + public Tipo getTipo() { | |
40 | + return tipo; | |
41 | + } | |
42 | + | |
43 | + public void setTipo(Tipo tipo) { | |
44 | + this.tipo = tipo; | |
45 | + } | |
46 | + | |
47 | + public String getProcesso() { | |
48 | + return processo; | |
49 | + } | |
50 | + | |
51 | + public void setProcesso(String processo) { | |
52 | + this.processo = processo; | |
53 | + } | |
54 | + | |
55 | + public String getUnidade() { | |
56 | + return unidade; | |
57 | + } | |
58 | + | |
59 | + public void setUnidade(String unidade) { | |
60 | + this.unidade = unidade; | |
61 | + } | |
62 | + | |
63 | + public String getOrigem() { | |
64 | + return origem; | |
65 | + } | |
66 | + | |
67 | + public void setOrigem(String origem) { | |
68 | + this.origem = origem; | |
69 | + } | |
70 | + | |
71 | + public Date getDataGeracao() { | |
72 | + return dataGeracao; | |
73 | + } | |
74 | + | |
75 | + public void setDataGeracao(Date dataGeracao) { | |
76 | + this.dataGeracao = dataGeracao; | |
77 | + } | |
78 | + | |
79 | + public String getNumeroInformado() { | |
80 | + return numeroInformado; | |
81 | + } | |
82 | + | |
83 | + public void setNumeroInformado(String numeroInformado) { | |
84 | + this.numeroInformado = numeroInformado; | |
85 | + } | |
86 | + | |
87 | + public String getTipoConferencia() { | |
88 | + return tipoConferencia; | |
89 | + } | |
90 | + | |
91 | + public void setTipoConferencia(String tipoConferencia) { | |
92 | + this.tipoConferencia = tipoConferencia; | |
93 | + } | |
94 | + | |
95 | + public boolean isAssinado() { | |
96 | + return assinado; | |
97 | + } | |
98 | + | |
99 | + public void setAssinado(boolean assinado) { | |
100 | + this.assinado = assinado; | |
101 | + } | |
102 | + | |
103 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/DocumentoSipar.java
... | ... | @@ -1,97 +0,0 @@ |
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -public class DocumentoSipar { | |
6 | - private String digito; | |
7 | - private String operadora; | |
8 | - private Date emissao; | |
9 | - private Date registro; | |
10 | - private String tipo; | |
11 | - private String resumo; | |
12 | - private Long orgaoPosse; | |
13 | - private Long orgaoOrigem; | |
14 | - private Long orgaoRegistro; | |
15 | - private Long assunto; | |
16 | - | |
17 | - public String getDigito() { | |
18 | - return digito; | |
19 | - } | |
20 | - | |
21 | - public void setDigito(String digito) { | |
22 | - this.digito = digito; | |
23 | - } | |
24 | - | |
25 | - public Long getAssunto() { | |
26 | - return assunto; | |
27 | - } | |
28 | - | |
29 | - public void setAssunto(Long assunto) { | |
30 | - this.assunto = assunto; | |
31 | - } | |
32 | - | |
33 | - public String getOperadora() { | |
34 | - return operadora; | |
35 | - } | |
36 | - | |
37 | - public void setOperadora(String operadora) { | |
38 | - this.operadora = operadora; | |
39 | - } | |
40 | - | |
41 | - public Date getEmissao() { | |
42 | - return emissao; | |
43 | - } | |
44 | - | |
45 | - public void setEmissao(Date emissao) { | |
46 | - this.emissao = emissao; | |
47 | - } | |
48 | - | |
49 | - public String getTipo() { | |
50 | - return tipo; | |
51 | - } | |
52 | - | |
53 | - public void setTipo(String tipo) { | |
54 | - this.tipo = tipo; | |
55 | - } | |
56 | - | |
57 | - public String getResumo() { | |
58 | - return resumo; | |
59 | - } | |
60 | - | |
61 | - public void setResumo(String resumo) { | |
62 | - this.resumo = resumo; | |
63 | - } | |
64 | - | |
65 | - public Long getOrgaoPosse() { | |
66 | - return orgaoPosse; | |
67 | - } | |
68 | - | |
69 | - public void setOrgaoPosse(Long orgaoPosse) { | |
70 | - this.orgaoPosse = orgaoPosse; | |
71 | - } | |
72 | - | |
73 | - public Long getOrgaoOrigem() { | |
74 | - return orgaoOrigem; | |
75 | - } | |
76 | - | |
77 | - public void setOrgaoOrigem(Long orgaoOrigem) { | |
78 | - this.orgaoOrigem = orgaoOrigem; | |
79 | - } | |
80 | - | |
81 | - public Long getOrgaoRegistro() { | |
82 | - return orgaoRegistro; | |
83 | - } | |
84 | - | |
85 | - public void setOrgaoRegistro(Long orgaoRegistro) { | |
86 | - this.orgaoRegistro = orgaoRegistro; | |
87 | - } | |
88 | - | |
89 | - public Date getRegistro() { | |
90 | - return registro; | |
91 | - } | |
92 | - | |
93 | - public void setRegistro(Date registro) { | |
94 | - this.registro = registro; | |
95 | - } | |
96 | - | |
97 | -} |
src/main/java/br/gov/ans/integracao/sei/modelo/Endereco.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class Endereco { | |
7 | - private String logradouro; | |
8 | - private String complemento; | |
9 | - private String numero; | |
10 | - private String CEP; | |
11 | - private String uf; | |
12 | - private String pais; | |
13 | - private String cidade; | |
14 | - private String bairro; | |
15 | - | |
16 | - public String getLogradouro() { | |
17 | - return logradouro; | |
18 | - } | |
19 | - | |
20 | - public void setLogradouro(String logradouro) { | |
21 | - this.logradouro = logradouro; | |
22 | - } | |
23 | - | |
24 | - public String getComplemento() { | |
25 | - return complemento; | |
26 | - } | |
27 | - | |
28 | - public void setComplemento(String complemento) { | |
29 | - this.complemento = complemento; | |
30 | - } | |
31 | - | |
32 | - public String getNumero() { | |
33 | - return numero; | |
34 | - } | |
35 | - | |
36 | - public void setNumero(String numero) { | |
37 | - this.numero = numero; | |
38 | - } | |
39 | - | |
40 | - public String getCEP() { | |
41 | - return CEP; | |
42 | - } | |
43 | - | |
44 | - public void setCEP(String cEP) { | |
45 | - CEP = cEP; | |
46 | - } | |
47 | - | |
48 | - public String getUf() { | |
49 | - return uf; | |
50 | - } | |
51 | - | |
52 | - public void setUf(String uf) { | |
53 | - this.uf = uf; | |
54 | - } | |
55 | - | |
56 | - public String getPais() { | |
57 | - return pais; | |
58 | - } | |
59 | - | |
60 | - public void setPais(String pais) { | |
61 | - this.pais = pais; | |
62 | - } | |
63 | - | |
64 | - public String getCidade() { | |
65 | - return cidade; | |
66 | - } | |
67 | - | |
68 | - public void setCidade(String cidade) { | |
69 | - this.cidade = cidade; | |
70 | - } | |
71 | - | |
72 | - public void setBairro(String bairro) { | |
73 | - this.bairro = bairro; | |
74 | - } | |
75 | - | |
76 | - public String getBairro() { | |
77 | - return bairro; | |
78 | - } | |
79 | - | |
80 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class Endereco { | |
10 | + | |
11 | + private String logradouro; | |
12 | + private String complemento; | |
13 | + private String numero; | |
14 | + private String CEP; | |
15 | + private String uf; | |
16 | + private String pais; | |
17 | + private String cidade; | |
18 | + private String bairro; | |
19 | + | |
20 | + public String getLogradouro() { | |
21 | + return logradouro; | |
22 | + } | |
23 | + | |
24 | + public void setLogradouro(String logradouro) { | |
25 | + this.logradouro = logradouro; | |
26 | + } | |
27 | + | |
28 | + public String getComplemento() { | |
29 | + return complemento; | |
30 | + } | |
31 | + | |
32 | + public void setComplemento(String complemento) { | |
33 | + this.complemento = complemento; | |
34 | + } | |
35 | + | |
36 | + public String getNumero() { | |
37 | + return numero; | |
38 | + } | |
39 | + | |
40 | + public void setNumero(String numero) { | |
41 | + this.numero = numero; | |
42 | + } | |
43 | + | |
44 | + public String getCEP() { | |
45 | + return CEP; | |
46 | + } | |
47 | + | |
48 | + public void setCEP(String cEP) { | |
49 | + CEP = cEP; | |
50 | + } | |
51 | + | |
52 | + public String getUf() { | |
53 | + return uf; | |
54 | + } | |
55 | + | |
56 | + public void setUf(String uf) { | |
57 | + this.uf = uf; | |
58 | + } | |
59 | + | |
60 | + public String getPais() { | |
61 | + return pais; | |
62 | + } | |
63 | + | |
64 | + public void setPais(String pais) { | |
65 | + this.pais = pais; | |
66 | + } | |
67 | + | |
68 | + public String getCidade() { | |
69 | + return cidade; | |
70 | + } | |
71 | + | |
72 | + public void setCidade(String cidade) { | |
73 | + this.cidade = cidade; | |
74 | + } | |
75 | + | |
76 | + public void setBairro(String bairro) { | |
77 | + this.bairro = bairro; | |
78 | + } | |
79 | + | |
80 | + public String getBairro() { | |
81 | + return bairro; | |
82 | + } | |
83 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/EnvioDeProcesso.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -import javax.xml.bind.annotation.XmlRootElement; | |
6 | - | |
7 | -@XmlRootElement | |
8 | -public class EnvioDeProcesso { | |
9 | - private String numeroDoProcesso; | |
10 | - private String[] unidadesDestino; | |
11 | - private boolean manterAbertoOrigem; | |
12 | - private boolean removerAnotacoes; | |
13 | - private boolean enviarEmailNotificacao; | |
14 | - private Date dataRetornoProgramado; | |
15 | - private Integer qtdDiasAteRetorno; | |
16 | - private boolean somenteDiasUteis; | |
17 | - | |
18 | - public String getNumeroDoProcesso() { | |
19 | - return numeroDoProcesso; | |
20 | - } | |
21 | - | |
22 | - public void setNumeroDoProcesso(String numeroDoProcesso) { | |
23 | - this.numeroDoProcesso = numeroDoProcesso; | |
24 | - } | |
25 | - | |
26 | - public String[] getUnidadesDestino() { | |
27 | - return unidadesDestino; | |
28 | - } | |
29 | - | |
30 | - public void setUnidadesDestino(String[] unidadesDestino) { | |
31 | - this.unidadesDestino = unidadesDestino; | |
32 | - } | |
33 | - | |
34 | - public boolean getManterAbertoOrigem() { | |
35 | - return manterAbertoOrigem; | |
36 | - } | |
37 | - | |
38 | - public void setManterAbertoOrigem(boolean manterAbertoOrigem) { | |
39 | - this.manterAbertoOrigem = manterAbertoOrigem; | |
40 | - } | |
41 | - | |
42 | - public boolean getRemoverAnotacoes() { | |
43 | - return removerAnotacoes; | |
44 | - } | |
45 | - | |
46 | - public void setRemoverAnotacoes(boolean removerAnotacoes) { | |
47 | - this.removerAnotacoes = removerAnotacoes; | |
48 | - } | |
49 | - | |
50 | - public boolean getEnviarEmailNotificacao() { | |
51 | - return enviarEmailNotificacao; | |
52 | - } | |
53 | - | |
54 | - public void setEnviarEmailNotificacao(boolean enviarEmailNotificacao) { | |
55 | - this.enviarEmailNotificacao = enviarEmailNotificacao; | |
56 | - } | |
57 | - | |
58 | - public Date getDataRetornoProgramado() { | |
59 | - return dataRetornoProgramado; | |
60 | - } | |
61 | - | |
62 | - public void setDataRetornoProgramado(Date dataRetornoProgramado) { | |
63 | - this.dataRetornoProgramado = dataRetornoProgramado; | |
64 | - } | |
65 | - | |
66 | - public Integer getQtdDiasAteRetorno() { | |
67 | - return qtdDiasAteRetorno; | |
68 | - } | |
69 | - | |
70 | - public void setQtdDiasAteRetorno(Integer qtdDiasAteRetorno) { | |
71 | - this.qtdDiasAteRetorno = qtdDiasAteRetorno; | |
72 | - } | |
73 | - | |
74 | - public boolean getSomenteDiasUteis() { | |
75 | - return somenteDiasUteis; | |
76 | - } | |
77 | - | |
78 | - public void setSomenteDiasUteis(boolean somenteDiasUteis) { | |
79 | - this.somenteDiasUteis = somenteDiasUteis; | |
80 | - } | |
81 | - | |
82 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +public class EnvioDeProcesso { | |
12 | + | |
13 | + private String numeroDoProcesso; | |
14 | + private String[] unidadesDestino; | |
15 | + private boolean manterAbertoOrigem; | |
16 | + private boolean removerAnotacoes; | |
17 | + private boolean enviarEmailNotificacao; | |
18 | + private Date dataRetornoProgramado; | |
19 | + private Integer qtdDiasAteRetorno; | |
20 | + private boolean somenteDiasUteis; | |
21 | + | |
22 | + public String getNumeroDoProcesso() { | |
23 | + return numeroDoProcesso; | |
24 | + } | |
25 | + | |
26 | + public void setNumeroDoProcesso(String numeroDoProcesso) { | |
27 | + this.numeroDoProcesso = numeroDoProcesso; | |
28 | + } | |
29 | + | |
30 | + public String[] getUnidadesDestino() { | |
31 | + return unidadesDestino; | |
32 | + } | |
33 | + | |
34 | + public void setUnidadesDestino(String[] unidadesDestino) { | |
35 | + this.unidadesDestino = unidadesDestino; | |
36 | + } | |
37 | + | |
38 | + public boolean getManterAbertoOrigem() { | |
39 | + return manterAbertoOrigem; | |
40 | + } | |
41 | + | |
42 | + public void setManterAbertoOrigem(boolean manterAbertoOrigem) { | |
43 | + this.manterAbertoOrigem = manterAbertoOrigem; | |
44 | + } | |
45 | + | |
46 | + public boolean getRemoverAnotacoes() { | |
47 | + return removerAnotacoes; | |
48 | + } | |
49 | + | |
50 | + public void setRemoverAnotacoes(boolean removerAnotacoes) { | |
51 | + this.removerAnotacoes = removerAnotacoes; | |
52 | + } | |
53 | + | |
54 | + public boolean getEnviarEmailNotificacao() { | |
55 | + return enviarEmailNotificacao; | |
56 | + } | |
57 | + | |
58 | + public void setEnviarEmailNotificacao(boolean enviarEmailNotificacao) { | |
59 | + this.enviarEmailNotificacao = enviarEmailNotificacao; | |
60 | + } | |
61 | + | |
62 | + public Date getDataRetornoProgramado() { | |
63 | + return dataRetornoProgramado; | |
64 | + } | |
65 | + | |
66 | + public void setDataRetornoProgramado(Date dataRetornoProgramado) { | |
67 | + this.dataRetornoProgramado = dataRetornoProgramado; | |
68 | + } | |
69 | + | |
70 | + public Integer getQtdDiasAteRetorno() { | |
71 | + return qtdDiasAteRetorno; | |
72 | + } | |
73 | + | |
74 | + public void setQtdDiasAteRetorno(Integer qtdDiasAteRetorno) { | |
75 | + this.qtdDiasAteRetorno = qtdDiasAteRetorno; | |
76 | + } | |
77 | + | |
78 | + public boolean getSomenteDiasUteis() { | |
79 | + return somenteDiasUteis; | |
80 | + } | |
81 | + | |
82 | + public void setSomenteDiasUteis(boolean somenteDiasUteis) { | |
83 | + this.somenteDiasUteis = somenteDiasUteis; | |
84 | + } | |
85 | + | |
86 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Estado.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -public class Estado { | |
4 | - | |
5 | - private String sigla; | |
6 | - | |
7 | - private String nome; | |
8 | - | |
9 | - | |
10 | - public String getSigla() { | |
11 | - return sigla; | |
12 | - } | |
13 | - | |
14 | - public void setSigla(String sigla) { | |
15 | - this.sigla = sigla; | |
16 | - } | |
17 | - | |
18 | - public String getNome() { | |
19 | - return nome; | |
20 | - } | |
21 | - | |
22 | - public void setNome(String nome) { | |
23 | - this.nome = nome; | |
24 | - } | |
25 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnore; | |
4 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
7 | + | |
8 | +@JsonInclude(content = Include.NON_NULL) | |
9 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
10 | +public class Estado { | |
11 | + | |
12 | + private Integer id; | |
13 | + private String sigla; | |
14 | + private String nome; | |
15 | + private String idPais; | |
16 | + | |
17 | + @JsonIgnore | |
18 | + public Integer getId() { | |
19 | + return id; | |
20 | + } | |
21 | + | |
22 | + public void setId(Integer id) { | |
23 | + this.id = id; | |
24 | + } | |
25 | + | |
26 | + public String getSigla() { | |
27 | + return sigla; | |
28 | + } | |
29 | + | |
30 | + public void setSigla(String sigla) { | |
31 | + this.sigla = sigla; | |
32 | + } | |
33 | + | |
34 | + public String getNome() { | |
35 | + return nome; | |
36 | + } | |
37 | + | |
38 | + public void setNome(String nome) { | |
39 | + this.nome = nome; | |
40 | + } | |
41 | + | |
42 | + @JsonIgnore | |
43 | + public String getIdPais() { | |
44 | + return idPais; | |
45 | + } | |
46 | + | |
47 | + public void setIdPais(String idPais) { | |
48 | + this.idPais = idPais; | |
49 | + } | |
50 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ExclusaoDocumento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -public class ExclusaoDocumento { | |
6 | - | |
7 | - private Date data; | |
8 | - | |
9 | - private String numero; | |
10 | - | |
11 | - private String sistema; | |
12 | - | |
13 | - private String unidade; | |
14 | - | |
15 | - private String motivo; | |
16 | - | |
17 | - | |
18 | - public ExclusaoDocumento(){ | |
19 | - } | |
20 | - | |
21 | - public ExclusaoDocumento(String numero, String sistema, String unidade, String motivo){ | |
22 | - this.numero = numero; | |
23 | - this.sistema = sistema; | |
24 | - this.unidade = unidade; | |
25 | - this.motivo = motivo; | |
26 | - this.data = new Date(); | |
27 | - } | |
28 | - | |
29 | - public Date getData() { | |
30 | - return data; | |
31 | - } | |
32 | - | |
33 | - public void setData(Date data) { | |
34 | - this.data = data; | |
35 | - } | |
36 | - | |
37 | - public String getNumero() { | |
38 | - return numero; | |
39 | - } | |
40 | - | |
41 | - public void setNumero(String numero) { | |
42 | - this.numero = numero; | |
43 | - } | |
44 | - | |
45 | - public String getSistema() { | |
46 | - return sistema; | |
47 | - } | |
48 | - | |
49 | - public void setSistema(String sistema) { | |
50 | - this.sistema = sistema; | |
51 | - } | |
52 | - | |
53 | - public String getUnidade() { | |
54 | - return unidade; | |
55 | - } | |
56 | - | |
57 | - public void setUnidade(String unidade) { | |
58 | - this.unidade = unidade; | |
59 | - } | |
60 | - | |
61 | - public String getMotivo() { | |
62 | - return motivo; | |
63 | - } | |
64 | - | |
65 | - public void setMotivo(String motivo) { | |
66 | - this.motivo = motivo; | |
67 | - } | |
68 | - | |
69 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnore; | |
6 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
8 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
9 | + | |
10 | +@JsonInclude(content = Include.NON_NULL) | |
11 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
12 | +public class ExclusaoDocumento { | |
13 | + | |
14 | + private long id; | |
15 | + private Date data; | |
16 | + private String numero; | |
17 | + private String sistema; | |
18 | + private String unidade; | |
19 | + private String motivo; | |
20 | + | |
21 | + public ExclusaoDocumento(){ | |
22 | + } | |
23 | + | |
24 | + public ExclusaoDocumento(String numero, String sistema, String unidade, String motivo){ | |
25 | + this.numero = numero; | |
26 | + this.sistema = sistema; | |
27 | + this.unidade = unidade; | |
28 | + this.motivo = motivo; | |
29 | + this.data = new Date(); | |
30 | + } | |
31 | + | |
32 | + @JsonIgnore | |
33 | + public long getId() { | |
34 | + return id; | |
35 | + } | |
36 | + | |
37 | + public void setId(long id) { | |
38 | + this.id = id; | |
39 | + } | |
40 | + | |
41 | + public Date getData() { | |
42 | + return data; | |
43 | + } | |
44 | + | |
45 | + public void setData(Date data) { | |
46 | + this.data = data; | |
47 | + } | |
48 | + | |
49 | + public String getNumero() { | |
50 | + return numero; | |
51 | + } | |
52 | + | |
53 | + public void setNumero(String numero) { | |
54 | + this.numero = numero; | |
55 | + } | |
56 | + | |
57 | + public String getSistema() { | |
58 | + return sistema; | |
59 | + } | |
60 | + | |
61 | + public void setSistema(String sistema) { | |
62 | + this.sistema = sistema; | |
63 | + } | |
64 | + | |
65 | + public String getUnidade() { | |
66 | + return unidade; | |
67 | + } | |
68 | + | |
69 | + public void setUnidade(String unidade) { | |
70 | + this.unidade = unidade; | |
71 | + } | |
72 | + | |
73 | + public String getMotivo() { | |
74 | + return motivo; | |
75 | + } | |
76 | + | |
77 | + public void setMotivo(String motivo) { | |
78 | + this.motivo = motivo; | |
79 | + } | |
80 | + | |
81 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/InclusaoDocumento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -import br.gov.ans.integracao.sei.client.Documento; | |
6 | - | |
7 | -public class InclusaoDocumento { | |
8 | - | |
9 | - private Date data; | |
10 | - | |
11 | - private String nome; | |
12 | - | |
13 | - private String numero; | |
14 | - | |
15 | - private String hash; | |
16 | - | |
17 | - private String sistema; | |
18 | - | |
19 | - private String unidade; | |
20 | - | |
21 | - private String processo; | |
22 | - | |
23 | - private String numeroInformado; | |
24 | - | |
25 | - private String link; | |
26 | - | |
27 | - public InclusaoDocumento(){ | |
28 | - | |
29 | - } | |
30 | - | |
31 | - public InclusaoDocumento(Documento documento, String unidade, String sistema, String hash){ | |
32 | - this.unidade = unidade; | |
33 | - this.sistema = sistema; | |
34 | - this.hash = hash; | |
35 | - this.numeroInformado = documento.getNumero(); | |
36 | - | |
37 | - this.nome = documento.getNomeArquivo(); | |
38 | - this.processo = documento.getIdProcedimento(); | |
39 | - | |
40 | - this.data = new Date(); | |
41 | - } | |
42 | - | |
43 | - public Date getData() { | |
44 | - return data; | |
45 | - } | |
46 | - | |
47 | - public void setData(Date data) { | |
48 | - this.data = data; | |
49 | - } | |
50 | - | |
51 | - public String getNome() { | |
52 | - return nome; | |
53 | - } | |
54 | - | |
55 | - public void setNome(String nome) { | |
56 | - this.nome = nome; | |
57 | - } | |
58 | - | |
59 | - public String getNumero() { | |
60 | - return numero; | |
61 | - } | |
62 | - | |
63 | - public void setNumero(String numero) { | |
64 | - this.numero = numero; | |
65 | - } | |
66 | - | |
67 | - public String getHash() { | |
68 | - return hash; | |
69 | - } | |
70 | - | |
71 | - public void setHash(String hash) { | |
72 | - this.hash = hash; | |
73 | - } | |
74 | - | |
75 | - public String getSistema() { | |
76 | - return sistema; | |
77 | - } | |
78 | - | |
79 | - public void setSistema(String sistema) { | |
80 | - this.sistema = sistema; | |
81 | - } | |
82 | - | |
83 | - public String getUnidade() { | |
84 | - return unidade; | |
85 | - } | |
86 | - | |
87 | - public void setUnidade(String unidade) { | |
88 | - this.unidade = unidade; | |
89 | - } | |
90 | - | |
91 | - public String getProcesso() { | |
92 | - return processo; | |
93 | - } | |
94 | - | |
95 | - public void setProcesso(String processo) { | |
96 | - this.processo = processo; | |
97 | - } | |
98 | - | |
99 | - public String getNumeroInformado() { | |
100 | - return numeroInformado; | |
101 | - } | |
102 | - | |
103 | - public void setNumeroInformado(String numeroInformado) { | |
104 | - this.numeroInformado = numeroInformado; | |
105 | - } | |
106 | - | |
107 | - public String getLink() { | |
108 | - return link; | |
109 | - } | |
110 | - | |
111 | - public void setLink(String link) { | |
112 | - this.link = link; | |
113 | - } | |
114 | - | |
115 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnore; | |
6 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
8 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
9 | + | |
10 | +import br.gov.ans.integracao.sei.client.Documento; | |
11 | + | |
12 | +@JsonInclude(content = Include.NON_NULL) | |
13 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
14 | +public class InclusaoDocumento { | |
15 | + | |
16 | + private long id; | |
17 | + private Date data; | |
18 | + private String nome; | |
19 | + private String numero; | |
20 | + private String hash; | |
21 | + private String sistema; | |
22 | + private String unidade; | |
23 | + private String processo; | |
24 | + private String numeroInformado; | |
25 | + private String link; | |
26 | + | |
27 | + public InclusaoDocumento(){ | |
28 | + | |
29 | + } | |
30 | + | |
31 | + public InclusaoDocumento(Documento documento, String unidade, String sistema, String hash){ | |
32 | + this.unidade = unidade; | |
33 | + this.sistema = sistema; | |
34 | + this.hash = hash; | |
35 | + this.numeroInformado = documento.getNumero(); | |
36 | + | |
37 | + this.nome = documento.getNomeArquivo(); | |
38 | + this.processo = documento.getIdProcedimento(); | |
39 | + | |
40 | + this.data = new Date(); | |
41 | + } | |
42 | + | |
43 | + @JsonIgnore | |
44 | + public long getId() { | |
45 | + return id; | |
46 | + } | |
47 | + | |
48 | + @JsonIgnore | |
49 | + public void setId(long id) { | |
50 | + this.id = id; | |
51 | + } | |
52 | + | |
53 | + public Date getData() { | |
54 | + return data; | |
55 | + } | |
56 | + | |
57 | + public void setData(Date data) { | |
58 | + this.data = data; | |
59 | + } | |
60 | + | |
61 | + public String getNome() { | |
62 | + return nome; | |
63 | + } | |
64 | + | |
65 | + public void setNome(String nome) { | |
66 | + this.nome = nome; | |
67 | + } | |
68 | + | |
69 | + public String getNumero() { | |
70 | + return numero; | |
71 | + } | |
72 | + | |
73 | + public void setNumero(String numero) { | |
74 | + this.numero = numero; | |
75 | + } | |
76 | + | |
77 | + public String getHash() { | |
78 | + return hash; | |
79 | + } | |
80 | + | |
81 | + public void setHash(String hash) { | |
82 | + this.hash = hash; | |
83 | + } | |
84 | + | |
85 | + public String getSistema() { | |
86 | + return sistema; | |
87 | + } | |
88 | + | |
89 | + public void setSistema(String sistema) { | |
90 | + this.sistema = sistema; | |
91 | + } | |
92 | + | |
93 | + public String getUnidade() { | |
94 | + return unidade; | |
95 | + } | |
96 | + | |
97 | + public void setUnidade(String unidade) { | |
98 | + this.unidade = unidade; | |
99 | + } | |
100 | + | |
101 | + public String getProcesso() { | |
102 | + return processo; | |
103 | + } | |
104 | + | |
105 | + public void setProcesso(String processo) { | |
106 | + this.processo = processo; | |
107 | + } | |
108 | + | |
109 | + public String getNumeroInformado() { | |
110 | + return numeroInformado; | |
111 | + } | |
112 | + | |
113 | + public void setNumeroInformado(String numeroInformado) { | |
114 | + this.numeroInformado = numeroInformado; | |
115 | + } | |
116 | + | |
117 | + public String getLink() { | |
118 | + return link; | |
119 | + } | |
120 | + | |
121 | + public void setLink(String link) { | |
122 | + this.link = link; | |
123 | + } | |
124 | + | |
125 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/InclusaoDocumentoBloco.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class InclusaoDocumentoBloco { | |
7 | - private String bloco; | |
8 | - private String documento; | |
9 | - private String anotacao; | |
10 | - | |
11 | - public String getBloco() { | |
12 | - return bloco; | |
13 | - } | |
14 | - | |
15 | - public void setBloco(String bloco) { | |
16 | - this.bloco = bloco; | |
17 | - } | |
18 | - | |
19 | - public String getDocumento() { | |
20 | - return documento; | |
21 | - } | |
22 | - | |
23 | - public void setDocumento(String documento) { | |
24 | - this.documento = documento; | |
25 | - } | |
26 | - | |
27 | - public String getAnotacao() { | |
28 | - return anotacao; | |
29 | - } | |
30 | - | |
31 | - public void setAnotacao(String anotacao) { | |
32 | - this.anotacao = anotacao; | |
33 | - } | |
34 | - | |
35 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class InclusaoDocumentoBloco { | |
10 | + | |
11 | + private String bloco; | |
12 | + private String documento; | |
13 | + private String anotacao; | |
14 | + | |
15 | + public String getBloco() { | |
16 | + return bloco; | |
17 | + } | |
18 | + | |
19 | + public void setBloco(String bloco) { | |
20 | + this.bloco = bloco; | |
21 | + } | |
22 | + | |
23 | + public String getDocumento() { | |
24 | + return documento; | |
25 | + } | |
26 | + | |
27 | + public void setDocumento(String documento) { | |
28 | + this.documento = documento; | |
29 | + } | |
30 | + | |
31 | + public String getAnotacao() { | |
32 | + return anotacao; | |
33 | + } | |
34 | + | |
35 | + public void setAnotacao(String anotacao) { | |
36 | + this.anotacao = anotacao; | |
37 | + } | |
38 | + | |
39 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/InclusaoProcessoBloco.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class InclusaoProcessoBloco { | |
7 | - private String bloco; | |
8 | - private String processo; | |
9 | - private String anotacao; | |
10 | - | |
11 | - public String getBloco() { | |
12 | - return bloco; | |
13 | - } | |
14 | - | |
15 | - public void setBloco(String bloco) { | |
16 | - this.bloco = bloco; | |
17 | - } | |
18 | - | |
19 | - public String getProcesso() { | |
20 | - return processo; | |
21 | - } | |
22 | - | |
23 | - public void setProcesso(String processo) { | |
24 | - this.processo = processo; | |
25 | - } | |
26 | - | |
27 | - public String getAnotacao() { | |
28 | - return anotacao; | |
29 | - } | |
30 | - | |
31 | - public void setAnotacao(String anotacao) { | |
32 | - this.anotacao = anotacao; | |
33 | - } | |
34 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class InclusaoProcessoBloco { | |
10 | + | |
11 | + private String bloco; | |
12 | + private String processo; | |
13 | + private String anotacao; | |
14 | + | |
15 | + public String getBloco() { | |
16 | + return bloco; | |
17 | + } | |
18 | + | |
19 | + public void setBloco(String bloco) { | |
20 | + this.bloco = bloco; | |
21 | + } | |
22 | + | |
23 | + public String getProcesso() { | |
24 | + return processo; | |
25 | + } | |
26 | + | |
27 | + public void setProcesso(String processo) { | |
28 | + this.processo = processo; | |
29 | + } | |
30 | + | |
31 | + public String getAnotacao() { | |
32 | + return anotacao; | |
33 | + } | |
34 | + | |
35 | + public void setAnotacao(String anotacao) { | |
36 | + this.anotacao = anotacao; | |
37 | + } | |
38 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/MarcacaoProcesso.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class MarcacaoProcesso { | |
7 | - | |
8 | - private String processo; | |
9 | - private String texto; | |
10 | - | |
11 | - public String getProcesso() { | |
12 | - return processo; | |
13 | - } | |
14 | - | |
15 | - public void setProcesso(String processo) { | |
16 | - this.processo = processo; | |
17 | - } | |
18 | - | |
19 | - public String getTexto() { | |
20 | - return texto; | |
21 | - } | |
22 | - | |
23 | - public void setTexto(String texto) { | |
24 | - this.texto = texto; | |
25 | - } | |
26 | - | |
27 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class MarcacaoProcesso { | |
10 | + | |
11 | + private String processo; | |
12 | + private String texto; | |
13 | + | |
14 | + public String getProcesso() { | |
15 | + return processo; | |
16 | + } | |
17 | + | |
18 | + public void setProcesso(String processo) { | |
19 | + this.processo = processo; | |
20 | + } | |
21 | + | |
22 | + public String getTexto() { | |
23 | + return texto; | |
24 | + } | |
25 | + | |
26 | + public void setTexto(String texto) { | |
27 | + this.texto = texto; | |
28 | + } | |
29 | + | |
30 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Motivo.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class Motivo { | |
7 | - String motivo; | |
8 | - | |
9 | - public String getMotivo() { | |
10 | - return motivo; | |
11 | - } | |
12 | - | |
13 | - public void setMotivo(String motivo) { | |
14 | - this.motivo = motivo; | |
15 | - } | |
16 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class Motivo { | |
10 | + | |
11 | + String motivo; | |
12 | + | |
13 | + public String getMotivo() { | |
14 | + return motivo; | |
15 | + } | |
16 | + | |
17 | + public void setMotivo(String motivo) { | |
18 | + this.motivo = motivo; | |
19 | + } | |
20 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/NivelAcesso.java
src/main/java/br/gov/ans/integracao/sei/modelo/NovoAndamento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.HashMap; | |
4 | - | |
5 | -public class NovoAndamento { | |
6 | - | |
7 | - private String tarefa; | |
8 | - private String tarefaModulo; | |
9 | - private HashMap<String, String> atributos; | |
10 | - | |
11 | - public String getTarefa() { | |
12 | - return tarefa; | |
13 | - } | |
14 | - | |
15 | - public void setTarefa(String tarefa) { | |
16 | - this.tarefa = tarefa; | |
17 | - } | |
18 | - | |
19 | - public String getTarefaModulo() { | |
20 | - return tarefaModulo; | |
21 | - } | |
22 | - | |
23 | - public void setTarefaModulo(String tarefaModulo) { | |
24 | - this.tarefaModulo = tarefaModulo; | |
25 | - } | |
26 | - | |
27 | - public HashMap<String, String> getAtributos() { | |
28 | - return atributos; | |
29 | - } | |
30 | - | |
31 | - public void setAtributos(HashMap<String, String> atributos) { | |
32 | - this.atributos = atributos; | |
33 | - } | |
34 | - | |
35 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.HashMap; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +public class NovoAndamento { | |
12 | + | |
13 | + private String tarefa; | |
14 | + private String tarefaModulo; | |
15 | + private HashMap<String, String> atributos; | |
16 | + | |
17 | + public String getTarefa() { | |
18 | + return tarefa; | |
19 | + } | |
20 | + | |
21 | + public void setTarefa(String tarefa) { | |
22 | + this.tarefa = tarefa; | |
23 | + } | |
24 | + | |
25 | + public String getTarefaModulo() { | |
26 | + return tarefaModulo; | |
27 | + } | |
28 | + | |
29 | + public void setTarefaModulo(String tarefaModulo) { | |
30 | + this.tarefaModulo = tarefaModulo; | |
31 | + } | |
32 | + | |
33 | + public HashMap<String, String> getAtributos() { | |
34 | + return atributos; | |
35 | + } | |
36 | + | |
37 | + public void setAtributos(HashMap<String, String> atributos) { | |
38 | + this.atributos = atributos; | |
39 | + } | |
40 | + | |
41 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/NovoBloco.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -import org.codehaus.jackson.annotate.JsonIgnoreProperties; | |
6 | - | |
7 | -import br.gov.ans.integracao.sei.modelo.enums.TipoBloco; | |
8 | - | |
9 | -@XmlRootElement | |
10 | -@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | -public class NovoBloco { | |
12 | - | |
13 | - private TipoBloco tipo; | |
14 | - private String descricao; | |
15 | - private String[] unidades; | |
16 | - private String[] documentos; | |
17 | - private boolean disponibilizar; | |
18 | - | |
19 | - public TipoBloco getTipo() { | |
20 | - return tipo; | |
21 | - } | |
22 | - | |
23 | - public void setTipo(TipoBloco tipo) { | |
24 | - this.tipo = tipo; | |
25 | - } | |
26 | - | |
27 | - public String getDescricao() { | |
28 | - return descricao; | |
29 | - } | |
30 | - | |
31 | - public void setDescricao(String descricao) { | |
32 | - this.descricao = descricao; | |
33 | - } | |
34 | - | |
35 | - public String[] getUnidades() { | |
36 | - return unidades; | |
37 | - } | |
38 | - | |
39 | - public void setUnidades(String[] unidades) { | |
40 | - this.unidades = unidades; | |
41 | - } | |
42 | - | |
43 | - public String[] getDocumentos() { | |
44 | - return documentos; | |
45 | - } | |
46 | - | |
47 | - public void setDocumentos(String[] documentos) { | |
48 | - this.documentos = documentos; | |
49 | - } | |
50 | - | |
51 | - public boolean isDisponibilizar() { | |
52 | - return disponibilizar; | |
53 | - } | |
54 | - | |
55 | - public void setDisponibilizar(boolean disponibilizar) { | |
56 | - this.disponibilizar = disponibilizar; | |
57 | - } | |
58 | - | |
59 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | + | |
4 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
7 | + | |
8 | +import br.gov.ans.integracao.sei.modelo.enums.TipoBloco; | |
9 | + | |
10 | +@JsonInclude(content = Include.NON_NULL) | |
11 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
12 | +public class NovoBloco { | |
13 | + | |
14 | + private TipoBloco tipo; | |
15 | + private String descricao; | |
16 | + private String[] unidades; | |
17 | + private String[] documentos; | |
18 | + private boolean disponibilizar; | |
19 | + | |
20 | + public TipoBloco getTipo() { | |
21 | + return tipo; | |
22 | + } | |
23 | + | |
24 | + public void setTipo(TipoBloco tipo) { | |
25 | + this.tipo = tipo; | |
26 | + } | |
27 | + | |
28 | + public String getDescricao() { | |
29 | + return descricao; | |
30 | + } | |
31 | + | |
32 | + public void setDescricao(String descricao) { | |
33 | + this.descricao = descricao; | |
34 | + } | |
35 | + | |
36 | + public String[] getUnidades() { | |
37 | + return unidades; | |
38 | + } | |
39 | + | |
40 | + public void setUnidades(String[] unidades) { | |
41 | + this.unidades = unidades; | |
42 | + } | |
43 | + | |
44 | + public String[] getDocumentos() { | |
45 | + return documentos; | |
46 | + } | |
47 | + | |
48 | + public void setDocumentos(String[] documentos) { | |
49 | + this.documentos = documentos; | |
50 | + } | |
51 | + | |
52 | + public boolean isDisponibilizar() { | |
53 | + return disponibilizar; | |
54 | + } | |
55 | + | |
56 | + public void setDisponibilizar(boolean disponibilizar) { | |
57 | + this.disponibilizar = disponibilizar; | |
58 | + } | |
59 | + | |
60 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/NovoProcesso.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -import javax.xml.bind.annotation.XmlRootElement; | |
6 | - | |
7 | -import br.gov.ans.integracao.sei.client.Documento; | |
8 | -import br.gov.ans.integracao.sei.client.Procedimento; | |
9 | - | |
10 | -@XmlRootElement | |
11 | -public class NovoProcesso { | |
12 | - private Procedimento dadosProcesso; | |
13 | - private Documento[] documentos; | |
14 | - private String[] processosRelacionados; | |
15 | - private String[] unidadesDestino; | |
16 | - private boolean manterAbertoOrigem; | |
17 | - private boolean enviarEmailNotificacao; | |
18 | - private Date dataRetornoProgramado; | |
19 | - private Integer qtdDiasAteRetorno; | |
20 | - private boolean somenteDiasUteis; | |
21 | - private String idMarcadador; | |
22 | - private String textoMarcador; | |
23 | - | |
24 | - public Procedimento getDadosProcesso() { | |
25 | - return dadosProcesso; | |
26 | - } | |
27 | - | |
28 | - public void setDadosProcesso(Procedimento dadosProcesso) { | |
29 | - this.dadosProcesso = dadosProcesso; | |
30 | - } | |
31 | - | |
32 | - public Documento[] getDocumentos() { | |
33 | - return documentos; | |
34 | - } | |
35 | - | |
36 | - public void setDocumentos(Documento[] documentos) { | |
37 | - this.documentos = documentos; | |
38 | - } | |
39 | - | |
40 | - public String[] getProcessosRelacionados() { | |
41 | - return processosRelacionados; | |
42 | - } | |
43 | - | |
44 | - public void setProcessosRelacionados(String[] processosRelacionados) { | |
45 | - this.processosRelacionados = processosRelacionados; | |
46 | - } | |
47 | - | |
48 | - public String[] getUnidadesDestino() { | |
49 | - return unidadesDestino; | |
50 | - } | |
51 | - | |
52 | - public void setUnidadesDestino(String[] unidadesDestino) { | |
53 | - this.unidadesDestino = unidadesDestino; | |
54 | - } | |
55 | - | |
56 | - public boolean isManterAbertoOrigem() { | |
57 | - return manterAbertoOrigem; | |
58 | - } | |
59 | - | |
60 | - public void setManterAbertoOrigem(boolean manterAbertoOrigem) { | |
61 | - this.manterAbertoOrigem = manterAbertoOrigem; | |
62 | - } | |
63 | - | |
64 | - public boolean isEnviarEmailNotificacao() { | |
65 | - return enviarEmailNotificacao; | |
66 | - } | |
67 | - | |
68 | - public void setEnviarEmailNotificacao(boolean enviarEmailNotificacao) { | |
69 | - this.enviarEmailNotificacao = enviarEmailNotificacao; | |
70 | - } | |
71 | - | |
72 | - public Date getDataRetornoProgramado() { | |
73 | - return dataRetornoProgramado; | |
74 | - } | |
75 | - | |
76 | - public void setDataRetornoProgramado(Date dataRetornoProgramado) { | |
77 | - this.dataRetornoProgramado = dataRetornoProgramado; | |
78 | - } | |
79 | - | |
80 | - public Integer getQtdDiasAteRetorno() { | |
81 | - return qtdDiasAteRetorno; | |
82 | - } | |
83 | - | |
84 | - public void setQtdDiasAteRetorno(Integer qtdDiasAteRetorno) { | |
85 | - this.qtdDiasAteRetorno = qtdDiasAteRetorno; | |
86 | - } | |
87 | - | |
88 | - public boolean isSomenteDiasUteis() { | |
89 | - return somenteDiasUteis; | |
90 | - } | |
91 | - | |
92 | - public void setSomenteDiasUteis(boolean somenteDiasUteis) { | |
93 | - this.somenteDiasUteis = somenteDiasUteis; | |
94 | - } | |
95 | - | |
96 | - public String getIdMarcadador() { | |
97 | - return idMarcadador; | |
98 | - } | |
99 | - | |
100 | - public void setIdMarcadador(String idMarcadador) { | |
101 | - this.idMarcadador = idMarcadador; | |
102 | - } | |
103 | - | |
104 | - public String getTextoMarcador() { | |
105 | - return textoMarcador; | |
106 | - } | |
107 | - | |
108 | - public void setTextoMarcador(String textoMarcador) { | |
109 | - this.textoMarcador = textoMarcador; | |
110 | - } | |
111 | - | |
112 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +import br.gov.ans.integracao.sei.client.Documento; | |
10 | +import br.gov.ans.integracao.sei.client.Procedimento; | |
11 | + | |
12 | +@JsonInclude(content = Include.NON_NULL) | |
13 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
14 | +public class NovoProcesso { | |
15 | + | |
16 | + private Procedimento dadosProcesso; | |
17 | + private Documento[] documentos; | |
18 | + private String[] processosRelacionados; | |
19 | + private String[] unidadesDestino; | |
20 | + private boolean manterAbertoOrigem; | |
21 | + private boolean enviarEmailNotificacao; | |
22 | + private Date dataRetornoProgramado; | |
23 | + private Integer qtdDiasAteRetorno; | |
24 | + private boolean somenteDiasUteis; | |
25 | + private String idMarcadador; | |
26 | + private String textoMarcador; | |
27 | + | |
28 | + public Procedimento getDadosProcesso() { | |
29 | + return dadosProcesso; | |
30 | + } | |
31 | + | |
32 | + public void setDadosProcesso(Procedimento dadosProcesso) { | |
33 | + this.dadosProcesso = dadosProcesso; | |
34 | + } | |
35 | + | |
36 | + public Documento[] getDocumentos() { | |
37 | + return documentos; | |
38 | + } | |
39 | + | |
40 | + public void setDocumentos(Documento[] documentos) { | |
41 | + this.documentos = documentos; | |
42 | + } | |
43 | + | |
44 | + public String[] getProcessosRelacionados() { | |
45 | + return processosRelacionados; | |
46 | + } | |
47 | + | |
48 | + public void setProcessosRelacionados(String[] processosRelacionados) { | |
49 | + this.processosRelacionados = processosRelacionados; | |
50 | + } | |
51 | + | |
52 | + public String[] getUnidadesDestino() { | |
53 | + return unidadesDestino; | |
54 | + } | |
55 | + | |
56 | + public void setUnidadesDestino(String[] unidadesDestino) { | |
57 | + this.unidadesDestino = unidadesDestino; | |
58 | + } | |
59 | + | |
60 | + public boolean isManterAbertoOrigem() { | |
61 | + return manterAbertoOrigem; | |
62 | + } | |
63 | + | |
64 | + public void setManterAbertoOrigem(boolean manterAbertoOrigem) { | |
65 | + this.manterAbertoOrigem = manterAbertoOrigem; | |
66 | + } | |
67 | + | |
68 | + public boolean isEnviarEmailNotificacao() { | |
69 | + return enviarEmailNotificacao; | |
70 | + } | |
71 | + | |
72 | + public void setEnviarEmailNotificacao(boolean enviarEmailNotificacao) { | |
73 | + this.enviarEmailNotificacao = enviarEmailNotificacao; | |
74 | + } | |
75 | + | |
76 | + public Date getDataRetornoProgramado() { | |
77 | + return dataRetornoProgramado; | |
78 | + } | |
79 | + | |
80 | + public void setDataRetornoProgramado(Date dataRetornoProgramado) { | |
81 | + this.dataRetornoProgramado = dataRetornoProgramado; | |
82 | + } | |
83 | + | |
84 | + public Integer getQtdDiasAteRetorno() { | |
85 | + return qtdDiasAteRetorno; | |
86 | + } | |
87 | + | |
88 | + public void setQtdDiasAteRetorno(Integer qtdDiasAteRetorno) { | |
89 | + this.qtdDiasAteRetorno = qtdDiasAteRetorno; | |
90 | + } | |
91 | + | |
92 | + public boolean isSomenteDiasUteis() { | |
93 | + return somenteDiasUteis; | |
94 | + } | |
95 | + | |
96 | + public void setSomenteDiasUteis(boolean somenteDiasUteis) { | |
97 | + this.somenteDiasUteis = somenteDiasUteis; | |
98 | + } | |
99 | + | |
100 | + public String getIdMarcadador() { | |
101 | + return idMarcadador; | |
102 | + } | |
103 | + | |
104 | + public void setIdMarcadador(String idMarcadador) { | |
105 | + this.idMarcadador = idMarcadador; | |
106 | + } | |
107 | + | |
108 | + public String getTextoMarcador() { | |
109 | + return textoMarcador; | |
110 | + } | |
111 | + | |
112 | + public void setTextoMarcador(String textoMarcador) { | |
113 | + this.textoMarcador = textoMarcador; | |
114 | + } | |
115 | + | |
116 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ParteArquivo.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class ParteArquivo { | |
7 | - private String arquivo; | |
8 | - private String conteudo; | |
9 | - | |
10 | - public String getArquivo() { | |
11 | - return arquivo; | |
12 | - } | |
13 | - | |
14 | - public void setArquivo(String arquivo) { | |
15 | - this.arquivo = arquivo; | |
16 | - } | |
17 | - | |
18 | - public String getConteudo() { | |
19 | - return conteudo; | |
20 | - } | |
21 | - | |
22 | - public void setConteudo(String conteudo) { | |
23 | - this.conteudo = conteudo; | |
24 | - } | |
25 | - | |
26 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class ParteArquivo { | |
10 | + | |
11 | + private String arquivo; | |
12 | + private String conteudo; | |
13 | + | |
14 | + public String getArquivo() { | |
15 | + return arquivo; | |
16 | + } | |
17 | + | |
18 | + public void setArquivo(String arquivo) { | |
19 | + this.arquivo = arquivo; | |
20 | + } | |
21 | + | |
22 | + public String getConteudo() { | |
23 | + return conteudo; | |
24 | + } | |
25 | + | |
26 | + public void setConteudo(String conteudo) { | |
27 | + this.conteudo = conteudo; | |
28 | + } | |
29 | + | |
30 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Pessoa.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -import org.codehaus.jackson.annotate.JsonIgnoreProperties; | |
6 | -import org.codehaus.jackson.annotate.JsonSubTypes; | |
7 | -import org.codehaus.jackson.annotate.JsonTypeInfo; | |
8 | - | |
9 | -@JsonIgnoreProperties(ignoreUnknown = true) | |
10 | -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) | |
11 | -@JsonSubTypes({ | |
12 | - @JsonSubTypes.Type(value = PessoaFisica.class, name = "Fisica"), | |
13 | - @JsonSubTypes.Type(value = PessoaJuridica.class, name = "Juridica") } | |
14 | -) | |
15 | -@XmlRootElement | |
16 | -public abstract class Pessoa { | |
17 | - private String nome; | |
18 | - private String sigla; | |
19 | - private Endereco endereco; | |
20 | - private String email; | |
21 | - private String celular; | |
22 | - private String telefone; | |
23 | - private String observacao; | |
24 | - private boolean ativo; | |
25 | - | |
26 | - private PessoaJuridica associado; | |
27 | - | |
28 | - public String getNome() { | |
29 | - return nome; | |
30 | - } | |
31 | - | |
32 | - public void setNome(String nome) { | |
33 | - this.nome = nome; | |
34 | - } | |
35 | - | |
36 | - public String getSigla() { | |
37 | - return sigla; | |
38 | - } | |
39 | - | |
40 | - public void setSigla(String sigla) { | |
41 | - this.sigla = sigla; | |
42 | - } | |
43 | - | |
44 | - public Endereco getEndereco() { | |
45 | - return endereco; | |
46 | - } | |
47 | - | |
48 | - public void setEndereco(Endereco endereco) { | |
49 | - this.endereco = endereco; | |
50 | - } | |
51 | - | |
52 | - public String getEmail() { | |
53 | - return email; | |
54 | - } | |
55 | - | |
56 | - public void setEmail(String email) { | |
57 | - this.email = email; | |
58 | - } | |
59 | - | |
60 | - public String getCelular() { | |
61 | - return celular; | |
62 | - } | |
63 | - | |
64 | - public void setCelular(String celular) { | |
65 | - this.celular = celular; | |
66 | - } | |
67 | - | |
68 | - public String getTelefone() { | |
69 | - return telefone; | |
70 | - } | |
71 | - | |
72 | - public void setTelefone(String telefone) { | |
73 | - this.telefone = telefone; | |
74 | - } | |
75 | - | |
76 | - public String getObservacao() { | |
77 | - return observacao; | |
78 | - } | |
79 | - | |
80 | - public void setObservacao(String observacao) { | |
81 | - this.observacao = observacao; | |
82 | - } | |
83 | - | |
84 | - public PessoaJuridica getAssociado() { | |
85 | - return associado; | |
86 | - } | |
87 | - | |
88 | - public void setAssociado(PessoaJuridica representado) { | |
89 | - this.associado = representado; | |
90 | - } | |
91 | - | |
92 | - public boolean isAtivo() { | |
93 | - return ativo; | |
94 | - } | |
95 | - | |
96 | - public void setAtivo(boolean ativo) { | |
97 | - this.ativo = ativo; | |
98 | - } | |
99 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | +import com.fasterxml.jackson.annotation.JsonSubTypes; | |
7 | +import com.fasterxml.jackson.annotation.JsonTypeInfo; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) | |
12 | +@JsonSubTypes({ | |
13 | + @JsonSubTypes.Type(value = PessoaFisica.class, name = "Fisica"), | |
14 | + @JsonSubTypes.Type(value = PessoaJuridica.class, name = "Juridica") } | |
15 | +) | |
16 | +public abstract class Pessoa { | |
17 | + | |
18 | + private String nome; | |
19 | + private String sigla; | |
20 | + private Endereco endereco; | |
21 | + private String email; | |
22 | + private String celular; | |
23 | + private String telefone; | |
24 | + private String observacao; | |
25 | + private boolean ativo; | |
26 | + | |
27 | + private PessoaJuridica associado; | |
28 | + | |
29 | + public String getNome() { | |
30 | + return nome; | |
31 | + } | |
32 | + | |
33 | + public void setNome(String nome) { | |
34 | + this.nome = nome; | |
35 | + } | |
36 | + | |
37 | + public String getSigla() { | |
38 | + return sigla; | |
39 | + } | |
40 | + | |
41 | + public void setSigla(String sigla) { | |
42 | + this.sigla = sigla; | |
43 | + } | |
44 | + | |
45 | + public Endereco getEndereco() { | |
46 | + return endereco; | |
47 | + } | |
48 | + | |
49 | + public void setEndereco(Endereco endereco) { | |
50 | + this.endereco = endereco; | |
51 | + } | |
52 | + | |
53 | + public String getEmail() { | |
54 | + return email; | |
55 | + } | |
56 | + | |
57 | + public void setEmail(String email) { | |
58 | + this.email = email; | |
59 | + } | |
60 | + | |
61 | + public String getCelular() { | |
62 | + return celular; | |
63 | + } | |
64 | + | |
65 | + public void setCelular(String celular) { | |
66 | + this.celular = celular; | |
67 | + } | |
68 | + | |
69 | + public String getTelefone() { | |
70 | + return telefone; | |
71 | + } | |
72 | + | |
73 | + public void setTelefone(String telefone) { | |
74 | + this.telefone = telefone; | |
75 | + } | |
76 | + | |
77 | + public String getObservacao() { | |
78 | + return observacao; | |
79 | + } | |
80 | + | |
81 | + public void setObservacao(String observacao) { | |
82 | + this.observacao = observacao; | |
83 | + } | |
84 | + | |
85 | + public PessoaJuridica getAssociado() { | |
86 | + return associado; | |
87 | + } | |
88 | + | |
89 | + public void setAssociado(PessoaJuridica representado) { | |
90 | + this.associado = representado; | |
91 | + } | |
92 | + | |
93 | + public boolean isAtivo() { | |
94 | + return ativo; | |
95 | + } | |
96 | + | |
97 | + public void setAtivo(boolean ativo) { | |
98 | + this.ativo = ativo; | |
99 | + } | |
100 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/PessoaFisica.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -import javax.xml.bind.annotation.XmlRootElement; | |
6 | - | |
7 | -import br.gov.ans.integracao.sei.modelo.enums.Sexo; | |
8 | - | |
9 | -@XmlRootElement | |
10 | -public class PessoaFisica extends Pessoa { | |
11 | - private Sexo sexo; | |
12 | - private String cpf; | |
13 | - private String rg; | |
14 | - private String orgaoEmissor; | |
15 | - private Date dataNascimento; | |
16 | - private String matricula; | |
17 | - private String matriculaOab; | |
18 | - | |
19 | - public Sexo getSexo() { | |
20 | - return sexo; | |
21 | - } | |
22 | - | |
23 | - public void setSexo(Sexo sexo) { | |
24 | - this.sexo = sexo; | |
25 | - } | |
26 | - | |
27 | - public String getCpf() { | |
28 | - return cpf; | |
29 | - } | |
30 | - | |
31 | - public void setCpf(String cpf) { | |
32 | - this.cpf = cpf; | |
33 | - } | |
34 | - | |
35 | - public String getRg() { | |
36 | - return rg; | |
37 | - } | |
38 | - | |
39 | - public void setRg(String rg) { | |
40 | - this.rg = rg; | |
41 | - } | |
42 | - | |
43 | - public String getOrgaoEmissor() { | |
44 | - return orgaoEmissor; | |
45 | - } | |
46 | - | |
47 | - public void setOrgaoEmissor(String orgaoEmissor) { | |
48 | - this.orgaoEmissor = orgaoEmissor; | |
49 | - } | |
50 | - | |
51 | - public Date getDataNascimento() { | |
52 | - return dataNascimento; | |
53 | - } | |
54 | - | |
55 | - public void setDataNascimento(Date dataNascimento) { | |
56 | - this.dataNascimento = dataNascimento; | |
57 | - } | |
58 | - | |
59 | - public String getMatricula() { | |
60 | - return matricula; | |
61 | - } | |
62 | - | |
63 | - public void setMatricula(String matricula) { | |
64 | - this.matricula = matricula; | |
65 | - } | |
66 | - | |
67 | - public String getMatriculaOab() { | |
68 | - return matriculaOab; | |
69 | - } | |
70 | - | |
71 | - public void setMatriculaOab(String oab) { | |
72 | - this.matriculaOab = oab; | |
73 | - } | |
74 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +import br.gov.ans.integracao.sei.modelo.enums.Sexo; | |
10 | + | |
11 | +@JsonInclude(content = Include.NON_NULL) | |
12 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
13 | +public class PessoaFisica extends Pessoa { | |
14 | + | |
15 | + private Sexo sexo; | |
16 | + private String cpf; | |
17 | + private String rg; | |
18 | + private String orgaoEmissor; | |
19 | + private Date dataNascimento; | |
20 | + private String matricula; | |
21 | + private String matriculaOab; | |
22 | + | |
23 | + public Sexo getSexo() { | |
24 | + return sexo; | |
25 | + } | |
26 | + | |
27 | + public void setSexo(Sexo sexo) { | |
28 | + this.sexo = sexo; | |
29 | + } | |
30 | + | |
31 | + public String getCpf() { | |
32 | + return cpf; | |
33 | + } | |
34 | + | |
35 | + public void setCpf(String cpf) { | |
36 | + this.cpf = cpf; | |
37 | + } | |
38 | + | |
39 | + public String getRg() { | |
40 | + return rg; | |
41 | + } | |
42 | + | |
43 | + public void setRg(String rg) { | |
44 | + this.rg = rg; | |
45 | + } | |
46 | + | |
47 | + public String getOrgaoEmissor() { | |
48 | + return orgaoEmissor; | |
49 | + } | |
50 | + | |
51 | + public void setOrgaoEmissor(String orgaoEmissor) { | |
52 | + this.orgaoEmissor = orgaoEmissor; | |
53 | + } | |
54 | + | |
55 | + public Date getDataNascimento() { | |
56 | + return dataNascimento; | |
57 | + } | |
58 | + | |
59 | + public void setDataNascimento(Date dataNascimento) { | |
60 | + this.dataNascimento = dataNascimento; | |
61 | + } | |
62 | + | |
63 | + public String getMatricula() { | |
64 | + return matricula; | |
65 | + } | |
66 | + | |
67 | + public void setMatricula(String matricula) { | |
68 | + this.matricula = matricula; | |
69 | + } | |
70 | + | |
71 | + public String getMatriculaOab() { | |
72 | + return matriculaOab; | |
73 | + } | |
74 | + | |
75 | + public void setMatriculaOab(String oab) { | |
76 | + this.matriculaOab = oab; | |
77 | + } | |
78 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/PessoaJuridica.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class PessoaJuridica extends Pessoa { | |
7 | - private String cnpj; | |
8 | - private String website; | |
9 | - | |
10 | - public String getCnpj() { | |
11 | - return cnpj; | |
12 | - } | |
13 | - | |
14 | - public void setCnpj(String cnpj) { | |
15 | - this.cnpj = cnpj; | |
16 | - } | |
17 | - | |
18 | - public String getWebsite() { | |
19 | - return website; | |
20 | - } | |
21 | - | |
22 | - public void setWebsite(String website) { | |
23 | - this.website = website; | |
24 | - } | |
25 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class PessoaJuridica extends Pessoa { | |
10 | + | |
11 | + private String cnpj; | |
12 | + private String website; | |
13 | + | |
14 | + public String getCnpj() { | |
15 | + return cnpj; | |
16 | + } | |
17 | + | |
18 | + public void setCnpj(String cnpj) { | |
19 | + this.cnpj = cnpj; | |
20 | + } | |
21 | + | |
22 | + public String getWebsite() { | |
23 | + return website; | |
24 | + } | |
25 | + | |
26 | + public void setWebsite(String website) { | |
27 | + this.website = website; | |
28 | + } | |
29 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ProcessoAnexado.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class ProcessoAnexado { | |
7 | - private String numero; | |
8 | - | |
9 | - public String getNumero() { | |
10 | - return numero; | |
11 | - } | |
12 | - | |
13 | - public void setNumero(String numero) { | |
14 | - this.numero = numero; | |
15 | - } | |
16 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class ProcessoAnexado { | |
10 | + | |
11 | + private String numero; | |
12 | + | |
13 | + public String getNumero() { | |
14 | + return numero; | |
15 | + } | |
16 | + | |
17 | + public void setNumero(String numero) { | |
18 | + this.numero = numero; | |
19 | + } | |
20 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ProcessoBloqueado.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class ProcessoBloqueado { | |
7 | - private String numero; | |
8 | - | |
9 | - public String getNumero() { | |
10 | - return numero; | |
11 | - } | |
12 | - | |
13 | - public void setNumero(String numero) { | |
14 | - this.numero = numero; | |
15 | - } | |
16 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class ProcessoBloqueado { | |
10 | + | |
11 | + private String numero; | |
12 | + | |
13 | + public String getNumero() { | |
14 | + return numero; | |
15 | + } | |
16 | + | |
17 | + public void setNumero(String numero) { | |
18 | + this.numero = numero; | |
19 | + } | |
20 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ProcessoRelacionado.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class ProcessoRelacionado { | |
7 | - private String numero; | |
8 | - | |
9 | - public String getNumero() { | |
10 | - return numero; | |
11 | - } | |
12 | - | |
13 | - public void setNumero(String numero) { | |
14 | - this.numero = numero; | |
15 | - } | |
16 | - | |
17 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class ProcessoRelacionado { | |
10 | + | |
11 | + private String numero; | |
12 | + | |
13 | + public String getNumero() { | |
14 | + return numero; | |
15 | + } | |
16 | + | |
17 | + public void setNumero(String numero) { | |
18 | + this.numero = numero; | |
19 | + } | |
20 | + | |
21 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ProcessoResumido.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -public class ProcessoResumido { | |
6 | - | |
7 | - private String numero; | |
8 | - private String numeroFormatado; | |
9 | - private String descricao; | |
10 | - private String unidade; | |
11 | - private Date dataGeracao; | |
12 | - | |
13 | - public String getNumero() { | |
14 | - return numero; | |
15 | - } | |
16 | - | |
17 | - public void setNumero(String numero) { | |
18 | - this.numero = numero; | |
19 | - } | |
20 | - | |
21 | - public String getNumeroFormatado() { | |
22 | - return numeroFormatado; | |
23 | - } | |
24 | - | |
25 | - public void setNumeroFormatado(String numeroFormatado) { | |
26 | - this.numeroFormatado = numeroFormatado; | |
27 | - } | |
28 | - | |
29 | - public String getDescricao() { | |
30 | - return descricao; | |
31 | - } | |
32 | - | |
33 | - public void setDescricao(String descricao) { | |
34 | - this.descricao = descricao; | |
35 | - } | |
36 | - | |
37 | - public String getUnidade() { | |
38 | - return unidade; | |
39 | - } | |
40 | - | |
41 | - public void setUnidade(String unidade) { | |
42 | - this.unidade = unidade; | |
43 | - } | |
44 | - | |
45 | - public Date getDataGeracao() { | |
46 | - return dataGeracao; | |
47 | - } | |
48 | - | |
49 | - public void setDataGeracao(Date dataGeracao) { | |
50 | - this.dataGeracao = dataGeracao; | |
51 | - } | |
52 | - | |
53 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +public class ProcessoResumido { | |
12 | + | |
13 | + private String numero; | |
14 | + private String numeroFormatado; | |
15 | + private String descricao; | |
16 | + private String unidade; | |
17 | + private Date dataGeracao; | |
18 | + private Tipo tipo; | |
19 | + | |
20 | + public String getNumero() { | |
21 | + return numero; | |
22 | + } | |
23 | + | |
24 | + public void setNumero(String numero) { | |
25 | + this.numero = numero; | |
26 | + } | |
27 | + | |
28 | + public String getNumeroFormatado() { | |
29 | + return numeroFormatado; | |
30 | + } | |
31 | + | |
32 | + public void setNumeroFormatado(String numeroFormatado) { | |
33 | + this.numeroFormatado = numeroFormatado; | |
34 | + } | |
35 | + | |
36 | + public String getDescricao() { | |
37 | + return descricao; | |
38 | + } | |
39 | + | |
40 | + public void setDescricao(String descricao) { | |
41 | + this.descricao = descricao; | |
42 | + } | |
43 | + | |
44 | + public String getUnidade() { | |
45 | + return unidade; | |
46 | + } | |
47 | + | |
48 | + public void setUnidade(String unidade) { | |
49 | + this.unidade = unidade; | |
50 | + } | |
51 | + | |
52 | + public Date getDataGeracao() { | |
53 | + return dataGeracao; | |
54 | + } | |
55 | + | |
56 | + public void setDataGeracao(Date dataGeracao) { | |
57 | + this.dataGeracao = dataGeracao; | |
58 | + } | |
59 | + | |
60 | + public Tipo getTipo() { | |
61 | + return tipo; | |
62 | + } | |
63 | + | |
64 | + public void setTipo(Tipo tipo) { | |
65 | + this.tipo = tipo; | |
66 | + } | |
67 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ResultadoConsultaDocumento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -import br.gov.ans.integracao.sei.client.RetornoConsultaDocumento; | |
6 | - | |
7 | -@XmlRootElement | |
8 | -public class ResultadoConsultaDocumento { | |
9 | - | |
10 | - private DocumentoSipar documentoSIPAR; | |
11 | - private RetornoConsultaDocumento documentoSEI; | |
12 | - | |
13 | - public DocumentoSipar getDocumentoSIPAR() { | |
14 | - return documentoSIPAR; | |
15 | - } | |
16 | - | |
17 | - public void setDocumentoSIPAR(DocumentoSipar documentoSIPAR) { | |
18 | - this.documentoSIPAR = documentoSIPAR; | |
19 | - } | |
20 | - | |
21 | - public RetornoConsultaDocumento getDocumentoSEI() { | |
22 | - return documentoSEI; | |
23 | - } | |
24 | - | |
25 | - public void setDocumentoSEI(RetornoConsultaDocumento documentoSEI) { | |
26 | - this.documentoSEI = documentoSEI; | |
27 | - } | |
28 | - | |
29 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +import br.gov.ans.integracao.sei.client.RetornoConsultaDocumento; | |
8 | +import br.gov.ans.integracao.sipar.modelo.DocumentoSipar; | |
9 | + | |
10 | +@JsonInclude(content = Include.NON_NULL) | |
11 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
12 | +public class ResultadoConsultaDocumento { | |
13 | + | |
14 | + private DocumentoSipar documentoSIPAR; | |
15 | + private RetornoConsultaDocumento documentoSEI; | |
16 | + | |
17 | + public DocumentoSipar getDocumentoSIPAR() { | |
18 | + return documentoSIPAR; | |
19 | + } | |
20 | + | |
21 | + public void setDocumentoSIPAR(DocumentoSipar documentoSIPAR) { | |
22 | + this.documentoSIPAR = documentoSIPAR; | |
23 | + } | |
24 | + | |
25 | + public RetornoConsultaDocumento getDocumentoSEI() { | |
26 | + return documentoSEI; | |
27 | + } | |
28 | + | |
29 | + public void setDocumentoSEI(RetornoConsultaDocumento documentoSEI) { | |
30 | + this.documentoSEI = documentoSEI; | |
31 | + } | |
32 | + | |
33 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ResultadoConsultaProcesso.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -import br.gov.ans.integracao.sei.client.RetornoConsultaProcedimento; | |
6 | - | |
7 | -@XmlRootElement | |
8 | -public class ResultadoConsultaProcesso { | |
9 | - | |
10 | - private DocumentoSipar sipar; | |
11 | - private RetornoConsultaProcedimento sei; | |
12 | - | |
13 | - public DocumentoSipar getSipar() { | |
14 | - return sipar; | |
15 | - } | |
16 | - | |
17 | - public void setSipar(DocumentoSipar sipar) { | |
18 | - this.sipar = sipar; | |
19 | - } | |
20 | - | |
21 | - public RetornoConsultaProcedimento getSei() { | |
22 | - return sei; | |
23 | - } | |
24 | - | |
25 | - public void setSei(RetornoConsultaProcedimento sei) { | |
26 | - this.sei = sei; | |
27 | - } | |
28 | - | |
29 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +import br.gov.ans.integracao.sei.client.RetornoConsultaProcedimento; | |
8 | +import br.gov.ans.integracao.sipar.modelo.DocumentoSipar; | |
9 | + | |
10 | +@JsonInclude(content = Include.NON_NULL) | |
11 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
12 | +public class ResultadoConsultaProcesso { | |
13 | + | |
14 | + private DocumentoSipar sipar; | |
15 | + private RetornoConsultaProcedimento sei; | |
16 | + | |
17 | + public DocumentoSipar getSipar() { | |
18 | + return sipar; | |
19 | + } | |
20 | + | |
21 | + public void setSipar(DocumentoSipar sipar) { | |
22 | + this.sipar = sipar; | |
23 | + } | |
24 | + | |
25 | + public RetornoConsultaProcedimento getSei() { | |
26 | + return sei; | |
27 | + } | |
28 | + | |
29 | + public void setSei(RetornoConsultaProcedimento sei) { | |
30 | + this.sei = sei; | |
31 | + } | |
32 | + | |
33 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/ResultadoInclusaoDocumento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -import br.gov.ans.integracao.sei.client.RetornoInclusaoDocumento; | |
6 | - | |
7 | -@XmlRootElement | |
8 | -public class ResultadoInclusaoDocumento { | |
9 | - private RetornoInclusaoDocumento retorno; | |
10 | - private String mensagem; | |
11 | - | |
12 | - public RetornoInclusaoDocumento getRetorno() { | |
13 | - return retorno; | |
14 | - } | |
15 | - public void setRetorno(RetornoInclusaoDocumento retorno) { | |
16 | - this.retorno = retorno; | |
17 | - } | |
18 | - public String getMensagem() { | |
19 | - return mensagem; | |
20 | - } | |
21 | - public void setMensagem(String mensagem) { | |
22 | - this.mensagem = mensagem; | |
23 | - } | |
24 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +import br.gov.ans.integracao.sei.client.RetornoInclusaoDocumento; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +public class ResultadoInclusaoDocumento { | |
12 | + | |
13 | + private RetornoInclusaoDocumento retorno; | |
14 | + private String mensagem; | |
15 | + | |
16 | + public RetornoInclusaoDocumento getRetorno() { | |
17 | + return retorno; | |
18 | + } | |
19 | + public void setRetorno(RetornoInclusaoDocumento retorno) { | |
20 | + this.retorno = retorno; | |
21 | + } | |
22 | + public String getMensagem() { | |
23 | + return mensagem; | |
24 | + } | |
25 | + public void setMensagem(String mensagem) { | |
26 | + this.mensagem = mensagem; | |
27 | + } | |
28 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/SobrestamentoProcesso.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class SobrestamentoProcesso { | |
7 | - private String processo; | |
8 | - private String motivo; | |
9 | - private String processoVinculado; | |
10 | - | |
11 | - public String getMotivo() { | |
12 | - return motivo; | |
13 | - } | |
14 | - | |
15 | - public void setMotivo(String motivo) { | |
16 | - this.motivo = motivo; | |
17 | - } | |
18 | - | |
19 | - public String getProcessoVinculado() { | |
20 | - return processoVinculado; | |
21 | - } | |
22 | - | |
23 | - public void setProcessoVinculado(String processoVinculado) { | |
24 | - this.processoVinculado = processoVinculado; | |
25 | - } | |
26 | - | |
27 | - public String getProcesso() { | |
28 | - return processo; | |
29 | - } | |
30 | - | |
31 | - public void setProcesso(String processo) { | |
32 | - this.processo = processo; | |
33 | - } | |
34 | - | |
35 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class SobrestamentoProcesso { | |
10 | + | |
11 | + private String processo; | |
12 | + private String motivo; | |
13 | + private String processoVinculado; | |
14 | + | |
15 | + public String getMotivo() { | |
16 | + return motivo; | |
17 | + } | |
18 | + | |
19 | + public void setMotivo(String motivo) { | |
20 | + this.motivo = motivo; | |
21 | + } | |
22 | + | |
23 | + public String getProcessoVinculado() { | |
24 | + return processoVinculado; | |
25 | + } | |
26 | + | |
27 | + public void setProcessoVinculado(String processoVinculado) { | |
28 | + this.processoVinculado = processoVinculado; | |
29 | + } | |
30 | + | |
31 | + public String getProcesso() { | |
32 | + return processo; | |
33 | + } | |
34 | + | |
35 | + public void setProcesso(String processo) { | |
36 | + this.processo = processo; | |
37 | + } | |
38 | + | |
39 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Tarefa.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -public class Tarefa { | |
4 | - | |
5 | - private Long identificador; | |
6 | - | |
7 | - private String nome; | |
8 | - | |
9 | - private Long identicadorTarefaModulo; | |
10 | - | |
11 | - private String historicoResumido; | |
12 | - | |
13 | - private String historicoCompleto; | |
14 | - | |
15 | - private String fecharAndamentosAbertos; | |
16 | - | |
17 | - private String lancarAndamentoFechado; | |
18 | - | |
19 | - private String permiteProcessoFechado; | |
20 | - | |
21 | - public Long getIdentificador() { | |
22 | - return identificador; | |
23 | - } | |
24 | - | |
25 | - public void setIdentificador(Long identificador) { | |
26 | - this.identificador = identificador; | |
27 | - } | |
28 | - | |
29 | - public String getNome() { | |
30 | - return nome; | |
31 | - } | |
32 | - | |
33 | - public void setNome(String nome) { | |
34 | - this.nome = nome; | |
35 | - } | |
36 | - | |
37 | - public Long getIdenticadorTarefaModulo() { | |
38 | - return identicadorTarefaModulo; | |
39 | - } | |
40 | - | |
41 | - public void setIdenticadorTarefaModulo(Long identicadorTarefaModulo) { | |
42 | - this.identicadorTarefaModulo = identicadorTarefaModulo; | |
43 | - } | |
44 | - | |
45 | - public String getHistoricoResumido() { | |
46 | - return historicoResumido; | |
47 | - } | |
48 | - | |
49 | - public void setHistoricoResumido(String historicoResumido) { | |
50 | - this.historicoResumido = historicoResumido; | |
51 | - } | |
52 | - | |
53 | - public String getHistoricoCompleto() { | |
54 | - return historicoCompleto; | |
55 | - } | |
56 | - | |
57 | - public void setHistoricoCompleto(String historicoCompleto) { | |
58 | - this.historicoCompleto = historicoCompleto; | |
59 | - } | |
60 | - | |
61 | - public String getFecharAndamentosAbertos() { | |
62 | - return fecharAndamentosAbertos; | |
63 | - } | |
64 | - | |
65 | - public void setFecharAndamentosAbertos(String fecharAndamentosAbertos) { | |
66 | - this.fecharAndamentosAbertos = fecharAndamentosAbertos; | |
67 | - } | |
68 | - | |
69 | - public String getLancarAndamentoFechado() { | |
70 | - return lancarAndamentoFechado; | |
71 | - } | |
72 | - | |
73 | - public void setLancarAndamentoFechado(String lancarAndamentoFechado) { | |
74 | - this.lancarAndamentoFechado = lancarAndamentoFechado; | |
75 | - } | |
76 | - | |
77 | - public String getPermiteProcessoFechado() { | |
78 | - return permiteProcessoFechado; | |
79 | - } | |
80 | - | |
81 | - public void setPermiteProcessoFechado(String permiteProcessoFechado) { | |
82 | - this.permiteProcessoFechado = permiteProcessoFechado; | |
83 | - } | |
84 | - | |
85 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class Tarefa { | |
10 | + | |
11 | + private Long identificador; | |
12 | + private String nome; | |
13 | + private Long identicadorTarefaModulo; | |
14 | + private String historicoResumido; | |
15 | + private String historicoCompleto; | |
16 | + private String fecharAndamentosAbertos; | |
17 | + private String lancarAndamentoFechado; | |
18 | + private String permiteProcessoFechado; | |
19 | + | |
20 | + public Long getIdentificador() { | |
21 | + return identificador; | |
22 | + } | |
23 | + | |
24 | + public void setIdentificador(Long identificador) { | |
25 | + this.identificador = identificador; | |
26 | + } | |
27 | + | |
28 | + public String getNome() { | |
29 | + return nome; | |
30 | + } | |
31 | + | |
32 | + public void setNome(String nome) { | |
33 | + this.nome = nome; | |
34 | + } | |
35 | + | |
36 | + public Long getIdenticadorTarefaModulo() { | |
37 | + return identicadorTarefaModulo; | |
38 | + } | |
39 | + | |
40 | + public void setIdenticadorTarefaModulo(Long identicadorTarefaModulo) { | |
41 | + this.identicadorTarefaModulo = identicadorTarefaModulo; | |
42 | + } | |
43 | + | |
44 | + public String getHistoricoResumido() { | |
45 | + return historicoResumido; | |
46 | + } | |
47 | + | |
48 | + public void setHistoricoResumido(String historicoResumido) { | |
49 | + this.historicoResumido = historicoResumido; | |
50 | + } | |
51 | + | |
52 | + public String getHistoricoCompleto() { | |
53 | + return historicoCompleto; | |
54 | + } | |
55 | + | |
56 | + public void setHistoricoCompleto(String historicoCompleto) { | |
57 | + this.historicoCompleto = historicoCompleto; | |
58 | + } | |
59 | + | |
60 | + public String getFecharAndamentosAbertos() { | |
61 | + return fecharAndamentosAbertos; | |
62 | + } | |
63 | + | |
64 | + public void setFecharAndamentosAbertos(String fecharAndamentosAbertos) { | |
65 | + this.fecharAndamentosAbertos = fecharAndamentosAbertos; | |
66 | + } | |
67 | + | |
68 | + public String getLancarAndamentoFechado() { | |
69 | + return lancarAndamentoFechado; | |
70 | + } | |
71 | + | |
72 | + public void setLancarAndamentoFechado(String lancarAndamentoFechado) { | |
73 | + this.lancarAndamentoFechado = lancarAndamentoFechado; | |
74 | + } | |
75 | + | |
76 | + public String getPermiteProcessoFechado() { | |
77 | + return permiteProcessoFechado; | |
78 | + } | |
79 | + | |
80 | + public void setPermiteProcessoFechado(String permiteProcessoFechado) { | |
81 | + this.permiteProcessoFechado = permiteProcessoFechado; | |
82 | + } | |
83 | + | |
84 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Template.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import java.util.Date; | |
4 | - | |
5 | -import javax.xml.bind.annotation.XmlRootElement; | |
6 | - | |
7 | -@XmlRootElement | |
8 | -public class Template { | |
9 | - private String nome; | |
10 | - private Date dataModificacao; | |
11 | - private String conteudo; | |
12 | - | |
13 | - public String getNome() { | |
14 | - return nome; | |
15 | - } | |
16 | - | |
17 | - public void setNome(String nome) { | |
18 | - this.nome = nome; | |
19 | - } | |
20 | - | |
21 | - public Date getDataModificacao() { | |
22 | - return dataModificacao; | |
23 | - } | |
24 | - | |
25 | - public void setDataModificacao(Date dataModificacao) { | |
26 | - this.dataModificacao = dataModificacao; | |
27 | - } | |
28 | - | |
29 | - public String getConteudo() { | |
30 | - return conteudo; | |
31 | - } | |
32 | - | |
33 | - public void setConteudo(String conteudo) { | |
34 | - this.conteudo = conteudo; | |
35 | - } | |
36 | - | |
37 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
6 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
8 | + | |
9 | +@JsonInclude(content = Include.NON_NULL) | |
10 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
11 | +public class Template { | |
12 | + | |
13 | + private String nome; | |
14 | + private Date dataModificacao; | |
15 | + private String conteudo; | |
16 | + | |
17 | + public String getNome() { | |
18 | + return nome; | |
19 | + } | |
20 | + | |
21 | + public void setNome(String nome) { | |
22 | + this.nome = nome; | |
23 | + } | |
24 | + | |
25 | + public Date getDataModificacao() { | |
26 | + return dataModificacao; | |
27 | + } | |
28 | + | |
29 | + public void setDataModificacao(Date dataModificacao) { | |
30 | + this.dataModificacao = dataModificacao; | |
31 | + } | |
32 | + | |
33 | + public String getConteudo() { | |
34 | + return conteudo; | |
35 | + } | |
36 | + | |
37 | + public void setConteudo(String conteudo) { | |
38 | + this.conteudo = conteudo; | |
39 | + } | |
40 | + | |
41 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Tipo.java
0 → 100644
... | ... | @@ -0,0 +1,29 @@ |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class Tipo { | |
10 | + | |
11 | + private String codigo; | |
12 | + private String nome; | |
13 | + | |
14 | + public String getCodigo() { | |
15 | + return codigo; | |
16 | + } | |
17 | + | |
18 | + public void setCodigo(String codigo) { | |
19 | + this.codigo = codigo; | |
20 | + } | |
21 | + | |
22 | + public String getNome() { | |
23 | + return nome; | |
24 | + } | |
25 | + | |
26 | + public void setNome(String nome) { | |
27 | + this.nome = nome; | |
28 | + } | |
29 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/TipoContato.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -public class TipoContato { | |
4 | - | |
5 | - private Long id; | |
6 | - | |
7 | - private String nome; | |
8 | - | |
9 | - private String descricao; | |
10 | - | |
11 | - public Long getId() { | |
12 | - return id; | |
13 | - } | |
14 | - | |
15 | - public void setId(Long id) { | |
16 | - this.id = id; | |
17 | - } | |
18 | - | |
19 | - public String getNome() { | |
20 | - return nome; | |
21 | - } | |
22 | - | |
23 | - public void setNome(String nome) { | |
24 | - this.nome = nome; | |
25 | - } | |
26 | - | |
27 | - public String getDescricao() { | |
28 | - return descricao; | |
29 | - } | |
30 | - | |
31 | - public void setDescricao(String descricao) { | |
32 | - this.descricao = descricao; | |
33 | - } | |
34 | - | |
35 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class TipoContato { | |
10 | + | |
11 | + private Long id; | |
12 | + private String nome; | |
13 | + private String descricao; | |
14 | + | |
15 | + public Long getId() { | |
16 | + return id; | |
17 | + } | |
18 | + | |
19 | + public void setId(Long id) { | |
20 | + this.id = id; | |
21 | + } | |
22 | + | |
23 | + public String getNome() { | |
24 | + return nome; | |
25 | + } | |
26 | + | |
27 | + public void setNome(String nome) { | |
28 | + this.nome = nome; | |
29 | + } | |
30 | + | |
31 | + public String getDescricao() { | |
32 | + return descricao; | |
33 | + } | |
34 | + | |
35 | + public void setDescricao(String descricao) { | |
36 | + this.descricao = descricao; | |
37 | + } | |
38 | + | |
39 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/TipoDocumento.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class TipoDocumento { | |
7 | - private String identificador; | |
8 | - private String nome; | |
9 | - private String aplicabilidade; | |
10 | - | |
11 | - public TipoDocumento(){} | |
12 | - | |
13 | - public TipoDocumento(String identificador, String nome, String aplicabilidade){ | |
14 | - this.identificador = identificador; | |
15 | - this.nome = nome; | |
16 | - this.aplicabilidade = aplicabilidade; | |
17 | - } | |
18 | - | |
19 | - public String getIdentificador() { | |
20 | - return identificador; | |
21 | - } | |
22 | - public void setIdentificador(String identificador) { | |
23 | - this.identificador = identificador; | |
24 | - } | |
25 | - public String getNome() { | |
26 | - return nome; | |
27 | - } | |
28 | - public void setNome(String nome) { | |
29 | - this.nome = nome; | |
30 | - } | |
31 | - | |
32 | - public String getAplicabilidade() { | |
33 | - return aplicabilidade; | |
34 | - } | |
35 | - | |
36 | - public void setAplicabilidade(String aplicabilidade) { | |
37 | - this.aplicabilidade = aplicabilidade; | |
38 | - } | |
39 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class TipoDocumento { | |
10 | + | |
11 | + private String identificador; | |
12 | + private String nome; | |
13 | + private String aplicabilidade; | |
14 | + | |
15 | + public TipoDocumento(){} | |
16 | + | |
17 | + public TipoDocumento(String identificador, String nome, String aplicabilidade){ | |
18 | + this.identificador = identificador; | |
19 | + this.nome = nome; | |
20 | + this.aplicabilidade = aplicabilidade; | |
21 | + } | |
22 | + | |
23 | + public String getIdentificador() { | |
24 | + return identificador; | |
25 | + } | |
26 | + public void setIdentificador(String identificador) { | |
27 | + this.identificador = identificador; | |
28 | + } | |
29 | + public String getNome() { | |
30 | + return nome; | |
31 | + } | |
32 | + public void setNome(String nome) { | |
33 | + this.nome = nome; | |
34 | + } | |
35 | + | |
36 | + public String getAplicabilidade() { | |
37 | + return aplicabilidade; | |
38 | + } | |
39 | + | |
40 | + public void setAplicabilidade(String aplicabilidade) { | |
41 | + this.aplicabilidade = aplicabilidade; | |
42 | + } | |
43 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/UnidadeTarefa.java
0 → 100644
... | ... | @@ -0,0 +1,40 @@ |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +import com.fasterxml.jackson.annotation.JsonIgnore; | |
6 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
7 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
8 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
9 | + | |
10 | +import br.gov.ans.integracao.sei.client.Unidade; | |
11 | + | |
12 | +@JsonInclude(content = Include.NON_NULL) | |
13 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
14 | +public class UnidadeTarefa extends Unidade{ | |
15 | + | |
16 | + private static final long serialVersionUID = 1L; | |
17 | + | |
18 | + private int tarefa; | |
19 | + private Date data; | |
20 | + | |
21 | + @JsonIgnore | |
22 | + public int getTarefa() { | |
23 | + return tarefa; | |
24 | + } | |
25 | + | |
26 | + @JsonIgnore | |
27 | + public void setTarefa(int tarefa) { | |
28 | + this.tarefa = tarefa; | |
29 | + } | |
30 | + | |
31 | + @JsonIgnore | |
32 | + public Date getData() { | |
33 | + return data; | |
34 | + } | |
35 | + | |
36 | + @JsonIgnore | |
37 | + public void setData(Date data) { | |
38 | + this.data = data; | |
39 | + } | |
40 | +} | |
0 | 41 | \ No newline at end of file | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/Usuario.java
1 | -package br.gov.ans.integracao.sei.modelo; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public class Usuario { | |
7 | - private String codigo; | |
8 | - private String nome; | |
9 | - private String login; | |
10 | - | |
11 | - public String getCodigo() { | |
12 | - return codigo; | |
13 | - } | |
14 | - public void setCodigo(String codigo) { | |
15 | - this.codigo = codigo; | |
16 | - } | |
17 | - public String getNome() { | |
18 | - return nome; | |
19 | - } | |
20 | - public void setNome(String nome) { | |
21 | - this.nome = nome; | |
22 | - } | |
23 | - public String getLogin() { | |
24 | - return login; | |
25 | - } | |
26 | - public void setLogin(String login) { | |
27 | - this.login = login; | |
28 | - } | |
29 | - | |
30 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo; | |
2 | + | |
3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
5 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
6 | + | |
7 | +@JsonInclude(content = Include.NON_NULL) | |
8 | +@JsonIgnoreProperties(ignoreUnknown = true) | |
9 | +public class Usuario { | |
10 | + | |
11 | + private String codigo; | |
12 | + private String nome; | |
13 | + private String login; | |
14 | + | |
15 | + public String getCodigo() { | |
16 | + return codigo; | |
17 | + } | |
18 | + public void setCodigo(String codigo) { | |
19 | + this.codigo = codigo; | |
20 | + } | |
21 | + public String getNome() { | |
22 | + return nome; | |
23 | + } | |
24 | + public void setNome(String nome) { | |
25 | + this.nome = nome; | |
26 | + } | |
27 | + public String getLogin() { | |
28 | + return login; | |
29 | + } | |
30 | + public void setLogin(String login) { | |
31 | + this.login = login; | |
32 | + } | |
33 | + | |
34 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/enums/Acao.java
1 | -package br.gov.ans.integracao.sei.modelo.enums; | |
2 | - | |
3 | -public enum Acao { | |
4 | - ALTERAR_INCLUIR("A"), | |
5 | - EXCLUIR("E"), | |
6 | - DESATIVAR("D"), | |
7 | - REATIVAR("R"); | |
8 | - | |
9 | - private String codigoAcao; | |
10 | - | |
11 | - private Acao(String codigoAcao){ | |
12 | - this.codigoAcao = codigoAcao; | |
13 | - } | |
14 | - | |
15 | - public String getCodigoAcao() { | |
16 | - return codigoAcao; | |
17 | - } | |
18 | - | |
19 | - public void setCodigoAcao(String codigoAcao) { | |
20 | - this.codigoAcao = codigoAcao; | |
21 | - } | |
22 | - | |
23 | - @Override | |
24 | - public String toString(){ | |
25 | - return codigoAcao; | |
26 | - } | |
27 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo.enums; | |
2 | + | |
3 | +public enum Acao { | |
4 | + ALTERAR_INCLUIR("A"), | |
5 | + EXCLUIR("E"), | |
6 | + DESATIVAR("D"), | |
7 | + REATIVAR("R"); | |
8 | + | |
9 | + private String codigoAcao; | |
10 | + | |
11 | + private Acao(String codigoAcao){ | |
12 | + this.codigoAcao = codigoAcao; | |
13 | + } | |
14 | + | |
15 | + public String getCodigoAcao() { | |
16 | + return codigoAcao; | |
17 | + } | |
18 | + | |
19 | + @Override | |
20 | + public String toString(){ | |
21 | + return codigoAcao; | |
22 | + } | |
23 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/enums/Sexo.java
1 | -package br.gov.ans.integracao.sei.modelo.enums; | |
2 | - | |
3 | -public enum Sexo { | |
4 | - FEMININO("F"),MASCULINO("M"); | |
5 | - | |
6 | - private String codigo; | |
7 | - | |
8 | - private Sexo(String codigo) { | |
9 | - this.codigo = codigo; | |
10 | - } | |
11 | - | |
12 | - public String getCodigo(){ | |
13 | - return codigo; | |
14 | - } | |
15 | - | |
16 | - public static Sexo getByCodigo(String codigo){ | |
17 | - if("F".equals(codigo)){ | |
18 | - return Sexo.FEMININO; | |
19 | - } | |
20 | - | |
21 | - return Sexo.MASCULINO; | |
22 | - } | |
23 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo.enums; | |
2 | + | |
3 | +public enum Sexo { | |
4 | + FEMININO("F"),MASCULINO("M"); | |
5 | + | |
6 | + private String codigo; | |
7 | + | |
8 | + private Sexo(String codigo) { | |
9 | + this.codigo = codigo; | |
10 | + } | |
11 | + | |
12 | + public String getCodigo(){ | |
13 | + return codigo; | |
14 | + } | |
15 | + | |
16 | + public static Sexo getByCodigo(String codigo){ | |
17 | + if("F".equals(codigo)){ | |
18 | + return Sexo.FEMININO; | |
19 | + } | |
20 | + | |
21 | + return Sexo.MASCULINO; | |
22 | + } | |
23 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/enums/TipoBloco.java
1 | -package br.gov.ans.integracao.sei.modelo.enums; | |
2 | - | |
3 | -public enum TipoBloco{ | |
4 | - ASSINATURA("A"), REUNIAO("R"), INTERNO("I"); | |
5 | - | |
6 | - private String codigo; | |
7 | - | |
8 | - private TipoBloco(String codigo){ | |
9 | - this.codigo = codigo; | |
10 | - } | |
11 | - | |
12 | - public String getCodigo(){ | |
13 | - return this.codigo; | |
14 | - } | |
15 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo.enums; | |
2 | + | |
3 | +public enum TipoBloco{ | |
4 | + ASSINATURA("A"), REUNIAO("R"), INTERNO("I"); | |
5 | + | |
6 | + private String codigo; | |
7 | + | |
8 | + private TipoBloco(String codigo){ | |
9 | + this.codigo = codigo; | |
10 | + } | |
11 | + | |
12 | + public String getCodigo(){ | |
13 | + return this.codigo; | |
14 | + } | |
15 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/enums/TipoContato.java
1 | -package br.gov.ans.integracao.sei.modelo.enums; | |
2 | - | |
3 | -import javax.xml.bind.annotation.XmlRootElement; | |
4 | - | |
5 | -@XmlRootElement | |
6 | -public enum TipoContato { | |
7 | - usuarios_abc("1"), | |
8 | - sistemas("2"), | |
9 | - usuarios_externos("3"), | |
10 | - temporarios("4"), | |
11 | - usuarios_externos_ans("6"), | |
12 | - operadoras("7"), | |
13 | - unidades_abc("16"), | |
14 | - usuarios_ans("17"), | |
15 | - unidades_ans("18"), | |
16 | - orgaos("19"); | |
17 | - | |
18 | - String codigo; | |
19 | - | |
20 | - private TipoContato(String codigo) { | |
21 | - this.codigo = codigo; | |
22 | - } | |
23 | - | |
24 | - public String getCodigo(){ | |
25 | - return codigo; | |
26 | - } | |
27 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo.enums; | |
2 | + | |
3 | +public enum TipoContato { | |
4 | + usuarios_abc("1"), | |
5 | + sistemas("2"), | |
6 | + usuarios_externos("3"), | |
7 | + temporarios("4"), | |
8 | + usuarios_externos_ans("6"), | |
9 | + operadoras("7"), | |
10 | + unidades_abc("16"), | |
11 | + usuarios_ans("17"), | |
12 | + unidades_ans("18"), | |
13 | + orgaos("19"); | |
14 | + | |
15 | + String codigo; | |
16 | + | |
17 | + private TipoContato(String codigo) { | |
18 | + this.codigo = codigo; | |
19 | + } | |
20 | + | |
21 | + public String getCodigo(){ | |
22 | + return codigo; | |
23 | + } | |
24 | +} | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/enums/TipoPessoa.java
1 | -package br.gov.ans.integracao.sei.modelo.enums; | |
2 | - | |
3 | -public enum TipoPessoa { | |
4 | - FISICA("F"),JURIDICA("J"); | |
5 | - | |
6 | - private String codigo; | |
7 | - | |
8 | - private TipoPessoa(String codigo) { | |
9 | - this.codigo = codigo; | |
10 | - } | |
11 | - | |
12 | - public String getCodigo(){ | |
13 | - return codigo; | |
14 | - } | |
15 | - | |
16 | - public static TipoPessoa getByCodigo(String codigo){ | |
17 | - if("F".equals(codigo)){ | |
18 | - return TipoPessoa.FISICA; | |
19 | - } | |
20 | - | |
21 | - return TipoPessoa.JURIDICA; | |
22 | - } | |
23 | -} | |
1 | +package br.gov.ans.integracao.sei.modelo.enums; | |
2 | + | |
3 | +public enum TipoPessoa { | |
4 | + FISICA("F"),JURIDICA("J"); | |
5 | + | |
6 | + private String codigo; | |
7 | + | |
8 | + private TipoPessoa(String codigo) { | |
9 | + this.codigo = codigo; | |
10 | + } | |
11 | + | |
12 | + public String getCodigo(){ | |
13 | + return codigo; | |
14 | + } | |
15 | + | |
16 | + public static TipoPessoa getByCodigo(String codigo){ | |
17 | + if("F".equals(codigo)){ | |
18 | + return TipoPessoa.FISICA; | |
19 | + } | |
20 | + | |
21 | + return TipoPessoa.JURIDICA; | |
22 | + } | |
23 | +} | ... | ... |