Commit 7404a3a1f34776adb8cee08431ea7e36d4fdf92f
0 parents
Exists in
master
Criação de estrutura para a ans-commons-sei dentro do repositório de bibliotecas.
Showing
43 changed files
with
5416 additions
and
0 deletions
Show diff stats
1 | +++ a/.classpath | ||
@@ -0,0 +1,36 @@ | @@ -0,0 +1,36 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<classpath> | ||
3 | + <classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
4 | + <attributes> | ||
5 | + <attribute name="optional" value="true"/> | ||
6 | + <attribute name="maven.pomderived" value="true"/> | ||
7 | + </attributes> | ||
8 | + </classpathentry> | ||
9 | + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
10 | + <attributes> | ||
11 | + <attribute name="maven.pomderived" value="true"/> | ||
12 | + </attributes> | ||
13 | + </classpathentry> | ||
14 | + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
15 | + <attributes> | ||
16 | + <attribute name="optional" value="true"/> | ||
17 | + <attribute name="maven.pomderived" value="true"/> | ||
18 | + </attributes> | ||
19 | + </classpathentry> | ||
20 | + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> | ||
21 | + <attributes> | ||
22 | + <attribute name="maven.pomderived" value="true"/> | ||
23 | + </attributes> | ||
24 | + </classpathentry> | ||
25 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_45"> | ||
26 | + <attributes> | ||
27 | + <attribute name="maven.pomderived" value="true"/> | ||
28 | + </attributes> | ||
29 | + </classpathentry> | ||
30 | + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
31 | + <attributes> | ||
32 | + <attribute name="maven.pomderived" value="true"/> | ||
33 | + </attributes> | ||
34 | + </classpathentry> | ||
35 | + <classpathentry kind="output" path="target/classes"/> | ||
36 | +</classpath> |
1 | +++ a/.project | ||
@@ -0,0 +1,29 @@ | @@ -0,0 +1,29 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<projectDescription> | ||
3 | + <name>ans-commons-sei</name> | ||
4 | + <comment></comment> | ||
5 | + <projects> | ||
6 | + </projects> | ||
7 | + <buildSpec> | ||
8 | + <buildCommand> | ||
9 | + <name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
10 | + <arguments> | ||
11 | + </arguments> | ||
12 | + </buildCommand> | ||
13 | + <buildCommand> | ||
14 | + <name>org.eclipse.jdt.core.javabuilder</name> | ||
15 | + <arguments> | ||
16 | + </arguments> | ||
17 | + </buildCommand> | ||
18 | + <buildCommand> | ||
19 | + <name>org.eclipse.m2e.core.maven2Builder</name> | ||
20 | + <arguments> | ||
21 | + </arguments> | ||
22 | + </buildCommand> | ||
23 | + </buildSpec> | ||
24 | + <natures> | ||
25 | + <nature>org.eclipse.jdt.core.javanature</nature> | ||
26 | + <nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
27 | + <nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
28 | + </natures> | ||
29 | +</projectDescription> |
1 | +++ a/.settings/org.eclipse.core.resources.prefs | ||
@@ -0,0 +1,25 @@ | @@ -0,0 +1,25 @@ | ||
1 | +eclipse.preferences.version=1 | ||
2 | +encoding//src/main/java/br/gov/ans/sei/modelo/Andamento.java=UTF-8 | ||
3 | +encoding//src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java=UTF-8 | ||
4 | +encoding//src/main/java/br/gov/ans/sei/modelo/Assinatura.java=UTF-8 | ||
5 | +encoding//src/main/java/br/gov/ans/sei/modelo/Assunto.java=UTF-8 | ||
6 | +encoding//src/main/java/br/gov/ans/sei/modelo/Destinatario.java=UTF-8 | ||
7 | +encoding//src/main/java/br/gov/ans/sei/modelo/Documento.java=UTF-8 | ||
8 | +encoding//src/main/java/br/gov/ans/sei/modelo/Interessado.java=UTF-8 | ||
9 | +encoding//src/main/java/br/gov/ans/sei/modelo/Observacao.java=UTF-8 | ||
10 | +encoding//src/main/java/br/gov/ans/sei/modelo/Procedimento.java=UTF-8 | ||
11 | +encoding//src/main/java/br/gov/ans/sei/modelo/ProcedimentoResumido.java=UTF-8 | ||
12 | +encoding//src/main/java/br/gov/ans/sei/modelo/ProtocoloBloco.java=UTF-8 | ||
13 | +encoding//src/main/java/br/gov/ans/sei/modelo/Publicacao.java=UTF-8 | ||
14 | +encoding//src/main/java/br/gov/ans/sei/modelo/PublicacaoImprensaNacional.java=UTF-8 | ||
15 | +encoding//src/main/java/br/gov/ans/sei/modelo/Remetente.java=UTF-8 | ||
16 | +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoConsultaBloco.java=UTF-8 | ||
17 | +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoConsultaDocumento.java=UTF-8 | ||
18 | +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoConsultaProcedimento.java=UTF-8 | ||
19 | +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoGeracaoProcedimento.java=UTF-8 | ||
20 | +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoInclusaoDocumento.java=UTF-8 | ||
21 | +encoding//src/main/java/br/gov/ans/sei/modelo/Serie.java=UTF-8 | ||
22 | +encoding//src/main/java/br/gov/ans/sei/modelo/TipoProcedimento.java=UTF-8 | ||
23 | +encoding//src/main/java/br/gov/ans/sei/modelo/Unidade.java=UTF-8 | ||
24 | +encoding//src/main/java/br/gov/ans/sei/modelo/UnidadeProcedimentoAberto.java=UTF-8 | ||
25 | +encoding//src/main/java/br/gov/ans/sei/modelo/Usuario.java=UTF-8 |
1 | +++ a/.settings/org.eclipse.jdt.core.prefs | ||
@@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
1 | +eclipse.preferences.version=1 | ||
2 | +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate | ||
4 | +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | ||
5 | +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
6 | +org.eclipse.jdt.core.compiler.compliance=1.6 | ||
7 | +org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
8 | +org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
9 | +org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
10 | +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
11 | +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
12 | +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
13 | +org.eclipse.jdt.core.compiler.source=1.6 |
1 | +++ a/pom.xml | ||
@@ -0,0 +1,34 @@ | @@ -0,0 +1,34 @@ | ||
1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
3 | + <modelVersion>4.0.0</modelVersion> | ||
4 | + <groupId>br.gov.ans</groupId> | ||
5 | + <artifactId>ans-commons-sei</artifactId> | ||
6 | + <version>0.2</version> | ||
7 | + <name>ans-commons-sei</name> | ||
8 | + <packaging>jar</packaging> | ||
9 | + <description>Biblioteca de apoio aos clientes do SEI-Broker.</description> | ||
10 | + | ||
11 | + <dependencies> | ||
12 | + <!-- JACKSON --> | ||
13 | + <dependency> | ||
14 | + <groupId>org.jboss.resteasy</groupId> | ||
15 | + <artifactId>resteasy-jackson-provider</artifactId> | ||
16 | + <version>3.1.0.Final</version> | ||
17 | + </dependency> | ||
18 | + | ||
19 | + <!-- HASH --> | ||
20 | + <dependency> | ||
21 | + <groupId>br.gov.ans.commons</groupId> | ||
22 | + <artifactId>ans-commons-security</artifactId> | ||
23 | + <version>2.0</version> | ||
24 | + </dependency> | ||
25 | + | ||
26 | + <!-- BASE64 --> | ||
27 | + <dependency> | ||
28 | + <groupId>commons-codec</groupId> | ||
29 | + <artifactId>commons-codec</artifactId> | ||
30 | + <version>1.10</version> | ||
31 | + </dependency> | ||
32 | + </dependencies> | ||
33 | + | ||
34 | +</project> | ||
0 | \ No newline at end of file | 35 | \ No newline at end of file |
1 | +++ a/src/main/java/br/gov/ans/exceptions/ErrorMessage.java | ||
@@ -0,0 +1,41 @@ | @@ -0,0 +1,41 @@ | ||
1 | +package br.gov.ans.exceptions; | ||
2 | + | ||
3 | +import javax.xml.bind.annotation.XmlRootElement; | ||
4 | + | ||
5 | +@XmlRootElement | ||
6 | +public class ErrorMessage { | ||
7 | + private String error; | ||
8 | + private String code; | ||
9 | + | ||
10 | + public ErrorMessage(){} | ||
11 | + | ||
12 | + public ErrorMessage(String error) { | ||
13 | + this.error = error; | ||
14 | + } | ||
15 | + | ||
16 | + public ErrorMessage(String error, String code) { | ||
17 | + this.error = error; | ||
18 | + this.code = code; | ||
19 | + } | ||
20 | + | ||
21 | + public ErrorMessage(String error, int code) { | ||
22 | + this.error = error; | ||
23 | + this.code = String.valueOf(code); | ||
24 | + } | ||
25 | + | ||
26 | + public String getError() { | ||
27 | + return error; | ||
28 | + } | ||
29 | + | ||
30 | + public void setError(String error){ | ||
31 | + this.error = error; | ||
32 | + } | ||
33 | + | ||
34 | + public String getCode() { | ||
35 | + return code; | ||
36 | + } | ||
37 | + | ||
38 | + public void setCode(String code) { | ||
39 | + this.code = code; | ||
40 | + } | ||
41 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Andamento.java | ||
@@ -0,0 +1,167 @@ | @@ -0,0 +1,167 @@ | ||
1 | +/** | ||
2 | + * Andamento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Andamento implements java.io.Serializable { | ||
14 | + private String descricao; | ||
15 | + | ||
16 | + private String dataHora; | ||
17 | + | ||
18 | + private Unidade unidade; | ||
19 | + | ||
20 | + private Usuario usuario; | ||
21 | + | ||
22 | + public Andamento() { | ||
23 | + } | ||
24 | + | ||
25 | + public Andamento( | ||
26 | + String descricao, | ||
27 | + String dataHora, | ||
28 | + Unidade unidade, | ||
29 | + Usuario usuario) { | ||
30 | + this.descricao = descricao; | ||
31 | + this.dataHora = dataHora; | ||
32 | + this.unidade = unidade; | ||
33 | + this.usuario = usuario; | ||
34 | + } | ||
35 | + | ||
36 | + | ||
37 | + /** | ||
38 | + * Gets the descricao value for this Andamento. | ||
39 | + * | ||
40 | + * @return descricao | ||
41 | + */ | ||
42 | + public String getDescricao() { | ||
43 | + return descricao; | ||
44 | + } | ||
45 | + | ||
46 | + | ||
47 | + /** | ||
48 | + * Sets the descricao value for this Andamento. | ||
49 | + * | ||
50 | + * @param descricao | ||
51 | + */ | ||
52 | + public void setDescricao(String descricao) { | ||
53 | + this.descricao = descricao; | ||
54 | + } | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Gets the dataHora value for this Andamento. | ||
59 | + * | ||
60 | + * @return dataHora | ||
61 | + */ | ||
62 | + public String getDataHora() { | ||
63 | + return dataHora; | ||
64 | + } | ||
65 | + | ||
66 | + | ||
67 | + /** | ||
68 | + * Sets the dataHora value for this Andamento. | ||
69 | + * | ||
70 | + * @param dataHora | ||
71 | + */ | ||
72 | + public void setDataHora(String dataHora) { | ||
73 | + this.dataHora = dataHora; | ||
74 | + } | ||
75 | + | ||
76 | + | ||
77 | + /** | ||
78 | + * Gets the unidade value for this Andamento. | ||
79 | + * | ||
80 | + * @return unidade | ||
81 | + */ | ||
82 | + public Unidade getUnidade() { | ||
83 | + return unidade; | ||
84 | + } | ||
85 | + | ||
86 | + | ||
87 | + /** | ||
88 | + * Sets the unidade value for this Andamento. | ||
89 | + * | ||
90 | + * @param unidade | ||
91 | + */ | ||
92 | + public void setUnidade(Unidade unidade) { | ||
93 | + this.unidade = unidade; | ||
94 | + } | ||
95 | + | ||
96 | + | ||
97 | + /** | ||
98 | + * Gets the usuario value for this Andamento. | ||
99 | + * | ||
100 | + * @return usuario | ||
101 | + */ | ||
102 | + public Usuario getUsuario() { | ||
103 | + return usuario; | ||
104 | + } | ||
105 | + | ||
106 | + | ||
107 | + /** | ||
108 | + * Sets the usuario value for this Andamento. | ||
109 | + * | ||
110 | + * @param usuario | ||
111 | + */ | ||
112 | + public void setUsuario(Usuario usuario) { | ||
113 | + this.usuario = usuario; | ||
114 | + } | ||
115 | + | ||
116 | + private java.lang.Object __equalsCalc = null; | ||
117 | + public synchronized boolean equals(java.lang.Object obj) { | ||
118 | + if (!(obj instanceof Andamento)) return false; | ||
119 | + Andamento other = (Andamento) obj; | ||
120 | + if (obj == null) return false; | ||
121 | + if (this == obj) return true; | ||
122 | + if (__equalsCalc != null) { | ||
123 | + return (__equalsCalc == obj); | ||
124 | + } | ||
125 | + __equalsCalc = obj; | ||
126 | + boolean _equals; | ||
127 | + _equals = true && | ||
128 | + ((this.descricao==null && other.getDescricao()==null) || | ||
129 | + (this.descricao!=null && | ||
130 | + this.descricao.equals(other.getDescricao()))) && | ||
131 | + ((this.dataHora==null && other.getDataHora()==null) || | ||
132 | + (this.dataHora!=null && | ||
133 | + this.dataHora.equals(other.getDataHora()))) && | ||
134 | + ((this.unidade==null && other.getUnidade()==null) || | ||
135 | + (this.unidade!=null && | ||
136 | + this.unidade.equals(other.getUnidade()))) && | ||
137 | + ((this.usuario==null && other.getUsuario()==null) || | ||
138 | + (this.usuario!=null && | ||
139 | + this.usuario.equals(other.getUsuario()))); | ||
140 | + __equalsCalc = null; | ||
141 | + return _equals; | ||
142 | + } | ||
143 | + | ||
144 | + private boolean __hashCodeCalc = false; | ||
145 | + public synchronized int hashCode() { | ||
146 | + if (__hashCodeCalc) { | ||
147 | + return 0; | ||
148 | + } | ||
149 | + __hashCodeCalc = true; | ||
150 | + int _hashCode = 1; | ||
151 | + if (getDescricao() != null) { | ||
152 | + _hashCode += getDescricao().hashCode(); | ||
153 | + } | ||
154 | + if (getDataHora() != null) { | ||
155 | + _hashCode += getDataHora().hashCode(); | ||
156 | + } | ||
157 | + if (getUnidade() != null) { | ||
158 | + _hashCode += getUnidade().hashCode(); | ||
159 | + } | ||
160 | + if (getUsuario() != null) { | ||
161 | + _hashCode += getUsuario().hashCode(); | ||
162 | + } | ||
163 | + __hashCodeCalc = false; | ||
164 | + return _hashCode; | ||
165 | + } | ||
166 | + | ||
167 | +} |
src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java | ||
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
1 | +/** | ||
2 | + * ArquivoExtensao.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class ArquivoExtensao implements java.io.Serializable { | ||
14 | + private java.lang.String idArquivoExtensao; | ||
15 | + | ||
16 | + private java.lang.String extensao; | ||
17 | + | ||
18 | + private java.lang.String descricao; | ||
19 | + | ||
20 | + public ArquivoExtensao() { | ||
21 | + } | ||
22 | + | ||
23 | + public ArquivoExtensao( | ||
24 | + java.lang.String idArquivoExtensao, | ||
25 | + java.lang.String extensao, | ||
26 | + java.lang.String descricao) { | ||
27 | + this.idArquivoExtensao = idArquivoExtensao; | ||
28 | + this.extensao = extensao; | ||
29 | + this.descricao = descricao; | ||
30 | + } | ||
31 | + | ||
32 | + | ||
33 | + /** | ||
34 | + * Gets the idArquivoExtensao value for this ArquivoExtensao. | ||
35 | + * | ||
36 | + * @return idArquivoExtensao | ||
37 | + */ | ||
38 | + public java.lang.String getIdArquivoExtensao() { | ||
39 | + return idArquivoExtensao; | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + /** | ||
44 | + * Sets the idArquivoExtensao value for this ArquivoExtensao. | ||
45 | + * | ||
46 | + * @param idArquivoExtensao | ||
47 | + */ | ||
48 | + public void setIdArquivoExtensao(java.lang.String idArquivoExtensao) { | ||
49 | + this.idArquivoExtensao = idArquivoExtensao; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the extensao value for this ArquivoExtensao. | ||
55 | + * | ||
56 | + * @return extensao | ||
57 | + */ | ||
58 | + public java.lang.String getExtensao() { | ||
59 | + return extensao; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the extensao value for this ArquivoExtensao. | ||
65 | + * | ||
66 | + * @param extensao | ||
67 | + */ | ||
68 | + public void setExtensao(java.lang.String extensao) { | ||
69 | + this.extensao = extensao; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the descricao value for this ArquivoExtensao. | ||
75 | + * | ||
76 | + * @return descricao | ||
77 | + */ | ||
78 | + public java.lang.String getDescricao() { | ||
79 | + return descricao; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the descricao value for this ArquivoExtensao. | ||
85 | + * | ||
86 | + * @param descricao | ||
87 | + */ | ||
88 | + public void setDescricao(java.lang.String descricao) { | ||
89 | + this.descricao = descricao; | ||
90 | + } | ||
91 | + | ||
92 | + private java.lang.Object __equalsCalc = null; | ||
93 | + public synchronized boolean equals(java.lang.Object obj) { | ||
94 | + if (!(obj instanceof ArquivoExtensao)) return false; | ||
95 | + ArquivoExtensao other = (ArquivoExtensao) obj; | ||
96 | + if (obj == null) return false; | ||
97 | + if (this == obj) return true; | ||
98 | + if (__equalsCalc != null) { | ||
99 | + return (__equalsCalc == obj); | ||
100 | + } | ||
101 | + __equalsCalc = obj; | ||
102 | + boolean _equals; | ||
103 | + _equals = true && | ||
104 | + ((this.idArquivoExtensao==null && other.getIdArquivoExtensao()==null) || | ||
105 | + (this.idArquivoExtensao!=null && | ||
106 | + this.idArquivoExtensao.equals(other.getIdArquivoExtensao()))) && | ||
107 | + ((this.extensao==null && other.getExtensao()==null) || | ||
108 | + (this.extensao!=null && | ||
109 | + this.extensao.equals(other.getExtensao()))) && | ||
110 | + ((this.descricao==null && other.getDescricao()==null) || | ||
111 | + (this.descricao!=null && | ||
112 | + this.descricao.equals(other.getDescricao()))); | ||
113 | + __equalsCalc = null; | ||
114 | + return _equals; | ||
115 | + } | ||
116 | + | ||
117 | + private boolean __hashCodeCalc = false; | ||
118 | + public synchronized int hashCode() { | ||
119 | + if (__hashCodeCalc) { | ||
120 | + return 0; | ||
121 | + } | ||
122 | + __hashCodeCalc = true; | ||
123 | + int _hashCode = 1; | ||
124 | + if (getIdArquivoExtensao() != null) { | ||
125 | + _hashCode += getIdArquivoExtensao().hashCode(); | ||
126 | + } | ||
127 | + if (getExtensao() != null) { | ||
128 | + _hashCode += getExtensao().hashCode(); | ||
129 | + } | ||
130 | + if (getDescricao() != null) { | ||
131 | + _hashCode += getDescricao().hashCode(); | ||
132 | + } | ||
133 | + __hashCodeCalc = false; | ||
134 | + return _hashCode; | ||
135 | + } | ||
136 | + | ||
137 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Assinatura.java | ||
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
1 | +/** | ||
2 | + * Assinatura.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Assinatura implements java.io.Serializable { | ||
14 | + private java.lang.String nome; | ||
15 | + | ||
16 | + private java.lang.String cargoFuncao; | ||
17 | + | ||
18 | + private java.lang.String dataHora; | ||
19 | + | ||
20 | + public Assinatura() { | ||
21 | + } | ||
22 | + | ||
23 | + public Assinatura( | ||
24 | + java.lang.String nome, | ||
25 | + java.lang.String cargoFuncao, | ||
26 | + java.lang.String dataHora) { | ||
27 | + this.nome = nome; | ||
28 | + this.cargoFuncao = cargoFuncao; | ||
29 | + this.dataHora = dataHora; | ||
30 | + } | ||
31 | + | ||
32 | + | ||
33 | + /** | ||
34 | + * Gets the nome value for this Assinatura. | ||
35 | + * | ||
36 | + * @return nome | ||
37 | + */ | ||
38 | + public java.lang.String getNome() { | ||
39 | + return nome; | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + /** | ||
44 | + * Sets the nome value for this Assinatura. | ||
45 | + * | ||
46 | + * @param nome | ||
47 | + */ | ||
48 | + public void setNome(java.lang.String nome) { | ||
49 | + this.nome = nome; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the cargoFuncao value for this Assinatura. | ||
55 | + * | ||
56 | + * @return cargoFuncao | ||
57 | + */ | ||
58 | + public java.lang.String getCargoFuncao() { | ||
59 | + return cargoFuncao; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the cargoFuncao value for this Assinatura. | ||
65 | + * | ||
66 | + * @param cargoFuncao | ||
67 | + */ | ||
68 | + public void setCargoFuncao(java.lang.String cargoFuncao) { | ||
69 | + this.cargoFuncao = cargoFuncao; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the dataHora value for this Assinatura. | ||
75 | + * | ||
76 | + * @return dataHora | ||
77 | + */ | ||
78 | + public java.lang.String getDataHora() { | ||
79 | + return dataHora; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the dataHora value for this Assinatura. | ||
85 | + * | ||
86 | + * @param dataHora | ||
87 | + */ | ||
88 | + public void setDataHora(java.lang.String dataHora) { | ||
89 | + this.dataHora = dataHora; | ||
90 | + } | ||
91 | + | ||
92 | + private java.lang.Object __equalsCalc = null; | ||
93 | + public synchronized boolean equals(java.lang.Object obj) { | ||
94 | + if (!(obj instanceof Assinatura)) return false; | ||
95 | + Assinatura other = (Assinatura) obj; | ||
96 | + if (obj == null) return false; | ||
97 | + if (this == obj) return true; | ||
98 | + if (__equalsCalc != null) { | ||
99 | + return (__equalsCalc == obj); | ||
100 | + } | ||
101 | + __equalsCalc = obj; | ||
102 | + boolean _equals; | ||
103 | + _equals = true && | ||
104 | + ((this.nome==null && other.getNome()==null) || | ||
105 | + (this.nome!=null && | ||
106 | + this.nome.equals(other.getNome()))) && | ||
107 | + ((this.cargoFuncao==null && other.getCargoFuncao()==null) || | ||
108 | + (this.cargoFuncao!=null && | ||
109 | + this.cargoFuncao.equals(other.getCargoFuncao()))) && | ||
110 | + ((this.dataHora==null && other.getDataHora()==null) || | ||
111 | + (this.dataHora!=null && | ||
112 | + this.dataHora.equals(other.getDataHora()))); | ||
113 | + __equalsCalc = null; | ||
114 | + return _equals; | ||
115 | + } | ||
116 | + | ||
117 | + private boolean __hashCodeCalc = false; | ||
118 | + public synchronized int hashCode() { | ||
119 | + if (__hashCodeCalc) { | ||
120 | + return 0; | ||
121 | + } | ||
122 | + __hashCodeCalc = true; | ||
123 | + int _hashCode = 1; | ||
124 | + if (getNome() != null) { | ||
125 | + _hashCode += getNome().hashCode(); | ||
126 | + } | ||
127 | + if (getCargoFuncao() != null) { | ||
128 | + _hashCode += getCargoFuncao().hashCode(); | ||
129 | + } | ||
130 | + if (getDataHora() != null) { | ||
131 | + _hashCode += getDataHora().hashCode(); | ||
132 | + } | ||
133 | + __hashCodeCalc = false; | ||
134 | + return _hashCode; | ||
135 | + } | ||
136 | + | ||
137 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Assunto.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * Assunto.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Assunto implements java.io.Serializable { | ||
14 | + private java.lang.String codigoEstruturado; | ||
15 | + | ||
16 | + private java.lang.String descricao; | ||
17 | + | ||
18 | + public Assunto() { | ||
19 | + } | ||
20 | + | ||
21 | + public Assunto( | ||
22 | + java.lang.String codigoEstruturado, | ||
23 | + java.lang.String descricao) { | ||
24 | + this.codigoEstruturado = codigoEstruturado; | ||
25 | + this.descricao = descricao; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the codigoEstruturado value for this Assunto. | ||
31 | + * | ||
32 | + * @return codigoEstruturado | ||
33 | + */ | ||
34 | + public java.lang.String getCodigoEstruturado() { | ||
35 | + return codigoEstruturado; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the codigoEstruturado value for this Assunto. | ||
41 | + * | ||
42 | + * @param codigoEstruturado | ||
43 | + */ | ||
44 | + public void setCodigoEstruturado(java.lang.String codigoEstruturado) { | ||
45 | + this.codigoEstruturado = codigoEstruturado; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the descricao value for this Assunto. | ||
51 | + * | ||
52 | + * @return descricao | ||
53 | + */ | ||
54 | + public java.lang.String getDescricao() { | ||
55 | + return descricao; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the descricao value for this Assunto. | ||
61 | + * | ||
62 | + * @param descricao | ||
63 | + */ | ||
64 | + public void setDescricao(java.lang.String descricao) { | ||
65 | + this.descricao = descricao; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof Assunto)) return false; | ||
71 | + Assunto other = (Assunto) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.codigoEstruturado==null && other.getCodigoEstruturado()==null) || | ||
81 | + (this.codigoEstruturado!=null && | ||
82 | + this.codigoEstruturado.equals(other.getCodigoEstruturado()))) && | ||
83 | + ((this.descricao==null && other.getDescricao()==null) || | ||
84 | + (this.descricao!=null && | ||
85 | + this.descricao.equals(other.getDescricao()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getCodigoEstruturado() != null) { | ||
98 | + _hashCode += getCodigoEstruturado().hashCode(); | ||
99 | + } | ||
100 | + if (getDescricao() != null) { | ||
101 | + _hashCode += getDescricao().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
src/main/java/br/gov/ans/sei/modelo/CancelamentoDocumento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/CancelamentoDocumento.java | ||
@@ -0,0 +1,24 @@ | @@ -0,0 +1,24 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +public class CancelamentoDocumento { | ||
4 | + private String documento; | ||
5 | + private String motivo; | ||
6 | + | ||
7 | + public CancelamentoDocumento(){} | ||
8 | + | ||
9 | + public String getDocumento() { | ||
10 | + return documento; | ||
11 | + } | ||
12 | + | ||
13 | + public void setDocumento(String documento) { | ||
14 | + this.documento = documento; | ||
15 | + } | ||
16 | + | ||
17 | + public String getMotivo() { | ||
18 | + return motivo; | ||
19 | + } | ||
20 | + | ||
21 | + public void setMotivo(String motivo) { | ||
22 | + this.motivo = motivo; | ||
23 | + } | ||
24 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Destinatario.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * Destinatario.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Destinatario implements java.io.Serializable { | ||
14 | + private java.lang.String sigla; | ||
15 | + | ||
16 | + private java.lang.String nome; | ||
17 | + | ||
18 | + public Destinatario() { | ||
19 | + } | ||
20 | + | ||
21 | + public Destinatario( | ||
22 | + java.lang.String sigla, | ||
23 | + java.lang.String nome) { | ||
24 | + this.sigla = sigla; | ||
25 | + this.nome = nome; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the sigla value for this Destinatario. | ||
31 | + * | ||
32 | + * @return sigla | ||
33 | + */ | ||
34 | + public java.lang.String getSigla() { | ||
35 | + return sigla; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the sigla value for this Destinatario. | ||
41 | + * | ||
42 | + * @param sigla | ||
43 | + */ | ||
44 | + public void setSigla(java.lang.String sigla) { | ||
45 | + this.sigla = sigla; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the nome value for this Destinatario. | ||
51 | + * | ||
52 | + * @return nome | ||
53 | + */ | ||
54 | + public java.lang.String getNome() { | ||
55 | + return nome; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the nome value for this Destinatario. | ||
61 | + * | ||
62 | + * @param nome | ||
63 | + */ | ||
64 | + public void setNome(java.lang.String nome) { | ||
65 | + this.nome = nome; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof Destinatario)) return false; | ||
71 | + Destinatario other = (Destinatario) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.sigla==null && other.getSigla()==null) || | ||
81 | + (this.sigla!=null && | ||
82 | + this.sigla.equals(other.getSigla()))) && | ||
83 | + ((this.nome==null && other.getNome()==null) || | ||
84 | + (this.nome!=null && | ||
85 | + this.nome.equals(other.getNome()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getSigla() != null) { | ||
98 | + _hashCode += getSigla().hashCode(); | ||
99 | + } | ||
100 | + if (getNome() != null) { | ||
101 | + _hashCode += getNome().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Documento.java | ||
@@ -0,0 +1,455 @@ | @@ -0,0 +1,455 @@ | ||
1 | +/** | ||
2 | + * Documento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Documento implements java.io.Serializable { | ||
14 | + protected java.lang.String tipo; | ||
15 | + | ||
16 | + protected java.lang.String idProcedimento; | ||
17 | + | ||
18 | + protected java.lang.String idSerie; | ||
19 | + | ||
20 | + protected java.lang.String numero; | ||
21 | + | ||
22 | + protected java.lang.String data; | ||
23 | + | ||
24 | + protected java.lang.String descricao; | ||
25 | + | ||
26 | + protected Remetente remetente; | ||
27 | + | ||
28 | + protected Interessado[] interessados; | ||
29 | + | ||
30 | + protected Destinatario[] destinatarios; | ||
31 | + | ||
32 | + protected java.lang.String observacao; | ||
33 | + | ||
34 | + protected java.lang.String nomeArquivo; | ||
35 | + | ||
36 | + protected java.lang.String conteudo; | ||
37 | + | ||
38 | + protected java.lang.String nivelAcesso; | ||
39 | + | ||
40 | + public Documento() { | ||
41 | + } | ||
42 | + | ||
43 | + public Documento( | ||
44 | + java.lang.String tipo, | ||
45 | + java.lang.String idProcedimento, | ||
46 | + java.lang.String idSerie, | ||
47 | + java.lang.String numero, | ||
48 | + java.lang.String data, | ||
49 | + java.lang.String descricao, | ||
50 | + Remetente remetente, | ||
51 | + Interessado[] interessados, | ||
52 | + Destinatario[] destinatarios, | ||
53 | + java.lang.String observacao, | ||
54 | + java.lang.String nomeArquivo, | ||
55 | + java.lang.String conteudo, | ||
56 | + byte[] conteudoMTOM, | ||
57 | + java.lang.String nivelAcesso) { | ||
58 | + this.tipo = tipo; | ||
59 | + this.idProcedimento = idProcedimento; | ||
60 | + this.idSerie = idSerie; | ||
61 | + this.numero = numero; | ||
62 | + this.data = data; | ||
63 | + this.descricao = descricao; | ||
64 | + this.remetente = remetente; | ||
65 | + this.interessados = interessados; | ||
66 | + this.destinatarios = destinatarios; | ||
67 | + this.observacao = observacao; | ||
68 | + this.nomeArquivo = nomeArquivo; | ||
69 | + this.conteudo = conteudo; | ||
70 | +// this.conteudoMTOM = conteudoMTOM; | ||
71 | + this.nivelAcesso = nivelAcesso; | ||
72 | + } | ||
73 | + | ||
74 | + | ||
75 | + /** | ||
76 | + * Gets the tipo value for this Documento. | ||
77 | + * | ||
78 | + * @return tipo | ||
79 | + */ | ||
80 | + public java.lang.String getTipo() { | ||
81 | + return tipo; | ||
82 | + } | ||
83 | + | ||
84 | + | ||
85 | + /** | ||
86 | + * Sets the tipo value for this Documento. | ||
87 | + * | ||
88 | + * @param tipo | ||
89 | + */ | ||
90 | + public void setTipo(java.lang.String tipo) { | ||
91 | + this.tipo = tipo; | ||
92 | + } | ||
93 | + | ||
94 | + | ||
95 | + /** | ||
96 | + * Gets the idProcedimento value for this Documento. | ||
97 | + * | ||
98 | + * @return idProcedimento | ||
99 | + */ | ||
100 | + public java.lang.String getIdProcedimento() { | ||
101 | + return idProcedimento; | ||
102 | + } | ||
103 | + | ||
104 | + | ||
105 | + /** | ||
106 | + * Sets the idProcedimento value for this Documento. | ||
107 | + * | ||
108 | + * @param idProcedimento | ||
109 | + */ | ||
110 | + public void setIdProcedimento(java.lang.String idProcedimento) { | ||
111 | + this.idProcedimento = idProcedimento; | ||
112 | + } | ||
113 | + | ||
114 | + | ||
115 | + /** | ||
116 | + * Gets the idSerie value for this Documento. | ||
117 | + * | ||
118 | + * @return idSerie | ||
119 | + */ | ||
120 | + public java.lang.String getIdSerie() { | ||
121 | + return idSerie; | ||
122 | + } | ||
123 | + | ||
124 | + | ||
125 | + /** | ||
126 | + * Sets the idSerie value for this Documento. | ||
127 | + * | ||
128 | + * @param idSerie | ||
129 | + */ | ||
130 | + public void setIdSerie(java.lang.String idSerie) { | ||
131 | + this.idSerie = idSerie; | ||
132 | + } | ||
133 | + | ||
134 | + | ||
135 | + /** | ||
136 | + * Gets the numero value for this Documento. | ||
137 | + * | ||
138 | + * @return numero | ||
139 | + */ | ||
140 | + public java.lang.String getNumero() { | ||
141 | + return numero; | ||
142 | + } | ||
143 | + | ||
144 | + | ||
145 | + /** | ||
146 | + * Sets the numero value for this Documento. | ||
147 | + * | ||
148 | + * @param numero | ||
149 | + */ | ||
150 | + public void setNumero(java.lang.String numero) { | ||
151 | + this.numero = numero; | ||
152 | + } | ||
153 | + | ||
154 | + | ||
155 | + /** | ||
156 | + * Gets the data value for this Documento. | ||
157 | + * | ||
158 | + * @return data | ||
159 | + */ | ||
160 | + public java.lang.String getData() { | ||
161 | + return data; | ||
162 | + } | ||
163 | + | ||
164 | + | ||
165 | + /** | ||
166 | + * Sets the data value for this Documento. | ||
167 | + * | ||
168 | + * @param data | ||
169 | + */ | ||
170 | + public void setData(java.lang.String data) { | ||
171 | + this.data = data; | ||
172 | + } | ||
173 | + | ||
174 | + | ||
175 | + /** | ||
176 | + * Gets the descricao value for this Documento. | ||
177 | + * | ||
178 | + * @return descricao | ||
179 | + */ | ||
180 | + public java.lang.String getDescricao() { | ||
181 | + return descricao; | ||
182 | + } | ||
183 | + | ||
184 | + | ||
185 | + /** | ||
186 | + * Sets the descricao value for this Documento. | ||
187 | + * | ||
188 | + * @param descricao | ||
189 | + */ | ||
190 | + public void setDescricao(java.lang.String descricao) { | ||
191 | + this.descricao = descricao; | ||
192 | + } | ||
193 | + | ||
194 | + | ||
195 | + /** | ||
196 | + * Gets the remetente value for this Documento. | ||
197 | + * | ||
198 | + * @return remetente | ||
199 | + */ | ||
200 | + public Remetente getRemetente() { | ||
201 | + return remetente; | ||
202 | + } | ||
203 | + | ||
204 | + | ||
205 | + /** | ||
206 | + * Sets the remetente value for this Documento. | ||
207 | + * | ||
208 | + * @param remetente | ||
209 | + */ | ||
210 | + public void setRemetente(Remetente remetente) { | ||
211 | + this.remetente = remetente; | ||
212 | + } | ||
213 | + | ||
214 | + | ||
215 | + /** | ||
216 | + * Gets the interessados value for this Documento. | ||
217 | + * | ||
218 | + * @return interessados | ||
219 | + */ | ||
220 | + public Interessado[] getInteressados() { | ||
221 | + return interessados; | ||
222 | + } | ||
223 | + | ||
224 | + | ||
225 | + /** | ||
226 | + * Sets the interessados value for this Documento. | ||
227 | + * | ||
228 | + * @param interessados | ||
229 | + */ | ||
230 | + public void setInteressados(Interessado[] interessados) { | ||
231 | + this.interessados = interessados; | ||
232 | + } | ||
233 | + | ||
234 | + | ||
235 | + /** | ||
236 | + * Gets the destinatarios value for this Documento. | ||
237 | + * | ||
238 | + * @return destinatarios | ||
239 | + */ | ||
240 | + public Destinatario[] getDestinatarios() { | ||
241 | + return destinatarios; | ||
242 | + } | ||
243 | + | ||
244 | + | ||
245 | + /** | ||
246 | + * Sets the destinatarios value for this Documento. | ||
247 | + * | ||
248 | + * @param destinatarios | ||
249 | + */ | ||
250 | + public void setDestinatarios(Destinatario[] destinatarios) { | ||
251 | + this.destinatarios = destinatarios; | ||
252 | + } | ||
253 | + | ||
254 | + | ||
255 | + /** | ||
256 | + * Gets the observacao value for this Documento. | ||
257 | + * | ||
258 | + * @return observacao | ||
259 | + */ | ||
260 | + public java.lang.String getObservacao() { | ||
261 | + return observacao; | ||
262 | + } | ||
263 | + | ||
264 | + | ||
265 | + /** | ||
266 | + * Sets the observacao value for this Documento. | ||
267 | + * | ||
268 | + * @param observacao | ||
269 | + */ | ||
270 | + public void setObservacao(java.lang.String observacao) { | ||
271 | + this.observacao = observacao; | ||
272 | + } | ||
273 | + | ||
274 | + | ||
275 | + /** | ||
276 | + * Gets the nomeArquivo value for this Documento. | ||
277 | + * | ||
278 | + * @return nomeArquivo | ||
279 | + */ | ||
280 | + public java.lang.String getNomeArquivo() { | ||
281 | + return nomeArquivo; | ||
282 | + } | ||
283 | + | ||
284 | + | ||
285 | + /** | ||
286 | + * Sets the nomeArquivo value for this Documento. | ||
287 | + * | ||
288 | + * @param nomeArquivo | ||
289 | + */ | ||
290 | + public void setNomeArquivo(java.lang.String nomeArquivo) { | ||
291 | + this.nomeArquivo = nomeArquivo; | ||
292 | + } | ||
293 | + | ||
294 | + | ||
295 | + /** | ||
296 | + * Gets the conteudo value for this Documento. | ||
297 | + * | ||
298 | + * @return conteudo | ||
299 | + */ | ||
300 | + public java.lang.String getConteudo() { | ||
301 | + return conteudo; | ||
302 | + } | ||
303 | + | ||
304 | + | ||
305 | + /** | ||
306 | + * Sets the conteudo value for this Documento. | ||
307 | + * | ||
308 | + * @param conteudo | ||
309 | + */ | ||
310 | + public void setConteudo(java.lang.String conteudo) { | ||
311 | + this.conteudo = conteudo; | ||
312 | + } | ||
313 | + | ||
314 | + /** | ||
315 | + * Gets the nivelAcesso value for this Documento. | ||
316 | + * | ||
317 | + * @return nivelAcesso | ||
318 | + */ | ||
319 | + public java.lang.String getNivelAcesso() { | ||
320 | + return nivelAcesso; | ||
321 | + } | ||
322 | + | ||
323 | + | ||
324 | + /** | ||
325 | + * Sets the nivelAcesso value for this Documento. | ||
326 | + * | ||
327 | + * @param nivelAcesso | ||
328 | + */ | ||
329 | + public void setNivelAcesso(java.lang.String nivelAcesso) { | ||
330 | + this.nivelAcesso = nivelAcesso; | ||
331 | + } | ||
332 | + | ||
333 | + private java.lang.Object __equalsCalc = null; | ||
334 | + public synchronized boolean equals(java.lang.Object obj) { | ||
335 | + if (!(obj instanceof Documento)) return false; | ||
336 | + Documento other = (Documento) obj; | ||
337 | + if (obj == null) return false; | ||
338 | + if (this == obj) return true; | ||
339 | + if (__equalsCalc != null) { | ||
340 | + return (__equalsCalc == obj); | ||
341 | + } | ||
342 | + __equalsCalc = obj; | ||
343 | + boolean _equals; | ||
344 | + _equals = true && | ||
345 | + ((this.tipo==null && other.getTipo()==null) || | ||
346 | + (this.tipo!=null && | ||
347 | + this.tipo.equals(other.getTipo()))) && | ||
348 | + ((this.idProcedimento==null && other.getIdProcedimento()==null) || | ||
349 | + (this.idProcedimento!=null && | ||
350 | + this.idProcedimento.equals(other.getIdProcedimento()))) && | ||
351 | + ((this.idSerie==null && other.getIdSerie()==null) || | ||
352 | + (this.idSerie!=null && | ||
353 | + this.idSerie.equals(other.getIdSerie()))) && | ||
354 | + ((this.numero==null && other.getNumero()==null) || | ||
355 | + (this.numero!=null && | ||
356 | + this.numero.equals(other.getNumero()))) && | ||
357 | + ((this.data==null && other.getData()==null) || | ||
358 | + (this.data!=null && | ||
359 | + this.data.equals(other.getData()))) && | ||
360 | + ((this.descricao==null && other.getDescricao()==null) || | ||
361 | + (this.descricao!=null && | ||
362 | + this.descricao.equals(other.getDescricao()))) && | ||
363 | + ((this.remetente==null && other.getRemetente()==null) || | ||
364 | + (this.remetente!=null && | ||
365 | + this.remetente.equals(other.getRemetente()))) && | ||
366 | + ((this.interessados==null && other.getInteressados()==null) || | ||
367 | + (this.interessados!=null && | ||
368 | + java.util.Arrays.equals(this.interessados, other.getInteressados()))) && | ||
369 | + ((this.destinatarios==null && other.getDestinatarios()==null) || | ||
370 | + (this.destinatarios!=null && | ||
371 | + java.util.Arrays.equals(this.destinatarios, other.getDestinatarios()))) && | ||
372 | + ((this.observacao==null && other.getObservacao()==null) || | ||
373 | + (this.observacao!=null && | ||
374 | + this.observacao.equals(other.getObservacao()))) && | ||
375 | + ((this.nomeArquivo==null && other.getNomeArquivo()==null) || | ||
376 | + (this.nomeArquivo!=null && | ||
377 | + this.nomeArquivo.equals(other.getNomeArquivo()))) && | ||
378 | + ((this.conteudo==null && other.getConteudo()==null) || | ||
379 | + (this.conteudo!=null && | ||
380 | + this.conteudo.equals(other.getConteudo()))) && | ||
381 | + ((this.nivelAcesso==null && other.getNivelAcesso()==null) || | ||
382 | + (this.nivelAcesso!=null && | ||
383 | + this.nivelAcesso.equals(other.getNivelAcesso()))); | ||
384 | + __equalsCalc = null; | ||
385 | + return _equals; | ||
386 | + } | ||
387 | + | ||
388 | + private boolean __hashCodeCalc = false; | ||
389 | + public synchronized int hashCode() { | ||
390 | + if (__hashCodeCalc) { | ||
391 | + return 0; | ||
392 | + } | ||
393 | + __hashCodeCalc = true; | ||
394 | + int _hashCode = 1; | ||
395 | + if (getTipo() != null) { | ||
396 | + _hashCode += getTipo().hashCode(); | ||
397 | + } | ||
398 | + if (getIdProcedimento() != null) { | ||
399 | + _hashCode += getIdProcedimento().hashCode(); | ||
400 | + } | ||
401 | + if (getIdSerie() != null) { | ||
402 | + _hashCode += getIdSerie().hashCode(); | ||
403 | + } | ||
404 | + if (getNumero() != null) { | ||
405 | + _hashCode += getNumero().hashCode(); | ||
406 | + } | ||
407 | + if (getData() != null) { | ||
408 | + _hashCode += getData().hashCode(); | ||
409 | + } | ||
410 | + if (getDescricao() != null) { | ||
411 | + _hashCode += getDescricao().hashCode(); | ||
412 | + } | ||
413 | + if (getRemetente() != null) { | ||
414 | + _hashCode += getRemetente().hashCode(); | ||
415 | + } | ||
416 | + if (getInteressados() != null) { | ||
417 | + for (int i=0; | ||
418 | + i<java.lang.reflect.Array.getLength(getInteressados()); | ||
419 | + i++) { | ||
420 | + java.lang.Object obj = java.lang.reflect.Array.get(getInteressados(), i); | ||
421 | + if (obj != null && | ||
422 | + !obj.getClass().isArray()) { | ||
423 | + _hashCode += obj.hashCode(); | ||
424 | + } | ||
425 | + } | ||
426 | + } | ||
427 | + if (getDestinatarios() != null) { | ||
428 | + for (int i=0; | ||
429 | + i<java.lang.reflect.Array.getLength(getDestinatarios()); | ||
430 | + i++) { | ||
431 | + java.lang.Object obj = java.lang.reflect.Array.get(getDestinatarios(), i); | ||
432 | + if (obj != null && | ||
433 | + !obj.getClass().isArray()) { | ||
434 | + _hashCode += obj.hashCode(); | ||
435 | + } | ||
436 | + } | ||
437 | + } | ||
438 | + if (getObservacao() != null) { | ||
439 | + _hashCode += getObservacao().hashCode(); | ||
440 | + } | ||
441 | + if (getNomeArquivo() != null) { | ||
442 | + _hashCode += getNomeArquivo().hashCode(); | ||
443 | + } | ||
444 | + if (getConteudo() != null) { | ||
445 | + _hashCode += getConteudo().hashCode(); | ||
446 | + } | ||
447 | + | ||
448 | + if (getNivelAcesso() != null) { | ||
449 | + _hashCode += getNivelAcesso().hashCode(); | ||
450 | + } | ||
451 | + __hashCodeCalc = false; | ||
452 | + return _hashCode; | ||
453 | + } | ||
454 | + | ||
455 | +} |
src/main/java/br/gov/ans/sei/modelo/DocumentoResumido.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/DocumentoResumido.java | ||
@@ -0,0 +1,64 @@ | @@ -0,0 +1,64 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +import javax.xml.bind.annotation.XmlRootElement; | ||
6 | + | ||
7 | +@XmlRootElement | ||
8 | +public class DocumentoResumido { | ||
9 | + private String numero; | ||
10 | + private String tipo; | ||
11 | + private String processo; | ||
12 | + private String unidade; | ||
13 | + private String origem; | ||
14 | + private Date dataGeracao; | ||
15 | + | ||
16 | + public String getNumero() { | ||
17 | + return numero; | ||
18 | + } | ||
19 | + | ||
20 | + public void setNumero(String numero) { | ||
21 | + this.numero = numero; | ||
22 | + } | ||
23 | + | ||
24 | + public String getTipo() { | ||
25 | + return tipo; | ||
26 | + } | ||
27 | + | ||
28 | + public void setTipo(String tipo) { | ||
29 | + this.tipo = tipo; | ||
30 | + } | ||
31 | + | ||
32 | + public String getProcesso() { | ||
33 | + return processo; | ||
34 | + } | ||
35 | + | ||
36 | + public void setProcesso(String processo) { | ||
37 | + this.processo = processo; | ||
38 | + } | ||
39 | + | ||
40 | + public String getUnidade() { | ||
41 | + return unidade; | ||
42 | + } | ||
43 | + | ||
44 | + public void setUnidade(String unidade) { | ||
45 | + this.unidade = unidade; | ||
46 | + } | ||
47 | + | ||
48 | + public String getOrigem() { | ||
49 | + return origem; | ||
50 | + } | ||
51 | + | ||
52 | + public void setOrigem(String origem) { | ||
53 | + this.origem = origem; | ||
54 | + } | ||
55 | + | ||
56 | + public Date getDataGeracao() { | ||
57 | + return dataGeracao; | ||
58 | + } | ||
59 | + | ||
60 | + public void setDataGeracao(Date dataGeracao) { | ||
61 | + this.dataGeracao = dataGeracao; | ||
62 | + } | ||
63 | + | ||
64 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/DocumentoSipar.java | ||
@@ -0,0 +1,97 @@ | @@ -0,0 +1,97 @@ | ||
1 | +package br.gov.ans.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/sei/modelo/EnvioDeProcesso.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/EnvioDeProcesso.java | ||
@@ -0,0 +1,79 @@ | @@ -0,0 +1,79 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class EnvioDeProcesso { | ||
6 | + private String numeroDoProcesso; | ||
7 | + private String[] unidadesDestino; | ||
8 | + private boolean manterAbertoOrigem; | ||
9 | + private boolean removerAnotacoes; | ||
10 | + private boolean enviarEmailNotificacao; | ||
11 | + private Date dataRetornoProgramado; | ||
12 | + private Integer qtdDiasAteRetorno; | ||
13 | + private boolean somenteDiasUteis; | ||
14 | + | ||
15 | + public String getNumeroDoProcesso() { | ||
16 | + return numeroDoProcesso; | ||
17 | + } | ||
18 | + | ||
19 | + public void setNumeroDoProcesso(String numeroDoProcesso) { | ||
20 | + this.numeroDoProcesso = numeroDoProcesso; | ||
21 | + } | ||
22 | + | ||
23 | + public String[] getUnidadesDestino() { | ||
24 | + return unidadesDestino; | ||
25 | + } | ||
26 | + | ||
27 | + public void setUnidadesDestino(String[] unidadesDestino) { | ||
28 | + this.unidadesDestino = unidadesDestino; | ||
29 | + } | ||
30 | + | ||
31 | + public boolean getManterAbertoOrigem() { | ||
32 | + return manterAbertoOrigem; | ||
33 | + } | ||
34 | + | ||
35 | + public void setManterAbertoOrigem(boolean manterAbertoOrigem) { | ||
36 | + this.manterAbertoOrigem = manterAbertoOrigem; | ||
37 | + } | ||
38 | + | ||
39 | + public boolean getRemoverAnotacoes() { | ||
40 | + return removerAnotacoes; | ||
41 | + } | ||
42 | + | ||
43 | + public void setRemoverAnotacoes(boolean removerAnotacoes) { | ||
44 | + this.removerAnotacoes = removerAnotacoes; | ||
45 | + } | ||
46 | + | ||
47 | + public boolean getEnviarEmailNotificacao() { | ||
48 | + return enviarEmailNotificacao; | ||
49 | + } | ||
50 | + | ||
51 | + public void setEnviarEmailNotificacao(boolean enviarEmailNotificacao) { | ||
52 | + this.enviarEmailNotificacao = enviarEmailNotificacao; | ||
53 | + } | ||
54 | + | ||
55 | + public Date getDataRetornoProgramado() { | ||
56 | + return dataRetornoProgramado; | ||
57 | + } | ||
58 | + | ||
59 | + public void setDataRetornoProgramado(Date dataRetornoProgramado) { | ||
60 | + this.dataRetornoProgramado = dataRetornoProgramado; | ||
61 | + } | ||
62 | + | ||
63 | + public Integer getQtdDiasAteRetorno() { | ||
64 | + return qtdDiasAteRetorno; | ||
65 | + } | ||
66 | + | ||
67 | + public void setQtdDiasAteRetorno(Integer qtdDiasAteRetorno) { | ||
68 | + this.qtdDiasAteRetorno = qtdDiasAteRetorno; | ||
69 | + } | ||
70 | + | ||
71 | + public boolean getSomenteDiasUteis() { | ||
72 | + return somenteDiasUteis; | ||
73 | + } | ||
74 | + | ||
75 | + public void setSomenteDiasUteis(boolean somenteDiasUteis) { | ||
76 | + this.somenteDiasUteis = somenteDiasUteis; | ||
77 | + } | ||
78 | + | ||
79 | +} |
src/main/java/br/gov/ans/sei/modelo/InclusaoDocumento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/InclusaoDocumento.java | ||
@@ -0,0 +1,117 @@ | @@ -0,0 +1,117 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +import javax.xml.bind.annotation.XmlRootElement; | ||
6 | + | ||
7 | +@XmlRootElement | ||
8 | +public class InclusaoDocumento { | ||
9 | + | ||
10 | + private long id; | ||
11 | + | ||
12 | + private Date data; | ||
13 | + | ||
14 | + private String nome; | ||
15 | + | ||
16 | + private String numero; | ||
17 | + | ||
18 | + private String hash; | ||
19 | + | ||
20 | + private String sistema; | ||
21 | + | ||
22 | + private String unidade; | ||
23 | + | ||
24 | + private String processo; | ||
25 | + | ||
26 | + private String numeroInformado; | ||
27 | + | ||
28 | + public InclusaoDocumento() { | ||
29 | + | ||
30 | + } | ||
31 | + | ||
32 | + public InclusaoDocumento(Documento documento, String unidade, | ||
33 | + String sistema, String hash) { | ||
34 | + this.unidade = unidade; | ||
35 | + this.sistema = sistema; | ||
36 | + this.hash = hash; | ||
37 | + this.numeroInformado = documento.getNumero(); | ||
38 | + | ||
39 | + this.nome = documento.getNomeArquivo(); | ||
40 | + this.processo = documento.getIdProcedimento(); | ||
41 | + | ||
42 | + this.data = new Date(); | ||
43 | + } | ||
44 | + | ||
45 | + public long getId() { | ||
46 | + return id; | ||
47 | + } | ||
48 | + | ||
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 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Interessado.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * Interessado.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Interessado implements java.io.Serializable { | ||
14 | + private java.lang.String sigla; | ||
15 | + | ||
16 | + private java.lang.String nome; | ||
17 | + | ||
18 | + public Interessado() { | ||
19 | + } | ||
20 | + | ||
21 | + public Interessado( | ||
22 | + java.lang.String sigla, | ||
23 | + java.lang.String nome) { | ||
24 | + this.sigla = sigla; | ||
25 | + this.nome = nome; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the sigla value for this Interessado. | ||
31 | + * | ||
32 | + * @return sigla | ||
33 | + */ | ||
34 | + public java.lang.String getSigla() { | ||
35 | + return sigla; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the sigla value for this Interessado. | ||
41 | + * | ||
42 | + * @param sigla | ||
43 | + */ | ||
44 | + public void setSigla(java.lang.String sigla) { | ||
45 | + this.sigla = sigla; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the nome value for this Interessado. | ||
51 | + * | ||
52 | + * @return nome | ||
53 | + */ | ||
54 | + public java.lang.String getNome() { | ||
55 | + return nome; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the nome value for this Interessado. | ||
61 | + * | ||
62 | + * @param nome | ||
63 | + */ | ||
64 | + public void setNome(java.lang.String nome) { | ||
65 | + this.nome = nome; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof Interessado)) return false; | ||
71 | + Interessado other = (Interessado) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.sigla==null && other.getSigla()==null) || | ||
81 | + (this.sigla!=null && | ||
82 | + this.sigla.equals(other.getSigla()))) && | ||
83 | + ((this.nome==null && other.getNome()==null) || | ||
84 | + (this.nome!=null && | ||
85 | + this.nome.equals(other.getNome()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getSigla() != null) { | ||
98 | + _hashCode += getSigla().hashCode(); | ||
99 | + } | ||
100 | + if (getNome() != null) { | ||
101 | + _hashCode += getNome().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/NovoBloco.java | ||
@@ -0,0 +1,51 @@ | @@ -0,0 +1,51 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +public class NovoBloco { | ||
4 | + | ||
5 | + private TipoBloco tipo; | ||
6 | + private String descricao; | ||
7 | + private String[] unidades; | ||
8 | + private String[] documentos; | ||
9 | + private boolean disponibilizar; | ||
10 | + | ||
11 | + public TipoBloco getTipo() { | ||
12 | + return tipo; | ||
13 | + } | ||
14 | + | ||
15 | + public void setTipo(TipoBloco tipo) { | ||
16 | + this.tipo = tipo; | ||
17 | + } | ||
18 | + | ||
19 | + public String getDescricao() { | ||
20 | + return descricao; | ||
21 | + } | ||
22 | + | ||
23 | + public void setDescricao(String descricao) { | ||
24 | + this.descricao = descricao; | ||
25 | + } | ||
26 | + | ||
27 | + public String[] getUnidades() { | ||
28 | + return unidades; | ||
29 | + } | ||
30 | + | ||
31 | + public void setUnidades(String[] unidades) { | ||
32 | + this.unidades = unidades; | ||
33 | + } | ||
34 | + | ||
35 | + public String[] getDocumentos() { | ||
36 | + return documentos; | ||
37 | + } | ||
38 | + | ||
39 | + public void setDocumentos(String[] documentos) { | ||
40 | + this.documentos = documentos; | ||
41 | + } | ||
42 | + | ||
43 | + public boolean isDisponibilizar() { | ||
44 | + return disponibilizar; | ||
45 | + } | ||
46 | + | ||
47 | + public void setDisponibilizar(boolean disponibilizar) { | ||
48 | + this.disponibilizar = disponibilizar; | ||
49 | + } | ||
50 | + | ||
51 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/NovoProcesso.java | ||
@@ -0,0 +1,89 @@ | @@ -0,0 +1,89 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class NovoProcesso { | ||
6 | + | ||
7 | + private Procedimento dadosProcesso; | ||
8 | + private Documento[] documentos; | ||
9 | + private String[] processosRelacionados; | ||
10 | + private String[] unidadesDestino; | ||
11 | + private boolean manterAbertoOrigem; | ||
12 | + private boolean enviarEmailNotificacao; | ||
13 | + private Date dataRetornoProgramado; | ||
14 | + private Integer qtdDiasAteRetorno; | ||
15 | + private boolean somenteDiasUteis; | ||
16 | + | ||
17 | + public Procedimento getDadosProcesso() { | ||
18 | + return dadosProcesso; | ||
19 | + } | ||
20 | + | ||
21 | + public void setDadosProcesso(Procedimento dadosProcesso) { | ||
22 | + this.dadosProcesso = dadosProcesso; | ||
23 | + } | ||
24 | + | ||
25 | + public Documento[] getDocumentos() { | ||
26 | + return documentos; | ||
27 | + } | ||
28 | + | ||
29 | + public void setDocumentos(Documento[] documentos) { | ||
30 | + this.documentos = documentos; | ||
31 | + } | ||
32 | + | ||
33 | + public String[] getProcessosRelacionados() { | ||
34 | + return processosRelacionados; | ||
35 | + } | ||
36 | + | ||
37 | + public void setProcessosRelacionados(String[] processosRelacionados) { | ||
38 | + this.processosRelacionados = processosRelacionados; | ||
39 | + } | ||
40 | + | ||
41 | + public String[] getUnidadesDestino() { | ||
42 | + return unidadesDestino; | ||
43 | + } | ||
44 | + | ||
45 | + public void setUnidadesDestino(String[] unidadesDestino) { | ||
46 | + this.unidadesDestino = unidadesDestino; | ||
47 | + } | ||
48 | + | ||
49 | + public boolean isManterAbertoOrigem() { | ||
50 | + return manterAbertoOrigem; | ||
51 | + } | ||
52 | + | ||
53 | + public void setManterAbertoOrigem(boolean manterAbertoOrigem) { | ||
54 | + this.manterAbertoOrigem = manterAbertoOrigem; | ||
55 | + } | ||
56 | + | ||
57 | + public boolean isEnviarEmailNotificacao() { | ||
58 | + return enviarEmailNotificacao; | ||
59 | + } | ||
60 | + | ||
61 | + public void setEnviarEmailNotificacao(boolean enviarEmailNotificacao) { | ||
62 | + this.enviarEmailNotificacao = enviarEmailNotificacao; | ||
63 | + } | ||
64 | + | ||
65 | + public Date getDataRetornoProgramado() { | ||
66 | + return dataRetornoProgramado; | ||
67 | + } | ||
68 | + | ||
69 | + public void setDataRetornoProgramado(Date dataRetornoProgramado) { | ||
70 | + this.dataRetornoProgramado = dataRetornoProgramado; | ||
71 | + } | ||
72 | + | ||
73 | + public Integer getQtdDiasAteRetorno() { | ||
74 | + return qtdDiasAteRetorno; | ||
75 | + } | ||
76 | + | ||
77 | + public void setQtdDiasAteRetorno(Integer qtdDiasAteRetorno) { | ||
78 | + this.qtdDiasAteRetorno = qtdDiasAteRetorno; | ||
79 | + } | ||
80 | + | ||
81 | + public boolean isSomenteDiasUteis() { | ||
82 | + return somenteDiasUteis; | ||
83 | + } | ||
84 | + | ||
85 | + public void setSomenteDiasUteis(boolean somenteDiasUteis) { | ||
86 | + this.somenteDiasUteis = somenteDiasUteis; | ||
87 | + } | ||
88 | + | ||
89 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Observacao.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * Observacao.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Observacao implements java.io.Serializable { | ||
14 | + private java.lang.String descricao; | ||
15 | + | ||
16 | + private Unidade unidade; | ||
17 | + | ||
18 | + public Observacao() { | ||
19 | + } | ||
20 | + | ||
21 | + public Observacao( | ||
22 | + java.lang.String descricao, | ||
23 | + Unidade unidade) { | ||
24 | + this.descricao = descricao; | ||
25 | + this.unidade = unidade; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the descricao value for this Observacao. | ||
31 | + * | ||
32 | + * @return descricao | ||
33 | + */ | ||
34 | + public java.lang.String getDescricao() { | ||
35 | + return descricao; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the descricao value for this Observacao. | ||
41 | + * | ||
42 | + * @param descricao | ||
43 | + */ | ||
44 | + public void setDescricao(java.lang.String descricao) { | ||
45 | + this.descricao = descricao; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the unidade value for this Observacao. | ||
51 | + * | ||
52 | + * @return unidade | ||
53 | + */ | ||
54 | + public Unidade getUnidade() { | ||
55 | + return unidade; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the unidade value for this Observacao. | ||
61 | + * | ||
62 | + * @param unidade | ||
63 | + */ | ||
64 | + public void setUnidade(Unidade unidade) { | ||
65 | + this.unidade = unidade; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof Observacao)) return false; | ||
71 | + Observacao other = (Observacao) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.descricao==null && other.getDescricao()==null) || | ||
81 | + (this.descricao!=null && | ||
82 | + this.descricao.equals(other.getDescricao()))) && | ||
83 | + ((this.unidade==null && other.getUnidade()==null) || | ||
84 | + (this.unidade!=null && | ||
85 | + this.unidade.equals(other.getUnidade()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getDescricao() != null) { | ||
98 | + _hashCode += getDescricao().hashCode(); | ||
99 | + } | ||
100 | + if (getUnidade() != null) { | ||
101 | + _hashCode += getUnidade().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Procedimento.java | ||
@@ -0,0 +1,243 @@ | @@ -0,0 +1,243 @@ | ||
1 | +/** | ||
2 | + * Procedimento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Procedimento implements java.io.Serializable { | ||
14 | + private java.lang.String idTipoProcedimento; | ||
15 | + | ||
16 | + private java.lang.String especificacao; | ||
17 | + | ||
18 | + private Assunto[] assuntos; | ||
19 | + | ||
20 | + private Interessado[] interessados; | ||
21 | + | ||
22 | + private java.lang.String observacao; | ||
23 | + | ||
24 | + private java.lang.String nivelAcesso; | ||
25 | + | ||
26 | + public Procedimento() { | ||
27 | + } | ||
28 | + | ||
29 | + public Procedimento( | ||
30 | + java.lang.String idTipoProcedimento, | ||
31 | + java.lang.String especificacao, | ||
32 | + Assunto[] assuntos, | ||
33 | + Interessado[] interessados, | ||
34 | + java.lang.String observacao, | ||
35 | + java.lang.String nivelAcesso) { | ||
36 | + this.idTipoProcedimento = idTipoProcedimento; | ||
37 | + this.especificacao = especificacao; | ||
38 | + this.assuntos = assuntos; | ||
39 | + this.interessados = interessados; | ||
40 | + this.observacao = observacao; | ||
41 | + this.nivelAcesso = nivelAcesso; | ||
42 | + } | ||
43 | + | ||
44 | + | ||
45 | + /** | ||
46 | + * Gets the idTipoProcedimento value for this Procedimento. | ||
47 | + * | ||
48 | + * @return idTipoProcedimento | ||
49 | + */ | ||
50 | + public java.lang.String getIdTipoProcedimento() { | ||
51 | + return idTipoProcedimento; | ||
52 | + } | ||
53 | + | ||
54 | + | ||
55 | + /** | ||
56 | + * Sets the idTipoProcedimento value for this Procedimento. | ||
57 | + * | ||
58 | + * @param idTipoProcedimento | ||
59 | + */ | ||
60 | + public void setIdTipoProcedimento(java.lang.String idTipoProcedimento) { | ||
61 | + this.idTipoProcedimento = idTipoProcedimento; | ||
62 | + } | ||
63 | + | ||
64 | + | ||
65 | + /** | ||
66 | + * Gets the especificacao value for this Procedimento. | ||
67 | + * | ||
68 | + * @return especificacao | ||
69 | + */ | ||
70 | + public java.lang.String getEspecificacao() { | ||
71 | + return especificacao; | ||
72 | + } | ||
73 | + | ||
74 | + | ||
75 | + /** | ||
76 | + * Sets the especificacao value for this Procedimento. | ||
77 | + * | ||
78 | + * @param especificacao | ||
79 | + */ | ||
80 | + public void setEspecificacao(java.lang.String especificacao) { | ||
81 | + this.especificacao = especificacao; | ||
82 | + } | ||
83 | + | ||
84 | + | ||
85 | + /** | ||
86 | + * Gets the assuntos value for this Procedimento. | ||
87 | + * | ||
88 | + * @return assuntos | ||
89 | + */ | ||
90 | + public Assunto[] getAssuntos() { | ||
91 | + return assuntos; | ||
92 | + } | ||
93 | + | ||
94 | + | ||
95 | + /** | ||
96 | + * Sets the assuntos value for this Procedimento. | ||
97 | + * | ||
98 | + * @param assuntos | ||
99 | + */ | ||
100 | + public void setAssuntos(Assunto[] assuntos) { | ||
101 | + this.assuntos = assuntos; | ||
102 | + } | ||
103 | + | ||
104 | + | ||
105 | + /** | ||
106 | + * Gets the interessados value for this Procedimento. | ||
107 | + * | ||
108 | + * @return interessados | ||
109 | + */ | ||
110 | + public Interessado[] getInteressados() { | ||
111 | + return interessados; | ||
112 | + } | ||
113 | + | ||
114 | + | ||
115 | + /** | ||
116 | + * Sets the interessados value for this Procedimento. | ||
117 | + * | ||
118 | + * @param interessados | ||
119 | + */ | ||
120 | + public void setInteressados(Interessado[] interessados) { | ||
121 | + this.interessados = interessados; | ||
122 | + } | ||
123 | + | ||
124 | + | ||
125 | + /** | ||
126 | + * Gets the observacao value for this Procedimento. | ||
127 | + * | ||
128 | + * @return observacao | ||
129 | + */ | ||
130 | + public java.lang.String getObservacao() { | ||
131 | + return observacao; | ||
132 | + } | ||
133 | + | ||
134 | + | ||
135 | + /** | ||
136 | + * Sets the observacao value for this Procedimento. | ||
137 | + * | ||
138 | + * @param observacao | ||
139 | + */ | ||
140 | + public void setObservacao(java.lang.String observacao) { | ||
141 | + this.observacao = observacao; | ||
142 | + } | ||
143 | + | ||
144 | + | ||
145 | + /** | ||
146 | + * Gets the nivelAcesso value for this Procedimento. | ||
147 | + * | ||
148 | + * @return nivelAcesso | ||
149 | + */ | ||
150 | + public java.lang.String getNivelAcesso() { | ||
151 | + return nivelAcesso; | ||
152 | + } | ||
153 | + | ||
154 | + | ||
155 | + /** | ||
156 | + * Sets the nivelAcesso value for this Procedimento. | ||
157 | + * | ||
158 | + * @param nivelAcesso | ||
159 | + */ | ||
160 | + public void setNivelAcesso(java.lang.String nivelAcesso) { | ||
161 | + this.nivelAcesso = nivelAcesso; | ||
162 | + } | ||
163 | + | ||
164 | + private java.lang.Object __equalsCalc = null; | ||
165 | + public synchronized boolean equals(java.lang.Object obj) { | ||
166 | + if (!(obj instanceof Procedimento)) return false; | ||
167 | + Procedimento other = (Procedimento) obj; | ||
168 | + if (obj == null) return false; | ||
169 | + if (this == obj) return true; | ||
170 | + if (__equalsCalc != null) { | ||
171 | + return (__equalsCalc == obj); | ||
172 | + } | ||
173 | + __equalsCalc = obj; | ||
174 | + boolean _equals; | ||
175 | + _equals = true && | ||
176 | + ((this.idTipoProcedimento==null && other.getIdTipoProcedimento()==null) || | ||
177 | + (this.idTipoProcedimento!=null && | ||
178 | + this.idTipoProcedimento.equals(other.getIdTipoProcedimento()))) && | ||
179 | + ((this.especificacao==null && other.getEspecificacao()==null) || | ||
180 | + (this.especificacao!=null && | ||
181 | + this.especificacao.equals(other.getEspecificacao()))) && | ||
182 | + ((this.assuntos==null && other.getAssuntos()==null) || | ||
183 | + (this.assuntos!=null && | ||
184 | + java.util.Arrays.equals(this.assuntos, other.getAssuntos()))) && | ||
185 | + ((this.interessados==null && other.getInteressados()==null) || | ||
186 | + (this.interessados!=null && | ||
187 | + java.util.Arrays.equals(this.interessados, other.getInteressados()))) && | ||
188 | + ((this.observacao==null && other.getObservacao()==null) || | ||
189 | + (this.observacao!=null && | ||
190 | + this.observacao.equals(other.getObservacao()))) && | ||
191 | + ((this.nivelAcesso==null && other.getNivelAcesso()==null) || | ||
192 | + (this.nivelAcesso!=null && | ||
193 | + this.nivelAcesso.equals(other.getNivelAcesso()))); | ||
194 | + __equalsCalc = null; | ||
195 | + return _equals; | ||
196 | + } | ||
197 | + | ||
198 | + private boolean __hashCodeCalc = false; | ||
199 | + public synchronized int hashCode() { | ||
200 | + if (__hashCodeCalc) { | ||
201 | + return 0; | ||
202 | + } | ||
203 | + __hashCodeCalc = true; | ||
204 | + int _hashCode = 1; | ||
205 | + if (getIdTipoProcedimento() != null) { | ||
206 | + _hashCode += getIdTipoProcedimento().hashCode(); | ||
207 | + } | ||
208 | + if (getEspecificacao() != null) { | ||
209 | + _hashCode += getEspecificacao().hashCode(); | ||
210 | + } | ||
211 | + if (getAssuntos() != null) { | ||
212 | + for (int i=0; | ||
213 | + i<java.lang.reflect.Array.getLength(getAssuntos()); | ||
214 | + i++) { | ||
215 | + java.lang.Object obj = java.lang.reflect.Array.get(getAssuntos(), i); | ||
216 | + if (obj != null && | ||
217 | + !obj.getClass().isArray()) { | ||
218 | + _hashCode += obj.hashCode(); | ||
219 | + } | ||
220 | + } | ||
221 | + } | ||
222 | + if (getInteressados() != null) { | ||
223 | + for (int i=0; | ||
224 | + i<java.lang.reflect.Array.getLength(getInteressados()); | ||
225 | + i++) { | ||
226 | + java.lang.Object obj = java.lang.reflect.Array.get(getInteressados(), i); | ||
227 | + if (obj != null && | ||
228 | + !obj.getClass().isArray()) { | ||
229 | + _hashCode += obj.hashCode(); | ||
230 | + } | ||
231 | + } | ||
232 | + } | ||
233 | + if (getObservacao() != null) { | ||
234 | + _hashCode += getObservacao().hashCode(); | ||
235 | + } | ||
236 | + if (getNivelAcesso() != null) { | ||
237 | + _hashCode += getNivelAcesso().hashCode(); | ||
238 | + } | ||
239 | + __hashCodeCalc = false; | ||
240 | + return _hashCode; | ||
241 | + } | ||
242 | + | ||
243 | +} |
src/main/java/br/gov/ans/sei/modelo/ProcedimentoResumido.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/ProcedimentoResumido.java | ||
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
1 | +/** | ||
2 | + * ProcedimentoResumido.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class ProcedimentoResumido implements java.io.Serializable { | ||
14 | + private java.lang.String idProcedimento; | ||
15 | + | ||
16 | + private java.lang.String procedimentoFormatado; | ||
17 | + | ||
18 | + private TipoProcedimento tipoProcedimento; | ||
19 | + | ||
20 | + public ProcedimentoResumido() { | ||
21 | + } | ||
22 | + | ||
23 | + public ProcedimentoResumido( | ||
24 | + java.lang.String idProcedimento, | ||
25 | + java.lang.String procedimentoFormatado, | ||
26 | + TipoProcedimento tipoProcedimento) { | ||
27 | + this.idProcedimento = idProcedimento; | ||
28 | + this.procedimentoFormatado = procedimentoFormatado; | ||
29 | + this.tipoProcedimento = tipoProcedimento; | ||
30 | + } | ||
31 | + | ||
32 | + | ||
33 | + /** | ||
34 | + * Gets the idProcedimento value for this ProcedimentoResumido. | ||
35 | + * | ||
36 | + * @return idProcedimento | ||
37 | + */ | ||
38 | + public java.lang.String getIdProcedimento() { | ||
39 | + return idProcedimento; | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + /** | ||
44 | + * Sets the idProcedimento value for this ProcedimentoResumido. | ||
45 | + * | ||
46 | + * @param idProcedimento | ||
47 | + */ | ||
48 | + public void setIdProcedimento(java.lang.String idProcedimento) { | ||
49 | + this.idProcedimento = idProcedimento; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the procedimentoFormatado value for this ProcedimentoResumido. | ||
55 | + * | ||
56 | + * @return procedimentoFormatado | ||
57 | + */ | ||
58 | + public java.lang.String getProcedimentoFormatado() { | ||
59 | + return procedimentoFormatado; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the procedimentoFormatado value for this ProcedimentoResumido. | ||
65 | + * | ||
66 | + * @param procedimentoFormatado | ||
67 | + */ | ||
68 | + public void setProcedimentoFormatado(java.lang.String procedimentoFormatado) { | ||
69 | + this.procedimentoFormatado = procedimentoFormatado; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the tipoProcedimento value for this ProcedimentoResumido. | ||
75 | + * | ||
76 | + * @return tipoProcedimento | ||
77 | + */ | ||
78 | + public TipoProcedimento getTipoProcedimento() { | ||
79 | + return tipoProcedimento; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the tipoProcedimento value for this ProcedimentoResumido. | ||
85 | + * | ||
86 | + * @param tipoProcedimento | ||
87 | + */ | ||
88 | + public void setTipoProcedimento(TipoProcedimento tipoProcedimento) { | ||
89 | + this.tipoProcedimento = tipoProcedimento; | ||
90 | + } | ||
91 | + | ||
92 | + private java.lang.Object __equalsCalc = null; | ||
93 | + public synchronized boolean equals(java.lang.Object obj) { | ||
94 | + if (!(obj instanceof ProcedimentoResumido)) return false; | ||
95 | + ProcedimentoResumido other = (ProcedimentoResumido) obj; | ||
96 | + if (obj == null) return false; | ||
97 | + if (this == obj) return true; | ||
98 | + if (__equalsCalc != null) { | ||
99 | + return (__equalsCalc == obj); | ||
100 | + } | ||
101 | + __equalsCalc = obj; | ||
102 | + boolean _equals; | ||
103 | + _equals = true && | ||
104 | + ((this.idProcedimento==null && other.getIdProcedimento()==null) || | ||
105 | + (this.idProcedimento!=null && | ||
106 | + this.idProcedimento.equals(other.getIdProcedimento()))) && | ||
107 | + ((this.procedimentoFormatado==null && other.getProcedimentoFormatado()==null) || | ||
108 | + (this.procedimentoFormatado!=null && | ||
109 | + this.procedimentoFormatado.equals(other.getProcedimentoFormatado()))) && | ||
110 | + ((this.tipoProcedimento==null && other.getTipoProcedimento()==null) || | ||
111 | + (this.tipoProcedimento!=null && | ||
112 | + this.tipoProcedimento.equals(other.getTipoProcedimento()))); | ||
113 | + __equalsCalc = null; | ||
114 | + return _equals; | ||
115 | + } | ||
116 | + | ||
117 | + private boolean __hashCodeCalc = false; | ||
118 | + public synchronized int hashCode() { | ||
119 | + if (__hashCodeCalc) { | ||
120 | + return 0; | ||
121 | + } | ||
122 | + __hashCodeCalc = true; | ||
123 | + int _hashCode = 1; | ||
124 | + if (getIdProcedimento() != null) { | ||
125 | + _hashCode += getIdProcedimento().hashCode(); | ||
126 | + } | ||
127 | + if (getProcedimentoFormatado() != null) { | ||
128 | + _hashCode += getProcedimentoFormatado().hashCode(); | ||
129 | + } | ||
130 | + if (getTipoProcedimento() != null) { | ||
131 | + _hashCode += getTipoProcedimento().hashCode(); | ||
132 | + } | ||
133 | + __hashCodeCalc = false; | ||
134 | + return _hashCode; | ||
135 | + } | ||
136 | + | ||
137 | +} |
src/main/java/br/gov/ans/sei/modelo/ProcessoResumido.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/ProcessoResumido.java | ||
@@ -0,0 +1,56 @@ | @@ -0,0 +1,56 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +import javax.xml.bind.annotation.XmlRootElement; | ||
6 | + | ||
7 | +@XmlRootElement | ||
8 | +public class ProcessoResumido { | ||
9 | + | ||
10 | + private String numero; | ||
11 | + private String numeroFormatado; | ||
12 | + private String descricao; | ||
13 | + private String unidade; | ||
14 | + private Date dataGeracao; | ||
15 | + | ||
16 | + public String getNumero() { | ||
17 | + return numero; | ||
18 | + } | ||
19 | + | ||
20 | + public void setNumero(String numero) { | ||
21 | + this.numero = numero; | ||
22 | + } | ||
23 | + | ||
24 | + public String getNumeroFormatado() { | ||
25 | + return numeroFormatado; | ||
26 | + } | ||
27 | + | ||
28 | + public void setNumeroFormatado(String numeroFormatado) { | ||
29 | + this.numeroFormatado = numeroFormatado; | ||
30 | + } | ||
31 | + | ||
32 | + public String getDescricao() { | ||
33 | + return descricao; | ||
34 | + } | ||
35 | + | ||
36 | + public void setDescricao(String descricao) { | ||
37 | + this.descricao = descricao; | ||
38 | + } | ||
39 | + | ||
40 | + public String getUnidade() { | ||
41 | + return unidade; | ||
42 | + } | ||
43 | + | ||
44 | + public void setUnidade(String unidade) { | ||
45 | + this.unidade = unidade; | ||
46 | + } | ||
47 | + | ||
48 | + public Date getDataGeracao() { | ||
49 | + return dataGeracao; | ||
50 | + } | ||
51 | + | ||
52 | + public void setDataGeracao(Date dataGeracao) { | ||
53 | + this.dataGeracao = dataGeracao; | ||
54 | + } | ||
55 | + | ||
56 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/ProtocoloBloco.java | ||
@@ -0,0 +1,144 @@ | @@ -0,0 +1,144 @@ | ||
1 | +/** | ||
2 | + * ProtocoloBloco.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class ProtocoloBloco implements java.io.Serializable { | ||
14 | + private java.lang.String protocoloFormatado; | ||
15 | + | ||
16 | + private java.lang.String identificacao; | ||
17 | + | ||
18 | + private Assinatura[] assinaturas; | ||
19 | + | ||
20 | + public ProtocoloBloco() { | ||
21 | + } | ||
22 | + | ||
23 | + public ProtocoloBloco( | ||
24 | + java.lang.String protocoloFormatado, | ||
25 | + java.lang.String identificacao, | ||
26 | + Assinatura[] assinaturas) { | ||
27 | + this.protocoloFormatado = protocoloFormatado; | ||
28 | + this.identificacao = identificacao; | ||
29 | + this.assinaturas = assinaturas; | ||
30 | + } | ||
31 | + | ||
32 | + | ||
33 | + /** | ||
34 | + * Gets the protocoloFormatado value for this ProtocoloBloco. | ||
35 | + * | ||
36 | + * @return protocoloFormatado | ||
37 | + */ | ||
38 | + public java.lang.String getProtocoloFormatado() { | ||
39 | + return protocoloFormatado; | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + /** | ||
44 | + * Sets the protocoloFormatado value for this ProtocoloBloco. | ||
45 | + * | ||
46 | + * @param protocoloFormatado | ||
47 | + */ | ||
48 | + public void setProtocoloFormatado(java.lang.String protocoloFormatado) { | ||
49 | + this.protocoloFormatado = protocoloFormatado; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the identificacao value for this ProtocoloBloco. | ||
55 | + * | ||
56 | + * @return identificacao | ||
57 | + */ | ||
58 | + public java.lang.String getIdentificacao() { | ||
59 | + return identificacao; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the identificacao value for this ProtocoloBloco. | ||
65 | + * | ||
66 | + * @param identificacao | ||
67 | + */ | ||
68 | + public void setIdentificacao(java.lang.String identificacao) { | ||
69 | + this.identificacao = identificacao; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the assinaturas value for this ProtocoloBloco. | ||
75 | + * | ||
76 | + * @return assinaturas | ||
77 | + */ | ||
78 | + public Assinatura[] getAssinaturas() { | ||
79 | + return assinaturas; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the assinaturas value for this ProtocoloBloco. | ||
85 | + * | ||
86 | + * @param assinaturas | ||
87 | + */ | ||
88 | + public void setAssinaturas(Assinatura[] assinaturas) { | ||
89 | + this.assinaturas = assinaturas; | ||
90 | + } | ||
91 | + | ||
92 | + private java.lang.Object __equalsCalc = null; | ||
93 | + public synchronized boolean equals(java.lang.Object obj) { | ||
94 | + if (!(obj instanceof ProtocoloBloco)) return false; | ||
95 | + ProtocoloBloco other = (ProtocoloBloco) obj; | ||
96 | + if (obj == null) return false; | ||
97 | + if (this == obj) return true; | ||
98 | + if (__equalsCalc != null) { | ||
99 | + return (__equalsCalc == obj); | ||
100 | + } | ||
101 | + __equalsCalc = obj; | ||
102 | + boolean _equals; | ||
103 | + _equals = true && | ||
104 | + ((this.protocoloFormatado==null && other.getProtocoloFormatado()==null) || | ||
105 | + (this.protocoloFormatado!=null && | ||
106 | + this.protocoloFormatado.equals(other.getProtocoloFormatado()))) && | ||
107 | + ((this.identificacao==null && other.getIdentificacao()==null) || | ||
108 | + (this.identificacao!=null && | ||
109 | + this.identificacao.equals(other.getIdentificacao()))) && | ||
110 | + ((this.assinaturas==null && other.getAssinaturas()==null) || | ||
111 | + (this.assinaturas!=null && | ||
112 | + java.util.Arrays.equals(this.assinaturas, other.getAssinaturas()))); | ||
113 | + __equalsCalc = null; | ||
114 | + return _equals; | ||
115 | + } | ||
116 | + | ||
117 | + private boolean __hashCodeCalc = false; | ||
118 | + public synchronized int hashCode() { | ||
119 | + if (__hashCodeCalc) { | ||
120 | + return 0; | ||
121 | + } | ||
122 | + __hashCodeCalc = true; | ||
123 | + int _hashCode = 1; | ||
124 | + if (getProtocoloFormatado() != null) { | ||
125 | + _hashCode += getProtocoloFormatado().hashCode(); | ||
126 | + } | ||
127 | + if (getIdentificacao() != null) { | ||
128 | + _hashCode += getIdentificacao().hashCode(); | ||
129 | + } | ||
130 | + if (getAssinaturas() != null) { | ||
131 | + for (int i=0; | ||
132 | + i<java.lang.reflect.Array.getLength(getAssinaturas()); | ||
133 | + i++) { | ||
134 | + java.lang.Object obj = java.lang.reflect.Array.get(getAssinaturas(), i); | ||
135 | + if (obj != null && | ||
136 | + !obj.getClass().isArray()) { | ||
137 | + _hashCode += obj.hashCode(); | ||
138 | + } | ||
139 | + } | ||
140 | + } | ||
141 | + __hashCodeCalc = false; | ||
142 | + return _hashCode; | ||
143 | + } | ||
144 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Publicacao.java | ||
@@ -0,0 +1,227 @@ | @@ -0,0 +1,227 @@ | ||
1 | +/** | ||
2 | + * Publicacao.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Publicacao implements java.io.Serializable { | ||
14 | + private java.lang.String nomeVeiculo; | ||
15 | + | ||
16 | + private java.lang.String numero; | ||
17 | + | ||
18 | + private java.lang.String dataDisponibilizacao; | ||
19 | + | ||
20 | + private java.lang.String dataPublicacao; | ||
21 | + | ||
22 | + private java.lang.String estado; | ||
23 | + | ||
24 | + private PublicacaoImprensaNacional imprensaNacional; | ||
25 | + | ||
26 | + public Publicacao() { | ||
27 | + } | ||
28 | + | ||
29 | + public Publicacao( | ||
30 | + java.lang.String nomeVeiculo, | ||
31 | + java.lang.String numero, | ||
32 | + java.lang.String dataDisponibilizacao, | ||
33 | + java.lang.String dataPublicacao, | ||
34 | + java.lang.String estado, | ||
35 | + PublicacaoImprensaNacional imprensaNacional) { | ||
36 | + this.nomeVeiculo = nomeVeiculo; | ||
37 | + this.numero = numero; | ||
38 | + this.dataDisponibilizacao = dataDisponibilizacao; | ||
39 | + this.dataPublicacao = dataPublicacao; | ||
40 | + this.estado = estado; | ||
41 | + this.imprensaNacional = imprensaNacional; | ||
42 | + } | ||
43 | + | ||
44 | + | ||
45 | + /** | ||
46 | + * Gets the nomeVeiculo value for this Publicacao. | ||
47 | + * | ||
48 | + * @return nomeVeiculo | ||
49 | + */ | ||
50 | + public java.lang.String getNomeVeiculo() { | ||
51 | + return nomeVeiculo; | ||
52 | + } | ||
53 | + | ||
54 | + | ||
55 | + /** | ||
56 | + * Sets the nomeVeiculo value for this Publicacao. | ||
57 | + * | ||
58 | + * @param nomeVeiculo | ||
59 | + */ | ||
60 | + public void setNomeVeiculo(java.lang.String nomeVeiculo) { | ||
61 | + this.nomeVeiculo = nomeVeiculo; | ||
62 | + } | ||
63 | + | ||
64 | + | ||
65 | + /** | ||
66 | + * Gets the numero value for this Publicacao. | ||
67 | + * | ||
68 | + * @return numero | ||
69 | + */ | ||
70 | + public java.lang.String getNumero() { | ||
71 | + return numero; | ||
72 | + } | ||
73 | + | ||
74 | + | ||
75 | + /** | ||
76 | + * Sets the numero value for this Publicacao. | ||
77 | + * | ||
78 | + * @param numero | ||
79 | + */ | ||
80 | + public void setNumero(java.lang.String numero) { | ||
81 | + this.numero = numero; | ||
82 | + } | ||
83 | + | ||
84 | + | ||
85 | + /** | ||
86 | + * Gets the dataDisponibilizacao value for this Publicacao. | ||
87 | + * | ||
88 | + * @return dataDisponibilizacao | ||
89 | + */ | ||
90 | + public java.lang.String getDataDisponibilizacao() { | ||
91 | + return dataDisponibilizacao; | ||
92 | + } | ||
93 | + | ||
94 | + | ||
95 | + /** | ||
96 | + * Sets the dataDisponibilizacao value for this Publicacao. | ||
97 | + * | ||
98 | + * @param dataDisponibilizacao | ||
99 | + */ | ||
100 | + public void setDataDisponibilizacao(java.lang.String dataDisponibilizacao) { | ||
101 | + this.dataDisponibilizacao = dataDisponibilizacao; | ||
102 | + } | ||
103 | + | ||
104 | + | ||
105 | + /** | ||
106 | + * Gets the dataPublicacao value for this Publicacao. | ||
107 | + * | ||
108 | + * @return dataPublicacao | ||
109 | + */ | ||
110 | + public java.lang.String getDataPublicacao() { | ||
111 | + return dataPublicacao; | ||
112 | + } | ||
113 | + | ||
114 | + | ||
115 | + /** | ||
116 | + * Sets the dataPublicacao value for this Publicacao. | ||
117 | + * | ||
118 | + * @param dataPublicacao | ||
119 | + */ | ||
120 | + public void setDataPublicacao(java.lang.String dataPublicacao) { | ||
121 | + this.dataPublicacao = dataPublicacao; | ||
122 | + } | ||
123 | + | ||
124 | + | ||
125 | + /** | ||
126 | + * Gets the estado value for this Publicacao. | ||
127 | + * | ||
128 | + * @return estado | ||
129 | + */ | ||
130 | + public java.lang.String getEstado() { | ||
131 | + return estado; | ||
132 | + } | ||
133 | + | ||
134 | + | ||
135 | + /** | ||
136 | + * Sets the estado value for this Publicacao. | ||
137 | + * | ||
138 | + * @param estado | ||
139 | + */ | ||
140 | + public void setEstado(java.lang.String estado) { | ||
141 | + this.estado = estado; | ||
142 | + } | ||
143 | + | ||
144 | + | ||
145 | + /** | ||
146 | + * Gets the imprensaNacional value for this Publicacao. | ||
147 | + * | ||
148 | + * @return imprensaNacional | ||
149 | + */ | ||
150 | + public PublicacaoImprensaNacional getImprensaNacional() { | ||
151 | + return imprensaNacional; | ||
152 | + } | ||
153 | + | ||
154 | + | ||
155 | + /** | ||
156 | + * Sets the imprensaNacional value for this Publicacao. | ||
157 | + * | ||
158 | + * @param imprensaNacional | ||
159 | + */ | ||
160 | + public void setImprensaNacional(PublicacaoImprensaNacional imprensaNacional) { | ||
161 | + this.imprensaNacional = imprensaNacional; | ||
162 | + } | ||
163 | + | ||
164 | + private java.lang.Object __equalsCalc = null; | ||
165 | + public synchronized boolean equals(java.lang.Object obj) { | ||
166 | + if (!(obj instanceof Publicacao)) return false; | ||
167 | + Publicacao other = (Publicacao) obj; | ||
168 | + if (obj == null) return false; | ||
169 | + if (this == obj) return true; | ||
170 | + if (__equalsCalc != null) { | ||
171 | + return (__equalsCalc == obj); | ||
172 | + } | ||
173 | + __equalsCalc = obj; | ||
174 | + boolean _equals; | ||
175 | + _equals = true && | ||
176 | + ((this.nomeVeiculo==null && other.getNomeVeiculo()==null) || | ||
177 | + (this.nomeVeiculo!=null && | ||
178 | + this.nomeVeiculo.equals(other.getNomeVeiculo()))) && | ||
179 | + ((this.numero==null && other.getNumero()==null) || | ||
180 | + (this.numero!=null && | ||
181 | + this.numero.equals(other.getNumero()))) && | ||
182 | + ((this.dataDisponibilizacao==null && other.getDataDisponibilizacao()==null) || | ||
183 | + (this.dataDisponibilizacao!=null && | ||
184 | + this.dataDisponibilizacao.equals(other.getDataDisponibilizacao()))) && | ||
185 | + ((this.dataPublicacao==null && other.getDataPublicacao()==null) || | ||
186 | + (this.dataPublicacao!=null && | ||
187 | + this.dataPublicacao.equals(other.getDataPublicacao()))) && | ||
188 | + ((this.estado==null && other.getEstado()==null) || | ||
189 | + (this.estado!=null && | ||
190 | + this.estado.equals(other.getEstado()))) && | ||
191 | + ((this.imprensaNacional==null && other.getImprensaNacional()==null) || | ||
192 | + (this.imprensaNacional!=null && | ||
193 | + this.imprensaNacional.equals(other.getImprensaNacional()))); | ||
194 | + __equalsCalc = null; | ||
195 | + return _equals; | ||
196 | + } | ||
197 | + | ||
198 | + private boolean __hashCodeCalc = false; | ||
199 | + public synchronized int hashCode() { | ||
200 | + if (__hashCodeCalc) { | ||
201 | + return 0; | ||
202 | + } | ||
203 | + __hashCodeCalc = true; | ||
204 | + int _hashCode = 1; | ||
205 | + if (getNomeVeiculo() != null) { | ||
206 | + _hashCode += getNomeVeiculo().hashCode(); | ||
207 | + } | ||
208 | + if (getNumero() != null) { | ||
209 | + _hashCode += getNumero().hashCode(); | ||
210 | + } | ||
211 | + if (getDataDisponibilizacao() != null) { | ||
212 | + _hashCode += getDataDisponibilizacao().hashCode(); | ||
213 | + } | ||
214 | + if (getDataPublicacao() != null) { | ||
215 | + _hashCode += getDataPublicacao().hashCode(); | ||
216 | + } | ||
217 | + if (getEstado() != null) { | ||
218 | + _hashCode += getEstado().hashCode(); | ||
219 | + } | ||
220 | + if (getImprensaNacional() != null) { | ||
221 | + _hashCode += getImprensaNacional().hashCode(); | ||
222 | + } | ||
223 | + __hashCodeCalc = false; | ||
224 | + return _hashCode; | ||
225 | + } | ||
226 | + | ||
227 | +} |
src/main/java/br/gov/ans/sei/modelo/PublicacaoImprensaNacional.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/PublicacaoImprensaNacional.java | ||
@@ -0,0 +1,197 @@ | @@ -0,0 +1,197 @@ | ||
1 | +/** | ||
2 | + * PublicacaoImprensaNacional.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class PublicacaoImprensaNacional implements java.io.Serializable { | ||
14 | + private java.lang.String siglaVeiculo; | ||
15 | + | ||
16 | + private java.lang.String descricaoVeiculo; | ||
17 | + | ||
18 | + private java.lang.String pagina; | ||
19 | + | ||
20 | + private java.lang.String secao; | ||
21 | + | ||
22 | + private java.lang.String data; | ||
23 | + | ||
24 | + public PublicacaoImprensaNacional() { | ||
25 | + } | ||
26 | + | ||
27 | + public PublicacaoImprensaNacional( | ||
28 | + java.lang.String siglaVeiculo, | ||
29 | + java.lang.String descricaoVeiculo, | ||
30 | + java.lang.String pagina, | ||
31 | + java.lang.String secao, | ||
32 | + java.lang.String data) { | ||
33 | + this.siglaVeiculo = siglaVeiculo; | ||
34 | + this.descricaoVeiculo = descricaoVeiculo; | ||
35 | + this.pagina = pagina; | ||
36 | + this.secao = secao; | ||
37 | + this.data = data; | ||
38 | + } | ||
39 | + | ||
40 | + | ||
41 | + /** | ||
42 | + * Gets the siglaVeiculo value for this PublicacaoImprensaNacional. | ||
43 | + * | ||
44 | + * @return siglaVeiculo | ||
45 | + */ | ||
46 | + public java.lang.String getSiglaVeiculo() { | ||
47 | + return siglaVeiculo; | ||
48 | + } | ||
49 | + | ||
50 | + | ||
51 | + /** | ||
52 | + * Sets the siglaVeiculo value for this PublicacaoImprensaNacional. | ||
53 | + * | ||
54 | + * @param siglaVeiculo | ||
55 | + */ | ||
56 | + public void setSiglaVeiculo(java.lang.String siglaVeiculo) { | ||
57 | + this.siglaVeiculo = siglaVeiculo; | ||
58 | + } | ||
59 | + | ||
60 | + | ||
61 | + /** | ||
62 | + * Gets the descricaoVeiculo value for this PublicacaoImprensaNacional. | ||
63 | + * | ||
64 | + * @return descricaoVeiculo | ||
65 | + */ | ||
66 | + public java.lang.String getDescricaoVeiculo() { | ||
67 | + return descricaoVeiculo; | ||
68 | + } | ||
69 | + | ||
70 | + | ||
71 | + /** | ||
72 | + * Sets the descricaoVeiculo value for this PublicacaoImprensaNacional. | ||
73 | + * | ||
74 | + * @param descricaoVeiculo | ||
75 | + */ | ||
76 | + public void setDescricaoVeiculo(java.lang.String descricaoVeiculo) { | ||
77 | + this.descricaoVeiculo = descricaoVeiculo; | ||
78 | + } | ||
79 | + | ||
80 | + | ||
81 | + /** | ||
82 | + * Gets the pagina value for this PublicacaoImprensaNacional. | ||
83 | + * | ||
84 | + * @return pagina | ||
85 | + */ | ||
86 | + public java.lang.String getPagina() { | ||
87 | + return pagina; | ||
88 | + } | ||
89 | + | ||
90 | + | ||
91 | + /** | ||
92 | + * Sets the pagina value for this PublicacaoImprensaNacional. | ||
93 | + * | ||
94 | + * @param pagina | ||
95 | + */ | ||
96 | + public void setPagina(java.lang.String pagina) { | ||
97 | + this.pagina = pagina; | ||
98 | + } | ||
99 | + | ||
100 | + | ||
101 | + /** | ||
102 | + * Gets the secao value for this PublicacaoImprensaNacional. | ||
103 | + * | ||
104 | + * @return secao | ||
105 | + */ | ||
106 | + public java.lang.String getSecao() { | ||
107 | + return secao; | ||
108 | + } | ||
109 | + | ||
110 | + | ||
111 | + /** | ||
112 | + * Sets the secao value for this PublicacaoImprensaNacional. | ||
113 | + * | ||
114 | + * @param secao | ||
115 | + */ | ||
116 | + public void setSecao(java.lang.String secao) { | ||
117 | + this.secao = secao; | ||
118 | + } | ||
119 | + | ||
120 | + | ||
121 | + /** | ||
122 | + * Gets the data value for this PublicacaoImprensaNacional. | ||
123 | + * | ||
124 | + * @return data | ||
125 | + */ | ||
126 | + public java.lang.String getData() { | ||
127 | + return data; | ||
128 | + } | ||
129 | + | ||
130 | + | ||
131 | + /** | ||
132 | + * Sets the data value for this PublicacaoImprensaNacional. | ||
133 | + * | ||
134 | + * @param data | ||
135 | + */ | ||
136 | + public void setData(java.lang.String data) { | ||
137 | + this.data = data; | ||
138 | + } | ||
139 | + | ||
140 | + private java.lang.Object __equalsCalc = null; | ||
141 | + public synchronized boolean equals(java.lang.Object obj) { | ||
142 | + if (!(obj instanceof PublicacaoImprensaNacional)) return false; | ||
143 | + PublicacaoImprensaNacional other = (PublicacaoImprensaNacional) obj; | ||
144 | + if (obj == null) return false; | ||
145 | + if (this == obj) return true; | ||
146 | + if (__equalsCalc != null) { | ||
147 | + return (__equalsCalc == obj); | ||
148 | + } | ||
149 | + __equalsCalc = obj; | ||
150 | + boolean _equals; | ||
151 | + _equals = true && | ||
152 | + ((this.siglaVeiculo==null && other.getSiglaVeiculo()==null) || | ||
153 | + (this.siglaVeiculo!=null && | ||
154 | + this.siglaVeiculo.equals(other.getSiglaVeiculo()))) && | ||
155 | + ((this.descricaoVeiculo==null && other.getDescricaoVeiculo()==null) || | ||
156 | + (this.descricaoVeiculo!=null && | ||
157 | + this.descricaoVeiculo.equals(other.getDescricaoVeiculo()))) && | ||
158 | + ((this.pagina==null && other.getPagina()==null) || | ||
159 | + (this.pagina!=null && | ||
160 | + this.pagina.equals(other.getPagina()))) && | ||
161 | + ((this.secao==null && other.getSecao()==null) || | ||
162 | + (this.secao!=null && | ||
163 | + this.secao.equals(other.getSecao()))) && | ||
164 | + ((this.data==null && other.getData()==null) || | ||
165 | + (this.data!=null && | ||
166 | + this.data.equals(other.getData()))); | ||
167 | + __equalsCalc = null; | ||
168 | + return _equals; | ||
169 | + } | ||
170 | + | ||
171 | + private boolean __hashCodeCalc = false; | ||
172 | + public synchronized int hashCode() { | ||
173 | + if (__hashCodeCalc) { | ||
174 | + return 0; | ||
175 | + } | ||
176 | + __hashCodeCalc = true; | ||
177 | + int _hashCode = 1; | ||
178 | + if (getSiglaVeiculo() != null) { | ||
179 | + _hashCode += getSiglaVeiculo().hashCode(); | ||
180 | + } | ||
181 | + if (getDescricaoVeiculo() != null) { | ||
182 | + _hashCode += getDescricaoVeiculo().hashCode(); | ||
183 | + } | ||
184 | + if (getPagina() != null) { | ||
185 | + _hashCode += getPagina().hashCode(); | ||
186 | + } | ||
187 | + if (getSecao() != null) { | ||
188 | + _hashCode += getSecao().hashCode(); | ||
189 | + } | ||
190 | + if (getData() != null) { | ||
191 | + _hashCode += getData().hashCode(); | ||
192 | + } | ||
193 | + __hashCodeCalc = false; | ||
194 | + return _hashCode; | ||
195 | + } | ||
196 | + | ||
197 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Remetente.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * Remetente.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Remetente implements java.io.Serializable { | ||
14 | + private java.lang.String sigla; | ||
15 | + | ||
16 | + private java.lang.String nome; | ||
17 | + | ||
18 | + public Remetente() { | ||
19 | + } | ||
20 | + | ||
21 | + public Remetente( | ||
22 | + java.lang.String sigla, | ||
23 | + java.lang.String nome) { | ||
24 | + this.sigla = sigla; | ||
25 | + this.nome = nome; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the sigla value for this Remetente. | ||
31 | + * | ||
32 | + * @return sigla | ||
33 | + */ | ||
34 | + public java.lang.String getSigla() { | ||
35 | + return sigla; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the sigla value for this Remetente. | ||
41 | + * | ||
42 | + * @param sigla | ||
43 | + */ | ||
44 | + public void setSigla(java.lang.String sigla) { | ||
45 | + this.sigla = sigla; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the nome value for this Remetente. | ||
51 | + * | ||
52 | + * @return nome | ||
53 | + */ | ||
54 | + public java.lang.String getNome() { | ||
55 | + return nome; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the nome value for this Remetente. | ||
61 | + * | ||
62 | + * @param nome | ||
63 | + */ | ||
64 | + public void setNome(java.lang.String nome) { | ||
65 | + this.nome = nome; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof Remetente)) return false; | ||
71 | + Remetente other = (Remetente) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.sigla==null && other.getSigla()==null) || | ||
81 | + (this.sigla!=null && | ||
82 | + this.sigla.equals(other.getSigla()))) && | ||
83 | + ((this.nome==null && other.getNome()==null) || | ||
84 | + (this.nome!=null && | ||
85 | + this.nome.equals(other.getNome()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getSigla() != null) { | ||
98 | + _hashCode += getSigla().hashCode(); | ||
99 | + } | ||
100 | + if (getNome() != null) { | ||
101 | + _hashCode += getNome().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
src/main/java/br/gov/ans/sei/modelo/ResultadoConsultaProcesso.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/ResultadoConsultaProcesso.java | ||
@@ -0,0 +1,27 @@ | @@ -0,0 +1,27 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
2 | + | ||
3 | +import javax.xml.bind.annotation.XmlRootElement; | ||
4 | + | ||
5 | +@XmlRootElement | ||
6 | +public class ResultadoConsultaProcesso { | ||
7 | + | ||
8 | + private DocumentoSipar sipar; | ||
9 | + private RetornoConsultaProcedimento sei; | ||
10 | + | ||
11 | + public DocumentoSipar getSipar() { | ||
12 | + return sipar; | ||
13 | + } | ||
14 | + | ||
15 | + public void setSipar(DocumentoSipar sipar) { | ||
16 | + this.sipar = sipar; | ||
17 | + } | ||
18 | + | ||
19 | + public RetornoConsultaProcedimento getSei() { | ||
20 | + return sei; | ||
21 | + } | ||
22 | + | ||
23 | + public void setSei(RetornoConsultaProcedimento sei) { | ||
24 | + this.sei = sei; | ||
25 | + } | ||
26 | + | ||
27 | +} |
src/main/java/br/gov/ans/sei/modelo/RetornoConsultaBloco.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/RetornoConsultaBloco.java | ||
@@ -0,0 +1,303 @@ | @@ -0,0 +1,303 @@ | ||
1 | +/** | ||
2 | + * RetornoConsultaBloco.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class RetornoConsultaBloco implements java.io.Serializable { | ||
14 | + private java.lang.String idBloco; | ||
15 | + | ||
16 | + private Unidade unidade; | ||
17 | + | ||
18 | + private Usuario usuario; | ||
19 | + | ||
20 | + private java.lang.String descricao; | ||
21 | + | ||
22 | + private java.lang.String tipo; | ||
23 | + | ||
24 | + private java.lang.String estado; | ||
25 | + | ||
26 | + private Unidade[] unidadesDisponibilizacao; | ||
27 | + | ||
28 | + private ProtocoloBloco[] protocolos; | ||
29 | + | ||
30 | + public RetornoConsultaBloco() { | ||
31 | + } | ||
32 | + | ||
33 | + public RetornoConsultaBloco( | ||
34 | + java.lang.String idBloco, | ||
35 | + Unidade unidade, | ||
36 | + Usuario usuario, | ||
37 | + java.lang.String descricao, | ||
38 | + java.lang.String tipo, | ||
39 | + java.lang.String estado, | ||
40 | + Unidade[] unidadesDisponibilizacao, | ||
41 | + ProtocoloBloco[] protocolos) { | ||
42 | + this.idBloco = idBloco; | ||
43 | + this.unidade = unidade; | ||
44 | + this.usuario = usuario; | ||
45 | + this.descricao = descricao; | ||
46 | + this.tipo = tipo; | ||
47 | + this.estado = estado; | ||
48 | + this.unidadesDisponibilizacao = unidadesDisponibilizacao; | ||
49 | + this.protocolos = protocolos; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the idBloco value for this RetornoConsultaBloco. | ||
55 | + * | ||
56 | + * @return idBloco | ||
57 | + */ | ||
58 | + public java.lang.String getIdBloco() { | ||
59 | + return idBloco; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the idBloco value for this RetornoConsultaBloco. | ||
65 | + * | ||
66 | + * @param idBloco | ||
67 | + */ | ||
68 | + public void setIdBloco(java.lang.String idBloco) { | ||
69 | + this.idBloco = idBloco; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the unidade value for this RetornoConsultaBloco. | ||
75 | + * | ||
76 | + * @return unidade | ||
77 | + */ | ||
78 | + public Unidade getUnidade() { | ||
79 | + return unidade; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the unidade value for this RetornoConsultaBloco. | ||
85 | + * | ||
86 | + * @param unidade | ||
87 | + */ | ||
88 | + public void setUnidade(Unidade unidade) { | ||
89 | + this.unidade = unidade; | ||
90 | + } | ||
91 | + | ||
92 | + | ||
93 | + /** | ||
94 | + * Gets the usuario value for this RetornoConsultaBloco. | ||
95 | + * | ||
96 | + * @return usuario | ||
97 | + */ | ||
98 | + public Usuario getUsuario() { | ||
99 | + return usuario; | ||
100 | + } | ||
101 | + | ||
102 | + | ||
103 | + /** | ||
104 | + * Sets the usuario value for this RetornoConsultaBloco. | ||
105 | + * | ||
106 | + * @param usuario | ||
107 | + */ | ||
108 | + public void setUsuario(Usuario usuario) { | ||
109 | + this.usuario = usuario; | ||
110 | + } | ||
111 | + | ||
112 | + | ||
113 | + /** | ||
114 | + * Gets the descricao value for this RetornoConsultaBloco. | ||
115 | + * | ||
116 | + * @return descricao | ||
117 | + */ | ||
118 | + public java.lang.String getDescricao() { | ||
119 | + return descricao; | ||
120 | + } | ||
121 | + | ||
122 | + | ||
123 | + /** | ||
124 | + * Sets the descricao value for this RetornoConsultaBloco. | ||
125 | + * | ||
126 | + * @param descricao | ||
127 | + */ | ||
128 | + public void setDescricao(java.lang.String descricao) { | ||
129 | + this.descricao = descricao; | ||
130 | + } | ||
131 | + | ||
132 | + | ||
133 | + /** | ||
134 | + * Gets the tipo value for this RetornoConsultaBloco. | ||
135 | + * | ||
136 | + * @return tipo | ||
137 | + */ | ||
138 | + public java.lang.String getTipo() { | ||
139 | + return tipo; | ||
140 | + } | ||
141 | + | ||
142 | + | ||
143 | + /** | ||
144 | + * Sets the tipo value for this RetornoConsultaBloco. | ||
145 | + * | ||
146 | + * @param tipo | ||
147 | + */ | ||
148 | + public void setTipo(java.lang.String tipo) { | ||
149 | + this.tipo = tipo; | ||
150 | + } | ||
151 | + | ||
152 | + | ||
153 | + /** | ||
154 | + * Gets the estado value for this RetornoConsultaBloco. | ||
155 | + * | ||
156 | + * @return estado | ||
157 | + */ | ||
158 | + public java.lang.String getEstado() { | ||
159 | + return estado; | ||
160 | + } | ||
161 | + | ||
162 | + | ||
163 | + /** | ||
164 | + * Sets the estado value for this RetornoConsultaBloco. | ||
165 | + * | ||
166 | + * @param estado | ||
167 | + */ | ||
168 | + public void setEstado(java.lang.String estado) { | ||
169 | + this.estado = estado; | ||
170 | + } | ||
171 | + | ||
172 | + | ||
173 | + /** | ||
174 | + * Gets the unidadesDisponibilizacao value for this RetornoConsultaBloco. | ||
175 | + * | ||
176 | + * @return unidadesDisponibilizacao | ||
177 | + */ | ||
178 | + public Unidade[] getUnidadesDisponibilizacao() { | ||
179 | + return unidadesDisponibilizacao; | ||
180 | + } | ||
181 | + | ||
182 | + | ||
183 | + /** | ||
184 | + * Sets the unidadesDisponibilizacao value for this RetornoConsultaBloco. | ||
185 | + * | ||
186 | + * @param unidadesDisponibilizacao | ||
187 | + */ | ||
188 | + public void setUnidadesDisponibilizacao(Unidade[] unidadesDisponibilizacao) { | ||
189 | + this.unidadesDisponibilizacao = unidadesDisponibilizacao; | ||
190 | + } | ||
191 | + | ||
192 | + | ||
193 | + /** | ||
194 | + * Gets the protocolos value for this RetornoConsultaBloco. | ||
195 | + * | ||
196 | + * @return protocolos | ||
197 | + */ | ||
198 | + public ProtocoloBloco[] getProtocolos() { | ||
199 | + return protocolos; | ||
200 | + } | ||
201 | + | ||
202 | + | ||
203 | + /** | ||
204 | + * Sets the protocolos value for this RetornoConsultaBloco. | ||
205 | + * | ||
206 | + * @param protocolos | ||
207 | + */ | ||
208 | + public void setProtocolos(ProtocoloBloco[] protocolos) { | ||
209 | + this.protocolos = protocolos; | ||
210 | + } | ||
211 | + | ||
212 | + private java.lang.Object __equalsCalc = null; | ||
213 | + public synchronized boolean equals(java.lang.Object obj) { | ||
214 | + if (!(obj instanceof RetornoConsultaBloco)) return false; | ||
215 | + RetornoConsultaBloco other = (RetornoConsultaBloco) obj; | ||
216 | + if (obj == null) return false; | ||
217 | + if (this == obj) return true; | ||
218 | + if (__equalsCalc != null) { | ||
219 | + return (__equalsCalc == obj); | ||
220 | + } | ||
221 | + __equalsCalc = obj; | ||
222 | + boolean _equals; | ||
223 | + _equals = true && | ||
224 | + ((this.idBloco==null && other.getIdBloco()==null) || | ||
225 | + (this.idBloco!=null && | ||
226 | + this.idBloco.equals(other.getIdBloco()))) && | ||
227 | + ((this.unidade==null && other.getUnidade()==null) || | ||
228 | + (this.unidade!=null && | ||
229 | + this.unidade.equals(other.getUnidade()))) && | ||
230 | + ((this.usuario==null && other.getUsuario()==null) || | ||
231 | + (this.usuario!=null && | ||
232 | + this.usuario.equals(other.getUsuario()))) && | ||
233 | + ((this.descricao==null && other.getDescricao()==null) || | ||
234 | + (this.descricao!=null && | ||
235 | + this.descricao.equals(other.getDescricao()))) && | ||
236 | + ((this.tipo==null && other.getTipo()==null) || | ||
237 | + (this.tipo!=null && | ||
238 | + this.tipo.equals(other.getTipo()))) && | ||
239 | + ((this.estado==null && other.getEstado()==null) || | ||
240 | + (this.estado!=null && | ||
241 | + this.estado.equals(other.getEstado()))) && | ||
242 | + ((this.unidadesDisponibilizacao==null && other.getUnidadesDisponibilizacao()==null) || | ||
243 | + (this.unidadesDisponibilizacao!=null && | ||
244 | + java.util.Arrays.equals(this.unidadesDisponibilizacao, other.getUnidadesDisponibilizacao()))) && | ||
245 | + ((this.protocolos==null && other.getProtocolos()==null) || | ||
246 | + (this.protocolos!=null && | ||
247 | + java.util.Arrays.equals(this.protocolos, other.getProtocolos()))); | ||
248 | + __equalsCalc = null; | ||
249 | + return _equals; | ||
250 | + } | ||
251 | + | ||
252 | + private boolean __hashCodeCalc = false; | ||
253 | + public synchronized int hashCode() { | ||
254 | + if (__hashCodeCalc) { | ||
255 | + return 0; | ||
256 | + } | ||
257 | + __hashCodeCalc = true; | ||
258 | + int _hashCode = 1; | ||
259 | + if (getIdBloco() != null) { | ||
260 | + _hashCode += getIdBloco().hashCode(); | ||
261 | + } | ||
262 | + if (getUnidade() != null) { | ||
263 | + _hashCode += getUnidade().hashCode(); | ||
264 | + } | ||
265 | + if (getUsuario() != null) { | ||
266 | + _hashCode += getUsuario().hashCode(); | ||
267 | + } | ||
268 | + if (getDescricao() != null) { | ||
269 | + _hashCode += getDescricao().hashCode(); | ||
270 | + } | ||
271 | + if (getTipo() != null) { | ||
272 | + _hashCode += getTipo().hashCode(); | ||
273 | + } | ||
274 | + if (getEstado() != null) { | ||
275 | + _hashCode += getEstado().hashCode(); | ||
276 | + } | ||
277 | + if (getUnidadesDisponibilizacao() != null) { | ||
278 | + for (int i=0; | ||
279 | + i<java.lang.reflect.Array.getLength(getUnidadesDisponibilizacao()); | ||
280 | + i++) { | ||
281 | + java.lang.Object obj = java.lang.reflect.Array.get(getUnidadesDisponibilizacao(), i); | ||
282 | + if (obj != null && | ||
283 | + !obj.getClass().isArray()) { | ||
284 | + _hashCode += obj.hashCode(); | ||
285 | + } | ||
286 | + } | ||
287 | + } | ||
288 | + if (getProtocolos() != null) { | ||
289 | + for (int i=0; | ||
290 | + i<java.lang.reflect.Array.getLength(getProtocolos()); | ||
291 | + i++) { | ||
292 | + java.lang.Object obj = java.lang.reflect.Array.get(getProtocolos(), i); | ||
293 | + if (obj != null && | ||
294 | + !obj.getClass().isArray()) { | ||
295 | + _hashCode += obj.hashCode(); | ||
296 | + } | ||
297 | + } | ||
298 | + } | ||
299 | + __hashCodeCalc = false; | ||
300 | + return _hashCode; | ||
301 | + } | ||
302 | + | ||
303 | +} |
src/main/java/br/gov/ans/sei/modelo/RetornoConsultaDocumento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/RetornoConsultaDocumento.java | ||
@@ -0,0 +1,415 @@ | @@ -0,0 +1,415 @@ | ||
1 | +/** | ||
2 | + * RetornoConsultaDocumento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class RetornoConsultaDocumento implements java.io.Serializable { | ||
14 | + private java.lang.String idProcedimento; | ||
15 | + | ||
16 | + private java.lang.String procedimentoFormatado; | ||
17 | + | ||
18 | + private java.lang.String idDocumento; | ||
19 | + | ||
20 | + private java.lang.String documentoFormatado; | ||
21 | + | ||
22 | + private java.lang.String linkAcesso; | ||
23 | + | ||
24 | + private Serie serie; | ||
25 | + | ||
26 | + private java.lang.String numero; | ||
27 | + | ||
28 | + private java.lang.String data; | ||
29 | + | ||
30 | + private Unidade unidadeElaboradora; | ||
31 | + | ||
32 | + private Andamento andamentoGeracao; | ||
33 | + | ||
34 | + private Assinatura[] assinaturas; | ||
35 | + | ||
36 | + private Publicacao publicacao; | ||
37 | + | ||
38 | + public RetornoConsultaDocumento() { | ||
39 | + } | ||
40 | + | ||
41 | + public RetornoConsultaDocumento( | ||
42 | + java.lang.String idProcedimento, | ||
43 | + java.lang.String procedimentoFormatado, | ||
44 | + java.lang.String idDocumento, | ||
45 | + java.lang.String documentoFormatado, | ||
46 | + java.lang.String linkAcesso, | ||
47 | + Serie serie, | ||
48 | + java.lang.String numero, | ||
49 | + java.lang.String data, | ||
50 | + Unidade unidadeElaboradora, | ||
51 | + Andamento andamentoGeracao, | ||
52 | + Assinatura[] assinaturas, | ||
53 | + Publicacao publicacao) { | ||
54 | + this.idProcedimento = idProcedimento; | ||
55 | + this.procedimentoFormatado = procedimentoFormatado; | ||
56 | + this.idDocumento = idDocumento; | ||
57 | + this.documentoFormatado = documentoFormatado; | ||
58 | + this.linkAcesso = linkAcesso; | ||
59 | + this.serie = serie; | ||
60 | + this.numero = numero; | ||
61 | + this.data = data; | ||
62 | + this.unidadeElaboradora = unidadeElaboradora; | ||
63 | + this.andamentoGeracao = andamentoGeracao; | ||
64 | + this.assinaturas = assinaturas; | ||
65 | + this.publicacao = publicacao; | ||
66 | + } | ||
67 | + | ||
68 | + | ||
69 | + /** | ||
70 | + * Gets the idProcedimento value for this RetornoConsultaDocumento. | ||
71 | + * | ||
72 | + * @return idProcedimento | ||
73 | + */ | ||
74 | + public java.lang.String getIdProcedimento() { | ||
75 | + return idProcedimento; | ||
76 | + } | ||
77 | + | ||
78 | + | ||
79 | + /** | ||
80 | + * Sets the idProcedimento value for this RetornoConsultaDocumento. | ||
81 | + * | ||
82 | + * @param idProcedimento | ||
83 | + */ | ||
84 | + public void setIdProcedimento(java.lang.String idProcedimento) { | ||
85 | + this.idProcedimento = idProcedimento; | ||
86 | + } | ||
87 | + | ||
88 | + | ||
89 | + /** | ||
90 | + * Gets the procedimentoFormatado value for this RetornoConsultaDocumento. | ||
91 | + * | ||
92 | + * @return procedimentoFormatado | ||
93 | + */ | ||
94 | + public java.lang.String getProcedimentoFormatado() { | ||
95 | + return procedimentoFormatado; | ||
96 | + } | ||
97 | + | ||
98 | + | ||
99 | + /** | ||
100 | + * Sets the procedimentoFormatado value for this RetornoConsultaDocumento. | ||
101 | + * | ||
102 | + * @param procedimentoFormatado | ||
103 | + */ | ||
104 | + public void setProcedimentoFormatado(java.lang.String procedimentoFormatado) { | ||
105 | + this.procedimentoFormatado = procedimentoFormatado; | ||
106 | + } | ||
107 | + | ||
108 | + | ||
109 | + /** | ||
110 | + * Gets the idDocumento value for this RetornoConsultaDocumento. | ||
111 | + * | ||
112 | + * @return idDocumento | ||
113 | + */ | ||
114 | + public java.lang.String getIdDocumento() { | ||
115 | + return idDocumento; | ||
116 | + } | ||
117 | + | ||
118 | + | ||
119 | + /** | ||
120 | + * Sets the idDocumento value for this RetornoConsultaDocumento. | ||
121 | + * | ||
122 | + * @param idDocumento | ||
123 | + */ | ||
124 | + public void setIdDocumento(java.lang.String idDocumento) { | ||
125 | + this.idDocumento = idDocumento; | ||
126 | + } | ||
127 | + | ||
128 | + | ||
129 | + /** | ||
130 | + * Gets the documentoFormatado value for this RetornoConsultaDocumento. | ||
131 | + * | ||
132 | + * @return documentoFormatado | ||
133 | + */ | ||
134 | + public java.lang.String getDocumentoFormatado() { | ||
135 | + return documentoFormatado; | ||
136 | + } | ||
137 | + | ||
138 | + | ||
139 | + /** | ||
140 | + * Sets the documentoFormatado value for this RetornoConsultaDocumento. | ||
141 | + * | ||
142 | + * @param documentoFormatado | ||
143 | + */ | ||
144 | + public void setDocumentoFormatado(java.lang.String documentoFormatado) { | ||
145 | + this.documentoFormatado = documentoFormatado; | ||
146 | + } | ||
147 | + | ||
148 | + | ||
149 | + /** | ||
150 | + * Gets the linkAcesso value for this RetornoConsultaDocumento. | ||
151 | + * | ||
152 | + * @return linkAcesso | ||
153 | + */ | ||
154 | + public java.lang.String getLinkAcesso() { | ||
155 | + return linkAcesso; | ||
156 | + } | ||
157 | + | ||
158 | + | ||
159 | + /** | ||
160 | + * Sets the linkAcesso value for this RetornoConsultaDocumento. | ||
161 | + * | ||
162 | + * @param linkAcesso | ||
163 | + */ | ||
164 | + public void setLinkAcesso(java.lang.String linkAcesso) { | ||
165 | + this.linkAcesso = linkAcesso; | ||
166 | + } | ||
167 | + | ||
168 | + | ||
169 | + /** | ||
170 | + * Gets the serie value for this RetornoConsultaDocumento. | ||
171 | + * | ||
172 | + * @return serie | ||
173 | + */ | ||
174 | + public Serie getSerie() { | ||
175 | + return serie; | ||
176 | + } | ||
177 | + | ||
178 | + | ||
179 | + /** | ||
180 | + * Sets the serie value for this RetornoConsultaDocumento. | ||
181 | + * | ||
182 | + * @param serie | ||
183 | + */ | ||
184 | + public void setSerie(Serie serie) { | ||
185 | + this.serie = serie; | ||
186 | + } | ||
187 | + | ||
188 | + | ||
189 | + /** | ||
190 | + * Gets the numero value for this RetornoConsultaDocumento. | ||
191 | + * | ||
192 | + * @return numero | ||
193 | + */ | ||
194 | + public java.lang.String getNumero() { | ||
195 | + return numero; | ||
196 | + } | ||
197 | + | ||
198 | + | ||
199 | + /** | ||
200 | + * Sets the numero value for this RetornoConsultaDocumento. | ||
201 | + * | ||
202 | + * @param numero | ||
203 | + */ | ||
204 | + public void setNumero(java.lang.String numero) { | ||
205 | + this.numero = numero; | ||
206 | + } | ||
207 | + | ||
208 | + | ||
209 | + /** | ||
210 | + * Gets the data value for this RetornoConsultaDocumento. | ||
211 | + * | ||
212 | + * @return data | ||
213 | + */ | ||
214 | + public java.lang.String getData() { | ||
215 | + return data; | ||
216 | + } | ||
217 | + | ||
218 | + | ||
219 | + /** | ||
220 | + * Sets the data value for this RetornoConsultaDocumento. | ||
221 | + * | ||
222 | + * @param data | ||
223 | + */ | ||
224 | + public void setData(java.lang.String data) { | ||
225 | + this.data = data; | ||
226 | + } | ||
227 | + | ||
228 | + | ||
229 | + /** | ||
230 | + * Gets the unidadeElaboradora value for this RetornoConsultaDocumento. | ||
231 | + * | ||
232 | + * @return unidadeElaboradora | ||
233 | + */ | ||
234 | + public Unidade getUnidadeElaboradora() { | ||
235 | + return unidadeElaboradora; | ||
236 | + } | ||
237 | + | ||
238 | + | ||
239 | + /** | ||
240 | + * Sets the unidadeElaboradora value for this RetornoConsultaDocumento. | ||
241 | + * | ||
242 | + * @param unidadeElaboradora | ||
243 | + */ | ||
244 | + public void setUnidadeElaboradora(Unidade unidadeElaboradora) { | ||
245 | + this.unidadeElaboradora = unidadeElaboradora; | ||
246 | + } | ||
247 | + | ||
248 | + | ||
249 | + /** | ||
250 | + * Gets the andamentoGeracao value for this RetornoConsultaDocumento. | ||
251 | + * | ||
252 | + * @return andamentoGeracao | ||
253 | + */ | ||
254 | + public Andamento getAndamentoGeracao() { | ||
255 | + return andamentoGeracao; | ||
256 | + } | ||
257 | + | ||
258 | + | ||
259 | + /** | ||
260 | + * Sets the andamentoGeracao value for this RetornoConsultaDocumento. | ||
261 | + * | ||
262 | + * @param andamentoGeracao | ||
263 | + */ | ||
264 | + public void setAndamentoGeracao(Andamento andamentoGeracao) { | ||
265 | + this.andamentoGeracao = andamentoGeracao; | ||
266 | + } | ||
267 | + | ||
268 | + | ||
269 | + /** | ||
270 | + * Gets the assinaturas value for this RetornoConsultaDocumento. | ||
271 | + * | ||
272 | + * @return assinaturas | ||
273 | + */ | ||
274 | + public Assinatura[] getAssinaturas() { | ||
275 | + return assinaturas; | ||
276 | + } | ||
277 | + | ||
278 | + | ||
279 | + /** | ||
280 | + * Sets the assinaturas value for this RetornoConsultaDocumento. | ||
281 | + * | ||
282 | + * @param assinaturas | ||
283 | + */ | ||
284 | + public void setAssinaturas(Assinatura[] assinaturas) { | ||
285 | + this.assinaturas = assinaturas; | ||
286 | + } | ||
287 | + | ||
288 | + | ||
289 | + /** | ||
290 | + * Gets the publicacao value for this RetornoConsultaDocumento. | ||
291 | + * | ||
292 | + * @return publicacao | ||
293 | + */ | ||
294 | + public Publicacao getPublicacao() { | ||
295 | + return publicacao; | ||
296 | + } | ||
297 | + | ||
298 | + | ||
299 | + /** | ||
300 | + * Sets the publicacao value for this RetornoConsultaDocumento. | ||
301 | + * | ||
302 | + * @param publicacao | ||
303 | + */ | ||
304 | + public void setPublicacao(Publicacao publicacao) { | ||
305 | + this.publicacao = publicacao; | ||
306 | + } | ||
307 | + | ||
308 | + private java.lang.Object __equalsCalc = null; | ||
309 | + public synchronized boolean equals(java.lang.Object obj) { | ||
310 | + if (!(obj instanceof RetornoConsultaDocumento)) return false; | ||
311 | + RetornoConsultaDocumento other = (RetornoConsultaDocumento) obj; | ||
312 | + if (obj == null) return false; | ||
313 | + if (this == obj) return true; | ||
314 | + if (__equalsCalc != null) { | ||
315 | + return (__equalsCalc == obj); | ||
316 | + } | ||
317 | + __equalsCalc = obj; | ||
318 | + boolean _equals; | ||
319 | + _equals = true && | ||
320 | + ((this.idProcedimento==null && other.getIdProcedimento()==null) || | ||
321 | + (this.idProcedimento!=null && | ||
322 | + this.idProcedimento.equals(other.getIdProcedimento()))) && | ||
323 | + ((this.procedimentoFormatado==null && other.getProcedimentoFormatado()==null) || | ||
324 | + (this.procedimentoFormatado!=null && | ||
325 | + this.procedimentoFormatado.equals(other.getProcedimentoFormatado()))) && | ||
326 | + ((this.idDocumento==null && other.getIdDocumento()==null) || | ||
327 | + (this.idDocumento!=null && | ||
328 | + this.idDocumento.equals(other.getIdDocumento()))) && | ||
329 | + ((this.documentoFormatado==null && other.getDocumentoFormatado()==null) || | ||
330 | + (this.documentoFormatado!=null && | ||
331 | + this.documentoFormatado.equals(other.getDocumentoFormatado()))) && | ||
332 | + ((this.linkAcesso==null && other.getLinkAcesso()==null) || | ||
333 | + (this.linkAcesso!=null && | ||
334 | + this.linkAcesso.equals(other.getLinkAcesso()))) && | ||
335 | + ((this.serie==null && other.getSerie()==null) || | ||
336 | + (this.serie!=null && | ||
337 | + this.serie.equals(other.getSerie()))) && | ||
338 | + ((this.numero==null && other.getNumero()==null) || | ||
339 | + (this.numero!=null && | ||
340 | + this.numero.equals(other.getNumero()))) && | ||
341 | + ((this.data==null && other.getData()==null) || | ||
342 | + (this.data!=null && | ||
343 | + this.data.equals(other.getData()))) && | ||
344 | + ((this.unidadeElaboradora==null && other.getUnidadeElaboradora()==null) || | ||
345 | + (this.unidadeElaboradora!=null && | ||
346 | + this.unidadeElaboradora.equals(other.getUnidadeElaboradora()))) && | ||
347 | + ((this.andamentoGeracao==null && other.getAndamentoGeracao()==null) || | ||
348 | + (this.andamentoGeracao!=null && | ||
349 | + this.andamentoGeracao.equals(other.getAndamentoGeracao()))) && | ||
350 | + ((this.assinaturas==null && other.getAssinaturas()==null) || | ||
351 | + (this.assinaturas!=null && | ||
352 | + java.util.Arrays.equals(this.assinaturas, other.getAssinaturas()))) && | ||
353 | + ((this.publicacao==null && other.getPublicacao()==null) || | ||
354 | + (this.publicacao!=null && | ||
355 | + this.publicacao.equals(other.getPublicacao()))); | ||
356 | + __equalsCalc = null; | ||
357 | + return _equals; | ||
358 | + } | ||
359 | + | ||
360 | + private boolean __hashCodeCalc = false; | ||
361 | + public synchronized int hashCode() { | ||
362 | + if (__hashCodeCalc) { | ||
363 | + return 0; | ||
364 | + } | ||
365 | + __hashCodeCalc = true; | ||
366 | + int _hashCode = 1; | ||
367 | + if (getIdProcedimento() != null) { | ||
368 | + _hashCode += getIdProcedimento().hashCode(); | ||
369 | + } | ||
370 | + if (getProcedimentoFormatado() != null) { | ||
371 | + _hashCode += getProcedimentoFormatado().hashCode(); | ||
372 | + } | ||
373 | + if (getIdDocumento() != null) { | ||
374 | + _hashCode += getIdDocumento().hashCode(); | ||
375 | + } | ||
376 | + if (getDocumentoFormatado() != null) { | ||
377 | + _hashCode += getDocumentoFormatado().hashCode(); | ||
378 | + } | ||
379 | + if (getLinkAcesso() != null) { | ||
380 | + _hashCode += getLinkAcesso().hashCode(); | ||
381 | + } | ||
382 | + if (getSerie() != null) { | ||
383 | + _hashCode += getSerie().hashCode(); | ||
384 | + } | ||
385 | + if (getNumero() != null) { | ||
386 | + _hashCode += getNumero().hashCode(); | ||
387 | + } | ||
388 | + if (getData() != null) { | ||
389 | + _hashCode += getData().hashCode(); | ||
390 | + } | ||
391 | + if (getUnidadeElaboradora() != null) { | ||
392 | + _hashCode += getUnidadeElaboradora().hashCode(); | ||
393 | + } | ||
394 | + if (getAndamentoGeracao() != null) { | ||
395 | + _hashCode += getAndamentoGeracao().hashCode(); | ||
396 | + } | ||
397 | + if (getAssinaturas() != null) { | ||
398 | + for (int i=0; | ||
399 | + i<java.lang.reflect.Array.getLength(getAssinaturas()); | ||
400 | + i++) { | ||
401 | + java.lang.Object obj = java.lang.reflect.Array.get(getAssinaturas(), i); | ||
402 | + if (obj != null && | ||
403 | + !obj.getClass().isArray()) { | ||
404 | + _hashCode += obj.hashCode(); | ||
405 | + } | ||
406 | + } | ||
407 | + } | ||
408 | + if (getPublicacao() != null) { | ||
409 | + _hashCode += getPublicacao().hashCode(); | ||
410 | + } | ||
411 | + __hashCodeCalc = false; | ||
412 | + return _hashCode; | ||
413 | + } | ||
414 | + | ||
415 | +} |
src/main/java/br/gov/ans/sei/modelo/RetornoConsultaProcedimento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/RetornoConsultaProcedimento.java | ||
@@ -0,0 +1,545 @@ | @@ -0,0 +1,545 @@ | ||
1 | +/** | ||
2 | + * RetornoConsultaProcedimento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class RetornoConsultaProcedimento implements java.io.Serializable { | ||
14 | + private java.lang.String idProcedimento; | ||
15 | + | ||
16 | + private java.lang.String procedimentoFormatado; | ||
17 | + | ||
18 | + private java.lang.String especificacao; | ||
19 | + | ||
20 | + private java.lang.String dataAutuacao; | ||
21 | + | ||
22 | + private java.lang.String linkAcesso; | ||
23 | + | ||
24 | + private TipoProcedimento tipoProcedimento; | ||
25 | + | ||
26 | + private Andamento andamentoGeracao; | ||
27 | + | ||
28 | + private Andamento andamentoConclusao; | ||
29 | + | ||
30 | + private Andamento ultimoAndamento; | ||
31 | + | ||
32 | + private UnidadeProcedimentoAberto[] unidadesProcedimentoAberto; | ||
33 | + | ||
34 | + private Assunto[] assuntos; | ||
35 | + | ||
36 | + private Interessado[] interessados; | ||
37 | + | ||
38 | + private Observacao[] observacoes; | ||
39 | + | ||
40 | + private ProcedimentoResumido[] procedimentosRelacionados; | ||
41 | + | ||
42 | + private ProcedimentoResumido[] procedimentosAnexados; | ||
43 | + | ||
44 | + public RetornoConsultaProcedimento() { | ||
45 | + } | ||
46 | + | ||
47 | + public RetornoConsultaProcedimento( | ||
48 | + java.lang.String idProcedimento, | ||
49 | + java.lang.String procedimentoFormatado, | ||
50 | + java.lang.String especificacao, | ||
51 | + java.lang.String dataAutuacao, | ||
52 | + java.lang.String linkAcesso, | ||
53 | + TipoProcedimento tipoProcedimento, | ||
54 | + Andamento andamentoGeracao, | ||
55 | + Andamento andamentoConclusao, | ||
56 | + Andamento ultimoAndamento, | ||
57 | + UnidadeProcedimentoAberto[] unidadesProcedimentoAberto, | ||
58 | + Assunto[] assuntos, | ||
59 | + Interessado[] interessados, | ||
60 | + Observacao[] observacoes, | ||
61 | + ProcedimentoResumido[] procedimentosRelacionados, | ||
62 | + ProcedimentoResumido[] procedimentosAnexados) { | ||
63 | + this.idProcedimento = idProcedimento; | ||
64 | + this.procedimentoFormatado = procedimentoFormatado; | ||
65 | + this.especificacao = especificacao; | ||
66 | + this.dataAutuacao = dataAutuacao; | ||
67 | + this.linkAcesso = linkAcesso; | ||
68 | + this.tipoProcedimento = tipoProcedimento; | ||
69 | + this.andamentoGeracao = andamentoGeracao; | ||
70 | + this.andamentoConclusao = andamentoConclusao; | ||
71 | + this.ultimoAndamento = ultimoAndamento; | ||
72 | + this.unidadesProcedimentoAberto = unidadesProcedimentoAberto; | ||
73 | + this.assuntos = assuntos; | ||
74 | + this.interessados = interessados; | ||
75 | + this.observacoes = observacoes; | ||
76 | + this.procedimentosRelacionados = procedimentosRelacionados; | ||
77 | + this.procedimentosAnexados = procedimentosAnexados; | ||
78 | + } | ||
79 | + | ||
80 | + | ||
81 | + /** | ||
82 | + * Gets the idProcedimento value for this RetornoConsultaProcedimento. | ||
83 | + * | ||
84 | + * @return idProcedimento | ||
85 | + */ | ||
86 | + public java.lang.String getIdProcedimento() { | ||
87 | + return idProcedimento; | ||
88 | + } | ||
89 | + | ||
90 | + | ||
91 | + /** | ||
92 | + * Sets the idProcedimento value for this RetornoConsultaProcedimento. | ||
93 | + * | ||
94 | + * @param idProcedimento | ||
95 | + */ | ||
96 | + public void setIdProcedimento(java.lang.String idProcedimento) { | ||
97 | + this.idProcedimento = idProcedimento; | ||
98 | + } | ||
99 | + | ||
100 | + | ||
101 | + /** | ||
102 | + * Gets the procedimentoFormatado value for this RetornoConsultaProcedimento. | ||
103 | + * | ||
104 | + * @return procedimentoFormatado | ||
105 | + */ | ||
106 | + public java.lang.String getProcedimentoFormatado() { | ||
107 | + return procedimentoFormatado; | ||
108 | + } | ||
109 | + | ||
110 | + | ||
111 | + /** | ||
112 | + * Sets the procedimentoFormatado value for this RetornoConsultaProcedimento. | ||
113 | + * | ||
114 | + * @param procedimentoFormatado | ||
115 | + */ | ||
116 | + public void setProcedimentoFormatado(java.lang.String procedimentoFormatado) { | ||
117 | + this.procedimentoFormatado = procedimentoFormatado; | ||
118 | + } | ||
119 | + | ||
120 | + | ||
121 | + /** | ||
122 | + * Gets the especificacao value for this RetornoConsultaProcedimento. | ||
123 | + * | ||
124 | + * @return especificacao | ||
125 | + */ | ||
126 | + public java.lang.String getEspecificacao() { | ||
127 | + return especificacao; | ||
128 | + } | ||
129 | + | ||
130 | + | ||
131 | + /** | ||
132 | + * Sets the especificacao value for this RetornoConsultaProcedimento. | ||
133 | + * | ||
134 | + * @param especificacao | ||
135 | + */ | ||
136 | + public void setEspecificacao(java.lang.String especificacao) { | ||
137 | + this.especificacao = especificacao; | ||
138 | + } | ||
139 | + | ||
140 | + | ||
141 | + /** | ||
142 | + * Gets the dataAutuacao value for this RetornoConsultaProcedimento. | ||
143 | + * | ||
144 | + * @return dataAutuacao | ||
145 | + */ | ||
146 | + public java.lang.String getDataAutuacao() { | ||
147 | + return dataAutuacao; | ||
148 | + } | ||
149 | + | ||
150 | + | ||
151 | + /** | ||
152 | + * Sets the dataAutuacao value for this RetornoConsultaProcedimento. | ||
153 | + * | ||
154 | + * @param dataAutuacao | ||
155 | + */ | ||
156 | + public void setDataAutuacao(java.lang.String dataAutuacao) { | ||
157 | + this.dataAutuacao = dataAutuacao; | ||
158 | + } | ||
159 | + | ||
160 | + | ||
161 | + /** | ||
162 | + * Gets the linkAcesso value for this RetornoConsultaProcedimento. | ||
163 | + * | ||
164 | + * @return linkAcesso | ||
165 | + */ | ||
166 | + public java.lang.String getLinkAcesso() { | ||
167 | + return linkAcesso; | ||
168 | + } | ||
169 | + | ||
170 | + | ||
171 | + /** | ||
172 | + * Sets the linkAcesso value for this RetornoConsultaProcedimento. | ||
173 | + * | ||
174 | + * @param linkAcesso | ||
175 | + */ | ||
176 | + public void setLinkAcesso(java.lang.String linkAcesso) { | ||
177 | + this.linkAcesso = linkAcesso; | ||
178 | + } | ||
179 | + | ||
180 | + | ||
181 | + /** | ||
182 | + * Gets the tipoProcedimento value for this RetornoConsultaProcedimento. | ||
183 | + * | ||
184 | + * @return tipoProcedimento | ||
185 | + */ | ||
186 | + public TipoProcedimento getTipoProcedimento() { | ||
187 | + return tipoProcedimento; | ||
188 | + } | ||
189 | + | ||
190 | + | ||
191 | + /** | ||
192 | + * Sets the tipoProcedimento value for this RetornoConsultaProcedimento. | ||
193 | + * | ||
194 | + * @param tipoProcedimento | ||
195 | + */ | ||
196 | + public void setTipoProcedimento(TipoProcedimento tipoProcedimento) { | ||
197 | + this.tipoProcedimento = tipoProcedimento; | ||
198 | + } | ||
199 | + | ||
200 | + | ||
201 | + /** | ||
202 | + * Gets the andamentoGeracao value for this RetornoConsultaProcedimento. | ||
203 | + * | ||
204 | + * @return andamentoGeracao | ||
205 | + */ | ||
206 | + public Andamento getAndamentoGeracao() { | ||
207 | + return andamentoGeracao; | ||
208 | + } | ||
209 | + | ||
210 | + | ||
211 | + /** | ||
212 | + * Sets the andamentoGeracao value for this RetornoConsultaProcedimento. | ||
213 | + * | ||
214 | + * @param andamentoGeracao | ||
215 | + */ | ||
216 | + public void setAndamentoGeracao(Andamento andamentoGeracao) { | ||
217 | + this.andamentoGeracao = andamentoGeracao; | ||
218 | + } | ||
219 | + | ||
220 | + | ||
221 | + /** | ||
222 | + * Gets the andamentoConclusao value for this RetornoConsultaProcedimento. | ||
223 | + * | ||
224 | + * @return andamentoConclusao | ||
225 | + */ | ||
226 | + public Andamento getAndamentoConclusao() { | ||
227 | + return andamentoConclusao; | ||
228 | + } | ||
229 | + | ||
230 | + | ||
231 | + /** | ||
232 | + * Sets the andamentoConclusao value for this RetornoConsultaProcedimento. | ||
233 | + * | ||
234 | + * @param andamentoConclusao | ||
235 | + */ | ||
236 | + public void setAndamentoConclusao(Andamento andamentoConclusao) { | ||
237 | + this.andamentoConclusao = andamentoConclusao; | ||
238 | + } | ||
239 | + | ||
240 | + | ||
241 | + /** | ||
242 | + * Gets the ultimoAndamento value for this RetornoConsultaProcedimento. | ||
243 | + * | ||
244 | + * @return ultimoAndamento | ||
245 | + */ | ||
246 | + public Andamento getUltimoAndamento() { | ||
247 | + return ultimoAndamento; | ||
248 | + } | ||
249 | + | ||
250 | + | ||
251 | + /** | ||
252 | + * Sets the ultimoAndamento value for this RetornoConsultaProcedimento. | ||
253 | + * | ||
254 | + * @param ultimoAndamento | ||
255 | + */ | ||
256 | + public void setUltimoAndamento(Andamento ultimoAndamento) { | ||
257 | + this.ultimoAndamento = ultimoAndamento; | ||
258 | + } | ||
259 | + | ||
260 | + | ||
261 | + /** | ||
262 | + * Gets the unidadesProcedimentoAberto value for this RetornoConsultaProcedimento. | ||
263 | + * | ||
264 | + * @return unidadesProcedimentoAberto | ||
265 | + */ | ||
266 | + public UnidadeProcedimentoAberto[] getUnidadesProcedimentoAberto() { | ||
267 | + return unidadesProcedimentoAberto; | ||
268 | + } | ||
269 | + | ||
270 | + | ||
271 | + /** | ||
272 | + * Sets the unidadesProcedimentoAberto value for this RetornoConsultaProcedimento. | ||
273 | + * | ||
274 | + * @param unidadesProcedimentoAberto | ||
275 | + */ | ||
276 | + public void setUnidadesProcedimentoAberto(UnidadeProcedimentoAberto[] unidadesProcedimentoAberto) { | ||
277 | + this.unidadesProcedimentoAberto = unidadesProcedimentoAberto; | ||
278 | + } | ||
279 | + | ||
280 | + | ||
281 | + /** | ||
282 | + * Gets the assuntos value for this RetornoConsultaProcedimento. | ||
283 | + * | ||
284 | + * @return assuntos | ||
285 | + */ | ||
286 | + public Assunto[] getAssuntos() { | ||
287 | + return assuntos; | ||
288 | + } | ||
289 | + | ||
290 | + | ||
291 | + /** | ||
292 | + * Sets the assuntos value for this RetornoConsultaProcedimento. | ||
293 | + * | ||
294 | + * @param assuntos | ||
295 | + */ | ||
296 | + public void setAssuntos(Assunto[] assuntos) { | ||
297 | + this.assuntos = assuntos; | ||
298 | + } | ||
299 | + | ||
300 | + | ||
301 | + /** | ||
302 | + * Gets the interessados value for this RetornoConsultaProcedimento. | ||
303 | + * | ||
304 | + * @return interessados | ||
305 | + */ | ||
306 | + public Interessado[] getInteressados() { | ||
307 | + return interessados; | ||
308 | + } | ||
309 | + | ||
310 | + | ||
311 | + /** | ||
312 | + * Sets the interessados value for this RetornoConsultaProcedimento. | ||
313 | + * | ||
314 | + * @param interessados | ||
315 | + */ | ||
316 | + public void setInteressados(Interessado[] interessados) { | ||
317 | + this.interessados = interessados; | ||
318 | + } | ||
319 | + | ||
320 | + | ||
321 | + /** | ||
322 | + * Gets the observacoes value for this RetornoConsultaProcedimento. | ||
323 | + * | ||
324 | + * @return observacoes | ||
325 | + */ | ||
326 | + public Observacao[] getObservacoes() { | ||
327 | + return observacoes; | ||
328 | + } | ||
329 | + | ||
330 | + | ||
331 | + /** | ||
332 | + * Sets the observacoes value for this RetornoConsultaProcedimento. | ||
333 | + * | ||
334 | + * @param observacoes | ||
335 | + */ | ||
336 | + public void setObservacoes(Observacao[] observacoes) { | ||
337 | + this.observacoes = observacoes; | ||
338 | + } | ||
339 | + | ||
340 | + | ||
341 | + /** | ||
342 | + * Gets the procedimentosRelacionados value for this RetornoConsultaProcedimento. | ||
343 | + * | ||
344 | + * @return procedimentosRelacionados | ||
345 | + */ | ||
346 | + public ProcedimentoResumido[] getProcedimentosRelacionados() { | ||
347 | + return procedimentosRelacionados; | ||
348 | + } | ||
349 | + | ||
350 | + | ||
351 | + /** | ||
352 | + * Sets the procedimentosRelacionados value for this RetornoConsultaProcedimento. | ||
353 | + * | ||
354 | + * @param procedimentosRelacionados | ||
355 | + */ | ||
356 | + public void setProcedimentosRelacionados(ProcedimentoResumido[] procedimentosRelacionados) { | ||
357 | + this.procedimentosRelacionados = procedimentosRelacionados; | ||
358 | + } | ||
359 | + | ||
360 | + | ||
361 | + /** | ||
362 | + * Gets the procedimentosAnexados value for this RetornoConsultaProcedimento. | ||
363 | + * | ||
364 | + * @return procedimentosAnexados | ||
365 | + */ | ||
366 | + public ProcedimentoResumido[] getProcedimentosAnexados() { | ||
367 | + return procedimentosAnexados; | ||
368 | + } | ||
369 | + | ||
370 | + | ||
371 | + /** | ||
372 | + * Sets the procedimentosAnexados value for this RetornoConsultaProcedimento. | ||
373 | + * | ||
374 | + * @param procedimentosAnexados | ||
375 | + */ | ||
376 | + public void setProcedimentosAnexados(ProcedimentoResumido[] procedimentosAnexados) { | ||
377 | + this.procedimentosAnexados = procedimentosAnexados; | ||
378 | + } | ||
379 | + | ||
380 | + private java.lang.Object __equalsCalc = null; | ||
381 | + public synchronized boolean equals(java.lang.Object obj) { | ||
382 | + if (!(obj instanceof RetornoConsultaProcedimento)) return false; | ||
383 | + RetornoConsultaProcedimento other = (RetornoConsultaProcedimento) obj; | ||
384 | + if (obj == null) return false; | ||
385 | + if (this == obj) return true; | ||
386 | + if (__equalsCalc != null) { | ||
387 | + return (__equalsCalc == obj); | ||
388 | + } | ||
389 | + __equalsCalc = obj; | ||
390 | + boolean _equals; | ||
391 | + _equals = true && | ||
392 | + ((this.idProcedimento==null && other.getIdProcedimento()==null) || | ||
393 | + (this.idProcedimento!=null && | ||
394 | + this.idProcedimento.equals(other.getIdProcedimento()))) && | ||
395 | + ((this.procedimentoFormatado==null && other.getProcedimentoFormatado()==null) || | ||
396 | + (this.procedimentoFormatado!=null && | ||
397 | + this.procedimentoFormatado.equals(other.getProcedimentoFormatado()))) && | ||
398 | + ((this.especificacao==null && other.getEspecificacao()==null) || | ||
399 | + (this.especificacao!=null && | ||
400 | + this.especificacao.equals(other.getEspecificacao()))) && | ||
401 | + ((this.dataAutuacao==null && other.getDataAutuacao()==null) || | ||
402 | + (this.dataAutuacao!=null && | ||
403 | + this.dataAutuacao.equals(other.getDataAutuacao()))) && | ||
404 | + ((this.linkAcesso==null && other.getLinkAcesso()==null) || | ||
405 | + (this.linkAcesso!=null && | ||
406 | + this.linkAcesso.equals(other.getLinkAcesso()))) && | ||
407 | + ((this.tipoProcedimento==null && other.getTipoProcedimento()==null) || | ||
408 | + (this.tipoProcedimento!=null && | ||
409 | + this.tipoProcedimento.equals(other.getTipoProcedimento()))) && | ||
410 | + ((this.andamentoGeracao==null && other.getAndamentoGeracao()==null) || | ||
411 | + (this.andamentoGeracao!=null && | ||
412 | + this.andamentoGeracao.equals(other.getAndamentoGeracao()))) && | ||
413 | + ((this.andamentoConclusao==null && other.getAndamentoConclusao()==null) || | ||
414 | + (this.andamentoConclusao!=null && | ||
415 | + this.andamentoConclusao.equals(other.getAndamentoConclusao()))) && | ||
416 | + ((this.ultimoAndamento==null && other.getUltimoAndamento()==null) || | ||
417 | + (this.ultimoAndamento!=null && | ||
418 | + this.ultimoAndamento.equals(other.getUltimoAndamento()))) && | ||
419 | + ((this.unidadesProcedimentoAberto==null && other.getUnidadesProcedimentoAberto()==null) || | ||
420 | + (this.unidadesProcedimentoAberto!=null && | ||
421 | + java.util.Arrays.equals(this.unidadesProcedimentoAberto, other.getUnidadesProcedimentoAberto()))) && | ||
422 | + ((this.assuntos==null && other.getAssuntos()==null) || | ||
423 | + (this.assuntos!=null && | ||
424 | + java.util.Arrays.equals(this.assuntos, other.getAssuntos()))) && | ||
425 | + ((this.interessados==null && other.getInteressados()==null) || | ||
426 | + (this.interessados!=null && | ||
427 | + java.util.Arrays.equals(this.interessados, other.getInteressados()))) && | ||
428 | + ((this.observacoes==null && other.getObservacoes()==null) || | ||
429 | + (this.observacoes!=null && | ||
430 | + java.util.Arrays.equals(this.observacoes, other.getObservacoes()))) && | ||
431 | + ((this.procedimentosRelacionados==null && other.getProcedimentosRelacionados()==null) || | ||
432 | + (this.procedimentosRelacionados!=null && | ||
433 | + java.util.Arrays.equals(this.procedimentosRelacionados, other.getProcedimentosRelacionados()))) && | ||
434 | + ((this.procedimentosAnexados==null && other.getProcedimentosAnexados()==null) || | ||
435 | + (this.procedimentosAnexados!=null && | ||
436 | + java.util.Arrays.equals(this.procedimentosAnexados, other.getProcedimentosAnexados()))); | ||
437 | + __equalsCalc = null; | ||
438 | + return _equals; | ||
439 | + } | ||
440 | + | ||
441 | + private boolean __hashCodeCalc = false; | ||
442 | + public synchronized int hashCode() { | ||
443 | + if (__hashCodeCalc) { | ||
444 | + return 0; | ||
445 | + } | ||
446 | + __hashCodeCalc = true; | ||
447 | + int _hashCode = 1; | ||
448 | + if (getIdProcedimento() != null) { | ||
449 | + _hashCode += getIdProcedimento().hashCode(); | ||
450 | + } | ||
451 | + if (getProcedimentoFormatado() != null) { | ||
452 | + _hashCode += getProcedimentoFormatado().hashCode(); | ||
453 | + } | ||
454 | + if (getEspecificacao() != null) { | ||
455 | + _hashCode += getEspecificacao().hashCode(); | ||
456 | + } | ||
457 | + if (getDataAutuacao() != null) { | ||
458 | + _hashCode += getDataAutuacao().hashCode(); | ||
459 | + } | ||
460 | + if (getLinkAcesso() != null) { | ||
461 | + _hashCode += getLinkAcesso().hashCode(); | ||
462 | + } | ||
463 | + if (getTipoProcedimento() != null) { | ||
464 | + _hashCode += getTipoProcedimento().hashCode(); | ||
465 | + } | ||
466 | + if (getAndamentoGeracao() != null) { | ||
467 | + _hashCode += getAndamentoGeracao().hashCode(); | ||
468 | + } | ||
469 | + if (getAndamentoConclusao() != null) { | ||
470 | + _hashCode += getAndamentoConclusao().hashCode(); | ||
471 | + } | ||
472 | + if (getUltimoAndamento() != null) { | ||
473 | + _hashCode += getUltimoAndamento().hashCode(); | ||
474 | + } | ||
475 | + if (getUnidadesProcedimentoAberto() != null) { | ||
476 | + for (int i=0; | ||
477 | + i<java.lang.reflect.Array.getLength(getUnidadesProcedimentoAberto()); | ||
478 | + i++) { | ||
479 | + java.lang.Object obj = java.lang.reflect.Array.get(getUnidadesProcedimentoAberto(), i); | ||
480 | + if (obj != null && | ||
481 | + !obj.getClass().isArray()) { | ||
482 | + _hashCode += obj.hashCode(); | ||
483 | + } | ||
484 | + } | ||
485 | + } | ||
486 | + if (getAssuntos() != null) { | ||
487 | + for (int i=0; | ||
488 | + i<java.lang.reflect.Array.getLength(getAssuntos()); | ||
489 | + i++) { | ||
490 | + java.lang.Object obj = java.lang.reflect.Array.get(getAssuntos(), i); | ||
491 | + if (obj != null && | ||
492 | + !obj.getClass().isArray()) { | ||
493 | + _hashCode += obj.hashCode(); | ||
494 | + } | ||
495 | + } | ||
496 | + } | ||
497 | + if (getInteressados() != null) { | ||
498 | + for (int i=0; | ||
499 | + i<java.lang.reflect.Array.getLength(getInteressados()); | ||
500 | + i++) { | ||
501 | + java.lang.Object obj = java.lang.reflect.Array.get(getInteressados(), i); | ||
502 | + if (obj != null && | ||
503 | + !obj.getClass().isArray()) { | ||
504 | + _hashCode += obj.hashCode(); | ||
505 | + } | ||
506 | + } | ||
507 | + } | ||
508 | + if (getObservacoes() != null) { | ||
509 | + for (int i=0; | ||
510 | + i<java.lang.reflect.Array.getLength(getObservacoes()); | ||
511 | + i++) { | ||
512 | + java.lang.Object obj = java.lang.reflect.Array.get(getObservacoes(), i); | ||
513 | + if (obj != null && | ||
514 | + !obj.getClass().isArray()) { | ||
515 | + _hashCode += obj.hashCode(); | ||
516 | + } | ||
517 | + } | ||
518 | + } | ||
519 | + if (getProcedimentosRelacionados() != null) { | ||
520 | + for (int i=0; | ||
521 | + i<java.lang.reflect.Array.getLength(getProcedimentosRelacionados()); | ||
522 | + i++) { | ||
523 | + java.lang.Object obj = java.lang.reflect.Array.get(getProcedimentosRelacionados(), i); | ||
524 | + if (obj != null && | ||
525 | + !obj.getClass().isArray()) { | ||
526 | + _hashCode += obj.hashCode(); | ||
527 | + } | ||
528 | + } | ||
529 | + } | ||
530 | + if (getProcedimentosAnexados() != null) { | ||
531 | + for (int i=0; | ||
532 | + i<java.lang.reflect.Array.getLength(getProcedimentosAnexados()); | ||
533 | + i++) { | ||
534 | + java.lang.Object obj = java.lang.reflect.Array.get(getProcedimentosAnexados(), i); | ||
535 | + if (obj != null && | ||
536 | + !obj.getClass().isArray()) { | ||
537 | + _hashCode += obj.hashCode(); | ||
538 | + } | ||
539 | + } | ||
540 | + } | ||
541 | + __hashCodeCalc = false; | ||
542 | + return _hashCode; | ||
543 | + } | ||
544 | + | ||
545 | +} |
src/main/java/br/gov/ans/sei/modelo/RetornoGeracaoProcedimento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/RetornoGeracaoProcedimento.java | ||
@@ -0,0 +1,175 @@ | @@ -0,0 +1,175 @@ | ||
1 | +/** | ||
2 | + * RetornoGeracaoProcedimento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class RetornoGeracaoProcedimento implements java.io.Serializable { | ||
14 | + private java.lang.String idProcedimento; | ||
15 | + | ||
16 | + private java.lang.String procedimentoFormatado; | ||
17 | + | ||
18 | + private java.lang.String linkAcesso; | ||
19 | + | ||
20 | + private RetornoInclusaoDocumento[] retornoInclusaoDocumentos; | ||
21 | + | ||
22 | + public RetornoGeracaoProcedimento() { | ||
23 | + } | ||
24 | + | ||
25 | + public RetornoGeracaoProcedimento( | ||
26 | + java.lang.String idProcedimento, | ||
27 | + java.lang.String procedimentoFormatado, | ||
28 | + java.lang.String linkAcesso, | ||
29 | + RetornoInclusaoDocumento[] retornoInclusaoDocumentos) { | ||
30 | + this.idProcedimento = idProcedimento; | ||
31 | + this.procedimentoFormatado = procedimentoFormatado; | ||
32 | + this.linkAcesso = linkAcesso; | ||
33 | + this.retornoInclusaoDocumentos = retornoInclusaoDocumentos; | ||
34 | + } | ||
35 | + | ||
36 | + | ||
37 | + /** | ||
38 | + * Gets the idProcedimento value for this RetornoGeracaoProcedimento. | ||
39 | + * | ||
40 | + * @return idProcedimento | ||
41 | + */ | ||
42 | + public java.lang.String getIdProcedimento() { | ||
43 | + return idProcedimento; | ||
44 | + } | ||
45 | + | ||
46 | + | ||
47 | + /** | ||
48 | + * Sets the idProcedimento value for this RetornoGeracaoProcedimento. | ||
49 | + * | ||
50 | + * @param idProcedimento | ||
51 | + */ | ||
52 | + public void setIdProcedimento(java.lang.String idProcedimento) { | ||
53 | + this.idProcedimento = idProcedimento; | ||
54 | + } | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Gets the procedimentoFormatado value for this RetornoGeracaoProcedimento. | ||
59 | + * | ||
60 | + * @return procedimentoFormatado | ||
61 | + */ | ||
62 | + public java.lang.String getProcedimentoFormatado() { | ||
63 | + return procedimentoFormatado; | ||
64 | + } | ||
65 | + | ||
66 | + | ||
67 | + /** | ||
68 | + * Sets the procedimentoFormatado value for this RetornoGeracaoProcedimento. | ||
69 | + * | ||
70 | + * @param procedimentoFormatado | ||
71 | + */ | ||
72 | + public void setProcedimentoFormatado(java.lang.String procedimentoFormatado) { | ||
73 | + this.procedimentoFormatado = procedimentoFormatado; | ||
74 | + } | ||
75 | + | ||
76 | + | ||
77 | + /** | ||
78 | + * Gets the linkAcesso value for this RetornoGeracaoProcedimento. | ||
79 | + * | ||
80 | + * @return linkAcesso | ||
81 | + */ | ||
82 | + public java.lang.String getLinkAcesso() { | ||
83 | + return linkAcesso; | ||
84 | + } | ||
85 | + | ||
86 | + | ||
87 | + /** | ||
88 | + * Sets the linkAcesso value for this RetornoGeracaoProcedimento. | ||
89 | + * | ||
90 | + * @param linkAcesso | ||
91 | + */ | ||
92 | + public void setLinkAcesso(java.lang.String linkAcesso) { | ||
93 | + this.linkAcesso = linkAcesso; | ||
94 | + } | ||
95 | + | ||
96 | + | ||
97 | + /** | ||
98 | + * Gets the retornoInclusaoDocumentos value for this RetornoGeracaoProcedimento. | ||
99 | + * | ||
100 | + * @return retornoInclusaoDocumentos | ||
101 | + */ | ||
102 | + public RetornoInclusaoDocumento[] getRetornoInclusaoDocumentos() { | ||
103 | + return retornoInclusaoDocumentos; | ||
104 | + } | ||
105 | + | ||
106 | + | ||
107 | + /** | ||
108 | + * Sets the retornoInclusaoDocumentos value for this RetornoGeracaoProcedimento. | ||
109 | + * | ||
110 | + * @param retornoInclusaoDocumentos | ||
111 | + */ | ||
112 | + public void setRetornoInclusaoDocumentos(RetornoInclusaoDocumento[] retornoInclusaoDocumentos) { | ||
113 | + this.retornoInclusaoDocumentos = retornoInclusaoDocumentos; | ||
114 | + } | ||
115 | + | ||
116 | + private java.lang.Object __equalsCalc = null; | ||
117 | + public synchronized boolean equals(java.lang.Object obj) { | ||
118 | + if (!(obj instanceof RetornoGeracaoProcedimento)) return false; | ||
119 | + RetornoGeracaoProcedimento other = (RetornoGeracaoProcedimento) obj; | ||
120 | + if (obj == null) return false; | ||
121 | + if (this == obj) return true; | ||
122 | + if (__equalsCalc != null) { | ||
123 | + return (__equalsCalc == obj); | ||
124 | + } | ||
125 | + __equalsCalc = obj; | ||
126 | + boolean _equals; | ||
127 | + _equals = true && | ||
128 | + ((this.idProcedimento==null && other.getIdProcedimento()==null) || | ||
129 | + (this.idProcedimento!=null && | ||
130 | + this.idProcedimento.equals(other.getIdProcedimento()))) && | ||
131 | + ((this.procedimentoFormatado==null && other.getProcedimentoFormatado()==null) || | ||
132 | + (this.procedimentoFormatado!=null && | ||
133 | + this.procedimentoFormatado.equals(other.getProcedimentoFormatado()))) && | ||
134 | + ((this.linkAcesso==null && other.getLinkAcesso()==null) || | ||
135 | + (this.linkAcesso!=null && | ||
136 | + this.linkAcesso.equals(other.getLinkAcesso()))) && | ||
137 | + ((this.retornoInclusaoDocumentos==null && other.getRetornoInclusaoDocumentos()==null) || | ||
138 | + (this.retornoInclusaoDocumentos!=null && | ||
139 | + java.util.Arrays.equals(this.retornoInclusaoDocumentos, other.getRetornoInclusaoDocumentos()))); | ||
140 | + __equalsCalc = null; | ||
141 | + return _equals; | ||
142 | + } | ||
143 | + | ||
144 | + private boolean __hashCodeCalc = false; | ||
145 | + public synchronized int hashCode() { | ||
146 | + if (__hashCodeCalc) { | ||
147 | + return 0; | ||
148 | + } | ||
149 | + __hashCodeCalc = true; | ||
150 | + int _hashCode = 1; | ||
151 | + if (getIdProcedimento() != null) { | ||
152 | + _hashCode += getIdProcedimento().hashCode(); | ||
153 | + } | ||
154 | + if (getProcedimentoFormatado() != null) { | ||
155 | + _hashCode += getProcedimentoFormatado().hashCode(); | ||
156 | + } | ||
157 | + if (getLinkAcesso() != null) { | ||
158 | + _hashCode += getLinkAcesso().hashCode(); | ||
159 | + } | ||
160 | + if (getRetornoInclusaoDocumentos() != null) { | ||
161 | + for (int i=0; | ||
162 | + i<java.lang.reflect.Array.getLength(getRetornoInclusaoDocumentos()); | ||
163 | + i++) { | ||
164 | + java.lang.Object obj = java.lang.reflect.Array.get(getRetornoInclusaoDocumentos(), i); | ||
165 | + if (obj != null && | ||
166 | + !obj.getClass().isArray()) { | ||
167 | + _hashCode += obj.hashCode(); | ||
168 | + } | ||
169 | + } | ||
170 | + } | ||
171 | + __hashCodeCalc = false; | ||
172 | + return _hashCode; | ||
173 | + } | ||
174 | + | ||
175 | +} |
src/main/java/br/gov/ans/sei/modelo/RetornoInclusaoDocumento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/RetornoInclusaoDocumento.java | ||
@@ -0,0 +1,132 @@ | @@ -0,0 +1,132 @@ | ||
1 | +/** | ||
2 | + * RetornoInclusaoDocumento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class RetornoInclusaoDocumento implements java.io.Serializable { | ||
14 | + private java.lang.String idDocumento; | ||
15 | + | ||
16 | + private java.lang.String documentoFormatado; | ||
17 | + | ||
18 | + private java.lang.String linkAcesso; | ||
19 | + | ||
20 | + public RetornoInclusaoDocumento() { | ||
21 | + } | ||
22 | + | ||
23 | + public RetornoInclusaoDocumento(java.lang.String idDocumento, | ||
24 | + java.lang.String documentoFormatado, java.lang.String linkAcesso) { | ||
25 | + this.idDocumento = idDocumento; | ||
26 | + this.documentoFormatado = documentoFormatado; | ||
27 | + this.linkAcesso = linkAcesso; | ||
28 | + } | ||
29 | + | ||
30 | + /** | ||
31 | + * Gets the idDocumento value for this RetornoInclusaoDocumento. | ||
32 | + * | ||
33 | + * @return idDocumento | ||
34 | + */ | ||
35 | + public java.lang.String getIdDocumento() { | ||
36 | + return idDocumento; | ||
37 | + } | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the idDocumento value for this RetornoInclusaoDocumento. | ||
41 | + * | ||
42 | + * @param idDocumento | ||
43 | + */ | ||
44 | + public void setIdDocumento(java.lang.String idDocumento) { | ||
45 | + this.idDocumento = idDocumento; | ||
46 | + } | ||
47 | + | ||
48 | + /** | ||
49 | + * Gets the documentoFormatado value for this RetornoInclusaoDocumento. | ||
50 | + * | ||
51 | + * @return documentoFormatado | ||
52 | + */ | ||
53 | + public java.lang.String getDocumentoFormatado() { | ||
54 | + return documentoFormatado; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Sets the documentoFormatado value for this RetornoInclusaoDocumento. | ||
59 | + * | ||
60 | + * @param documentoFormatado | ||
61 | + */ | ||
62 | + public void setDocumentoFormatado(java.lang.String documentoFormatado) { | ||
63 | + this.documentoFormatado = documentoFormatado; | ||
64 | + } | ||
65 | + | ||
66 | + /** | ||
67 | + * Gets the linkAcesso value for this RetornoInclusaoDocumento. | ||
68 | + * | ||
69 | + * @return linkAcesso | ||
70 | + */ | ||
71 | + public java.lang.String getLinkAcesso() { | ||
72 | + return linkAcesso; | ||
73 | + } | ||
74 | + | ||
75 | + /** | ||
76 | + * Sets the linkAcesso value for this RetornoInclusaoDocumento. | ||
77 | + * | ||
78 | + * @param linkAcesso | ||
79 | + */ | ||
80 | + public void setLinkAcesso(java.lang.String linkAcesso) { | ||
81 | + this.linkAcesso = linkAcesso; | ||
82 | + } | ||
83 | + | ||
84 | + private java.lang.Object __equalsCalc = null; | ||
85 | + | ||
86 | + public synchronized boolean equals(java.lang.Object obj) { | ||
87 | + if (!(obj instanceof RetornoInclusaoDocumento)) | ||
88 | + return false; | ||
89 | + RetornoInclusaoDocumento other = (RetornoInclusaoDocumento) obj; | ||
90 | + if (obj == null) | ||
91 | + return false; | ||
92 | + if (this == obj) | ||
93 | + return true; | ||
94 | + if (__equalsCalc != null) { | ||
95 | + return (__equalsCalc == obj); | ||
96 | + } | ||
97 | + __equalsCalc = obj; | ||
98 | + boolean _equals; | ||
99 | + _equals = true | ||
100 | + && ((this.idDocumento == null && other.getIdDocumento() == null) || (this.idDocumento != null && this.idDocumento | ||
101 | + .equals(other.getIdDocumento()))) | ||
102 | + && ((this.documentoFormatado == null && other | ||
103 | + .getDocumentoFormatado() == null) || (this.documentoFormatado != null && this.documentoFormatado | ||
104 | + .equals(other.getDocumentoFormatado()))) | ||
105 | + && ((this.linkAcesso == null && other.getLinkAcesso() == null) || (this.linkAcesso != null && this.linkAcesso | ||
106 | + .equals(other.getLinkAcesso()))); | ||
107 | + __equalsCalc = null; | ||
108 | + return _equals; | ||
109 | + } | ||
110 | + | ||
111 | + private boolean __hashCodeCalc = false; | ||
112 | + | ||
113 | + public synchronized int hashCode() { | ||
114 | + if (__hashCodeCalc) { | ||
115 | + return 0; | ||
116 | + } | ||
117 | + __hashCodeCalc = true; | ||
118 | + int _hashCode = 1; | ||
119 | + if (getIdDocumento() != null) { | ||
120 | + _hashCode += getIdDocumento().hashCode(); | ||
121 | + } | ||
122 | + if (getDocumentoFormatado() != null) { | ||
123 | + _hashCode += getDocumentoFormatado().hashCode(); | ||
124 | + } | ||
125 | + if (getLinkAcesso() != null) { | ||
126 | + _hashCode += getLinkAcesso().hashCode(); | ||
127 | + } | ||
128 | + __hashCodeCalc = false; | ||
129 | + return _hashCode; | ||
130 | + } | ||
131 | + | ||
132 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Serie.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * Serie.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Serie implements java.io.Serializable { | ||
14 | + private java.lang.String idSerie; | ||
15 | + | ||
16 | + private java.lang.String nome; | ||
17 | + | ||
18 | + public Serie() { | ||
19 | + } | ||
20 | + | ||
21 | + public Serie( | ||
22 | + java.lang.String idSerie, | ||
23 | + java.lang.String nome) { | ||
24 | + this.idSerie = idSerie; | ||
25 | + this.nome = nome; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the idSerie value for this Serie. | ||
31 | + * | ||
32 | + * @return idSerie | ||
33 | + */ | ||
34 | + public java.lang.String getIdSerie() { | ||
35 | + return idSerie; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the idSerie value for this Serie. | ||
41 | + * | ||
42 | + * @param idSerie | ||
43 | + */ | ||
44 | + public void setIdSerie(java.lang.String idSerie) { | ||
45 | + this.idSerie = idSerie; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the nome value for this Serie. | ||
51 | + * | ||
52 | + * @return nome | ||
53 | + */ | ||
54 | + public java.lang.String getNome() { | ||
55 | + return nome; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the nome value for this Serie. | ||
61 | + * | ||
62 | + * @param nome | ||
63 | + */ | ||
64 | + public void setNome(java.lang.String nome) { | ||
65 | + this.nome = nome; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof Serie)) return false; | ||
71 | + Serie other = (Serie) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.idSerie==null && other.getIdSerie()==null) || | ||
81 | + (this.idSerie!=null && | ||
82 | + this.idSerie.equals(other.getIdSerie()))) && | ||
83 | + ((this.nome==null && other.getNome()==null) || | ||
84 | + (this.nome!=null && | ||
85 | + this.nome.equals(other.getNome()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getIdSerie() != null) { | ||
98 | + _hashCode += getIdSerie().hashCode(); | ||
99 | + } | ||
100 | + if (getNome() != null) { | ||
101 | + _hashCode += getNome().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/TipoBloco.java | ||
@@ -0,0 +1,15 @@ | @@ -0,0 +1,15 @@ | ||
1 | +package br.gov.ans.sei.modelo; | ||
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/sei/modelo/TipoProcedimento.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/TipoProcedimento.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * TipoProcedimento.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class TipoProcedimento implements java.io.Serializable { | ||
14 | + private java.lang.String idTipoProcedimento; | ||
15 | + | ||
16 | + private java.lang.String nome; | ||
17 | + | ||
18 | + public TipoProcedimento() { | ||
19 | + } | ||
20 | + | ||
21 | + public TipoProcedimento( | ||
22 | + java.lang.String idTipoProcedimento, | ||
23 | + java.lang.String nome) { | ||
24 | + this.idTipoProcedimento = idTipoProcedimento; | ||
25 | + this.nome = nome; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the idTipoProcedimento value for this TipoProcedimento. | ||
31 | + * | ||
32 | + * @return idTipoProcedimento | ||
33 | + */ | ||
34 | + public java.lang.String getIdTipoProcedimento() { | ||
35 | + return idTipoProcedimento; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the idTipoProcedimento value for this TipoProcedimento. | ||
41 | + * | ||
42 | + * @param idTipoProcedimento | ||
43 | + */ | ||
44 | + public void setIdTipoProcedimento(java.lang.String idTipoProcedimento) { | ||
45 | + this.idTipoProcedimento = idTipoProcedimento; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the nome value for this TipoProcedimento. | ||
51 | + * | ||
52 | + * @return nome | ||
53 | + */ | ||
54 | + public java.lang.String getNome() { | ||
55 | + return nome; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the nome value for this TipoProcedimento. | ||
61 | + * | ||
62 | + * @param nome | ||
63 | + */ | ||
64 | + public void setNome(java.lang.String nome) { | ||
65 | + this.nome = nome; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof TipoProcedimento)) return false; | ||
71 | + TipoProcedimento other = (TipoProcedimento) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.idTipoProcedimento==null && other.getIdTipoProcedimento()==null) || | ||
81 | + (this.idTipoProcedimento!=null && | ||
82 | + this.idTipoProcedimento.equals(other.getIdTipoProcedimento()))) && | ||
83 | + ((this.nome==null && other.getNome()==null) || | ||
84 | + (this.nome!=null && | ||
85 | + this.nome.equals(other.getNome()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getIdTipoProcedimento() != null) { | ||
98 | + _hashCode += getIdTipoProcedimento().hashCode(); | ||
99 | + } | ||
100 | + if (getNome() != null) { | ||
101 | + _hashCode += getNome().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Unidade.java | ||
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
1 | +/** | ||
2 | + * Unidade.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Unidade implements java.io.Serializable { | ||
14 | + private java.lang.String idUnidade; | ||
15 | + | ||
16 | + private java.lang.String sigla; | ||
17 | + | ||
18 | + private java.lang.String descricao; | ||
19 | + | ||
20 | + public Unidade() { | ||
21 | + } | ||
22 | + | ||
23 | + public Unidade( | ||
24 | + java.lang.String idUnidade, | ||
25 | + java.lang.String sigla, | ||
26 | + java.lang.String descricao) { | ||
27 | + this.idUnidade = idUnidade; | ||
28 | + this.sigla = sigla; | ||
29 | + this.descricao = descricao; | ||
30 | + } | ||
31 | + | ||
32 | + | ||
33 | + /** | ||
34 | + * Gets the idUnidade value for this Unidade. | ||
35 | + * | ||
36 | + * @return idUnidade | ||
37 | + */ | ||
38 | + public java.lang.String getIdUnidade() { | ||
39 | + return idUnidade; | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + /** | ||
44 | + * Sets the idUnidade value for this Unidade. | ||
45 | + * | ||
46 | + * @param idUnidade | ||
47 | + */ | ||
48 | + public void setIdUnidade(java.lang.String idUnidade) { | ||
49 | + this.idUnidade = idUnidade; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the sigla value for this Unidade. | ||
55 | + * | ||
56 | + * @return sigla | ||
57 | + */ | ||
58 | + public java.lang.String getSigla() { | ||
59 | + return sigla; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the sigla value for this Unidade. | ||
65 | + * | ||
66 | + * @param sigla | ||
67 | + */ | ||
68 | + public void setSigla(java.lang.String sigla) { | ||
69 | + this.sigla = sigla; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the descricao value for this Unidade. | ||
75 | + * | ||
76 | + * @return descricao | ||
77 | + */ | ||
78 | + public java.lang.String getDescricao() { | ||
79 | + return descricao; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the descricao value for this Unidade. | ||
85 | + * | ||
86 | + * @param descricao | ||
87 | + */ | ||
88 | + public void setDescricao(java.lang.String descricao) { | ||
89 | + this.descricao = descricao; | ||
90 | + } | ||
91 | + | ||
92 | + private java.lang.Object __equalsCalc = null; | ||
93 | + public synchronized boolean equals(java.lang.Object obj) { | ||
94 | + if (!(obj instanceof Unidade)) return false; | ||
95 | + Unidade other = (Unidade) obj; | ||
96 | + if (obj == null) return false; | ||
97 | + if (this == obj) return true; | ||
98 | + if (__equalsCalc != null) { | ||
99 | + return (__equalsCalc == obj); | ||
100 | + } | ||
101 | + __equalsCalc = obj; | ||
102 | + boolean _equals; | ||
103 | + _equals = true && | ||
104 | + ((this.idUnidade==null && other.getIdUnidade()==null) || | ||
105 | + (this.idUnidade!=null && | ||
106 | + this.idUnidade.equals(other.getIdUnidade()))) && | ||
107 | + ((this.sigla==null && other.getSigla()==null) || | ||
108 | + (this.sigla!=null && | ||
109 | + this.sigla.equals(other.getSigla()))) && | ||
110 | + ((this.descricao==null && other.getDescricao()==null) || | ||
111 | + (this.descricao!=null && | ||
112 | + this.descricao.equals(other.getDescricao()))); | ||
113 | + __equalsCalc = null; | ||
114 | + return _equals; | ||
115 | + } | ||
116 | + | ||
117 | + private boolean __hashCodeCalc = false; | ||
118 | + public synchronized int hashCode() { | ||
119 | + if (__hashCodeCalc) { | ||
120 | + return 0; | ||
121 | + } | ||
122 | + __hashCodeCalc = true; | ||
123 | + int _hashCode = 1; | ||
124 | + if (getIdUnidade() != null) { | ||
125 | + _hashCode += getIdUnidade().hashCode(); | ||
126 | + } | ||
127 | + if (getSigla() != null) { | ||
128 | + _hashCode += getSigla().hashCode(); | ||
129 | + } | ||
130 | + if (getDescricao() != null) { | ||
131 | + _hashCode += getDescricao().hashCode(); | ||
132 | + } | ||
133 | + __hashCodeCalc = false; | ||
134 | + return _hashCode; | ||
135 | + } | ||
136 | + | ||
137 | +} |
src/main/java/br/gov/ans/sei/modelo/UnidadeProcedimentoAberto.java
0 → 100644
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/UnidadeProcedimentoAberto.java | ||
@@ -0,0 +1,107 @@ | @@ -0,0 +1,107 @@ | ||
1 | +/** | ||
2 | + * UnidadeProcedimentoAberto.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class UnidadeProcedimentoAberto implements java.io.Serializable { | ||
14 | + private Unidade unidade; | ||
15 | + | ||
16 | + private Usuario usuarioAtribuicao; | ||
17 | + | ||
18 | + public UnidadeProcedimentoAberto() { | ||
19 | + } | ||
20 | + | ||
21 | + public UnidadeProcedimentoAberto( | ||
22 | + Unidade unidade, | ||
23 | + Usuario usuarioAtribuicao) { | ||
24 | + this.unidade = unidade; | ||
25 | + this.usuarioAtribuicao = usuarioAtribuicao; | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * Gets the unidade value for this UnidadeProcedimentoAberto. | ||
31 | + * | ||
32 | + * @return unidade | ||
33 | + */ | ||
34 | + public Unidade getUnidade() { | ||
35 | + return unidade; | ||
36 | + } | ||
37 | + | ||
38 | + | ||
39 | + /** | ||
40 | + * Sets the unidade value for this UnidadeProcedimentoAberto. | ||
41 | + * | ||
42 | + * @param unidade | ||
43 | + */ | ||
44 | + public void setUnidade(Unidade unidade) { | ||
45 | + this.unidade = unidade; | ||
46 | + } | ||
47 | + | ||
48 | + | ||
49 | + /** | ||
50 | + * Gets the usuarioAtribuicao value for this UnidadeProcedimentoAberto. | ||
51 | + * | ||
52 | + * @return usuarioAtribuicao | ||
53 | + */ | ||
54 | + public Usuario getUsuarioAtribuicao() { | ||
55 | + return usuarioAtribuicao; | ||
56 | + } | ||
57 | + | ||
58 | + | ||
59 | + /** | ||
60 | + * Sets the usuarioAtribuicao value for this UnidadeProcedimentoAberto. | ||
61 | + * | ||
62 | + * @param usuarioAtribuicao | ||
63 | + */ | ||
64 | + public void setUsuarioAtribuicao(Usuario usuarioAtribuicao) { | ||
65 | + this.usuarioAtribuicao = usuarioAtribuicao; | ||
66 | + } | ||
67 | + | ||
68 | + private java.lang.Object __equalsCalc = null; | ||
69 | + public synchronized boolean equals(java.lang.Object obj) { | ||
70 | + if (!(obj instanceof UnidadeProcedimentoAberto)) return false; | ||
71 | + UnidadeProcedimentoAberto other = (UnidadeProcedimentoAberto) obj; | ||
72 | + if (obj == null) return false; | ||
73 | + if (this == obj) return true; | ||
74 | + if (__equalsCalc != null) { | ||
75 | + return (__equalsCalc == obj); | ||
76 | + } | ||
77 | + __equalsCalc = obj; | ||
78 | + boolean _equals; | ||
79 | + _equals = true && | ||
80 | + ((this.unidade==null && other.getUnidade()==null) || | ||
81 | + (this.unidade!=null && | ||
82 | + this.unidade.equals(other.getUnidade()))) && | ||
83 | + ((this.usuarioAtribuicao==null && other.getUsuarioAtribuicao()==null) || | ||
84 | + (this.usuarioAtribuicao!=null && | ||
85 | + this.usuarioAtribuicao.equals(other.getUsuarioAtribuicao()))); | ||
86 | + __equalsCalc = null; | ||
87 | + return _equals; | ||
88 | + } | ||
89 | + | ||
90 | + private boolean __hashCodeCalc = false; | ||
91 | + public synchronized int hashCode() { | ||
92 | + if (__hashCodeCalc) { | ||
93 | + return 0; | ||
94 | + } | ||
95 | + __hashCodeCalc = true; | ||
96 | + int _hashCode = 1; | ||
97 | + if (getUnidade() != null) { | ||
98 | + _hashCode += getUnidade().hashCode(); | ||
99 | + } | ||
100 | + if (getUsuarioAtribuicao() != null) { | ||
101 | + _hashCode += getUsuarioAtribuicao().hashCode(); | ||
102 | + } | ||
103 | + __hashCodeCalc = false; | ||
104 | + return _hashCode; | ||
105 | + } | ||
106 | + | ||
107 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/modelo/Usuario.java | ||
@@ -0,0 +1,144 @@ | @@ -0,0 +1,144 @@ | ||
1 | +/** | ||
2 | + * Usuario.java | ||
3 | + * | ||
4 | + * This file was auto-generated from WSDL | ||
5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
6 | + */ | ||
7 | + | ||
8 | +package br.gov.ans.sei.modelo; | ||
9 | + | ||
10 | +import javax.xml.bind.annotation.XmlRootElement; | ||
11 | + | ||
12 | +@XmlRootElement | ||
13 | +public class Usuario implements java.io.Serializable { | ||
14 | + private java.lang.String idUsuario; | ||
15 | + | ||
16 | + private java.lang.String sigla; | ||
17 | + | ||
18 | + private java.lang.String nome; | ||
19 | + | ||
20 | + public Usuario() { | ||
21 | + } | ||
22 | + | ||
23 | + public Usuario( | ||
24 | + java.lang.String idUsuario, | ||
25 | + java.lang.String sigla, | ||
26 | + java.lang.String nome) { | ||
27 | + this.idUsuario = idUsuario; | ||
28 | + this.sigla = sigla; | ||
29 | + this.nome = nome; | ||
30 | + } | ||
31 | + | ||
32 | + | ||
33 | + /** | ||
34 | + * Gets the idUsuario value for this Usuario. | ||
35 | + * | ||
36 | + * @return idUsuario | ||
37 | + */ | ||
38 | + public java.lang.String getIdUsuario() { | ||
39 | + return idUsuario; | ||
40 | + } | ||
41 | + | ||
42 | + | ||
43 | + /** | ||
44 | + * Sets the idUsuario value for this Usuario. | ||
45 | + * | ||
46 | + * @param idUsuario | ||
47 | + */ | ||
48 | + public void setIdUsuario(java.lang.String idUsuario) { | ||
49 | + this.idUsuario = idUsuario; | ||
50 | + } | ||
51 | + | ||
52 | + | ||
53 | + /** | ||
54 | + * Gets the sigla value for this Usuario. | ||
55 | + * | ||
56 | + * @return sigla | ||
57 | + */ | ||
58 | + public java.lang.String getSigla() { | ||
59 | + return sigla; | ||
60 | + } | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Sets the sigla value for this Usuario. | ||
65 | + * | ||
66 | + * @param sigla | ||
67 | + */ | ||
68 | + public void setSigla(java.lang.String sigla) { | ||
69 | + this.sigla = sigla; | ||
70 | + } | ||
71 | + | ||
72 | + | ||
73 | + /** | ||
74 | + * Gets the nome value for this Usuario. | ||
75 | + * | ||
76 | + * @return nome | ||
77 | + */ | ||
78 | + public java.lang.String getNome() { | ||
79 | + return nome; | ||
80 | + } | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * Sets the nome value for this Usuario. | ||
85 | + * | ||
86 | + * @param nome | ||
87 | + */ | ||
88 | + public void setNome(java.lang.String nome) { | ||
89 | + this.nome = nome; | ||
90 | + } | ||
91 | + | ||
92 | + private java.lang.Object __equalsCalc = null; | ||
93 | + | ||
94 | + public synchronized boolean equals(java.lang.Object obj) { | ||
95 | + | ||
96 | + if (!(obj instanceof Usuario)) return false; | ||
97 | + | ||
98 | + Usuario other = (Usuario) obj; | ||
99 | + | ||
100 | + if (obj == null) return false; | ||
101 | + | ||
102 | + if (this == obj) return true; | ||
103 | + | ||
104 | + if (__equalsCalc != null) { | ||
105 | + return (__equalsCalc == obj); | ||
106 | + } | ||
107 | + | ||
108 | + __equalsCalc = obj; | ||
109 | + | ||
110 | + boolean _equals; | ||
111 | + | ||
112 | + _equals = true && | ||
113 | +// ((this.idUsuario == null && other.getIdUsuario() == null) || (this.idUsuario != null && this.idUsuario | ||
114 | +// .equals(other.getIdUsuario()))) && | ||
115 | +// ((this.nome == null && other.getNome() == null) || (this.nome != null && this.nome | ||
116 | +// .equals(other.getNome()))) && | ||
117 | + ((this.sigla == null && other.getSigla() == null) || (this.sigla != null && this.sigla | ||
118 | + .equals(other.getSigla()))); | ||
119 | + __equalsCalc = null; | ||
120 | + | ||
121 | + return _equals; | ||
122 | + } | ||
123 | + | ||
124 | + private boolean __hashCodeCalc = false; | ||
125 | + public synchronized int hashCode() { | ||
126 | + if (__hashCodeCalc) { | ||
127 | + return 0; | ||
128 | + } | ||
129 | + __hashCodeCalc = true; | ||
130 | + int _hashCode = 1; | ||
131 | + if (getIdUsuario() != null) { | ||
132 | + _hashCode += getIdUsuario().hashCode(); | ||
133 | + } | ||
134 | + if (getSigla() != null) { | ||
135 | + _hashCode += getSigla().hashCode(); | ||
136 | + } | ||
137 | + if (getNome() != null) { | ||
138 | + _hashCode += getNome().hashCode(); | ||
139 | + } | ||
140 | + __hashCodeCalc = false; | ||
141 | + return _hashCode; | ||
142 | + } | ||
143 | + | ||
144 | +} |
1 | +++ a/src/main/java/br/gov/ans/sei/utils/SeiHelper.java | ||
@@ -0,0 +1,60 @@ | @@ -0,0 +1,60 @@ | ||
1 | +package br.gov.ans.sei.utils; | ||
2 | + | ||
3 | +import java.io.File; | ||
4 | +import java.io.FileInputStream; | ||
5 | +import java.security.NoSuchAlgorithmException; | ||
6 | + | ||
7 | +import org.apache.commons.codec.binary.Base64; | ||
8 | + | ||
9 | +import br.gov.ans.commons.security.crypt.HashUtils; | ||
10 | + | ||
11 | +public class SeiHelper { | ||
12 | + | ||
13 | + /** | ||
14 | + * Calcula o hash utilizando o algoritimo SHA-256. | ||
15 | + * | ||
16 | + * @param conteudo entrada da qual será gerado o hash. | ||
17 | + * | ||
18 | + * @return resultado do calculo do hash. | ||
19 | + * | ||
20 | + * @throws NoSuchAlgorithmException | ||
21 | + * | ||
22 | + */ | ||
23 | + public static String calcularHash(String conteudo) throws NoSuchAlgorithmException{ | ||
24 | + return HashUtils.toSHA256(conteudo, null); | ||
25 | + } | ||
26 | + | ||
27 | + /** | ||
28 | + * Codifica entrada para Base64. | ||
29 | + * | ||
30 | + * @param bytes Array de bytes que será codificado. | ||
31 | + * | ||
32 | + * @return resultado da conversão dos bytes. | ||
33 | + * | ||
34 | + * @throws NoSuchAlgorithmException | ||
35 | + * | ||
36 | + */ | ||
37 | + public static String getBase64(byte[] bytes){ | ||
38 | + return Base64.encodeBase64String(bytes); | ||
39 | + } | ||
40 | + | ||
41 | + /** | ||
42 | + * Codifica entrada para Base64. | ||
43 | + * | ||
44 | + * @param arquivo File que será codificado. | ||
45 | + * | ||
46 | + * @return resultado da conversão dos bytes do arquivo. | ||
47 | + * | ||
48 | + * @throws NoSuchAlgorithmException | ||
49 | + * | ||
50 | + */ | ||
51 | + public static String getBase64(File arquivo) throws Exception{ | ||
52 | + byte[] bytes = new byte[(int) arquivo.length()]; | ||
53 | + | ||
54 | + FileInputStream fileInputStream = new FileInputStream(arquivo); | ||
55 | + fileInputStream.read(bytes); | ||
56 | + fileInputStream.close(); | ||
57 | + | ||
58 | + return getBase64(bytes); | ||
59 | + } | ||
60 | +} |