diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..978271b --- /dev/null +++ b/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..5747522 --- /dev/null +++ b/.project @@ -0,0 +1,29 @@ + + + ans-commons-sei + + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..c0f0bb6 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,25 @@ +eclipse.preferences.version=1 +encoding//src/main/java/br/gov/ans/sei/modelo/Andamento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Assinatura.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Assunto.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Destinatario.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Documento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Interessado.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Observacao.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Procedimento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/ProcedimentoResumido.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/ProtocoloBloco.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Publicacao.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/PublicacaoImprensaNacional.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Remetente.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoConsultaBloco.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoConsultaDocumento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoConsultaProcedimento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoGeracaoProcedimento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/RetornoInclusaoDocumento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Serie.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/TipoProcedimento.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Unidade.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/UnidadeProcedimentoAberto.java=UTF-8 +encoding//src/main/java/br/gov/ans/sei/modelo/Usuario.java=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..6472c7c --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,13 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..14b697b --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..4b45bbe --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,4 @@ + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..cf293e9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,34 @@ + + 4.0.0 + br.gov.ans + ans-commons-sei + 0.2 + ans-commons-sei + jar + Biblioteca de apoio aos clientes do SEI-Broker. + + + + + org.jboss.resteasy + resteasy-jackson-provider + 3.1.0.Final + + + + + br.gov.ans.commons + ans-commons-security + 2.0 + + + + + commons-codec + commons-codec + 1.10 + + + + \ No newline at end of file diff --git a/src/main/java/br/gov/ans/exceptions/ErrorMessage.java b/src/main/java/br/gov/ans/exceptions/ErrorMessage.java new file mode 100644 index 0000000..587b157 --- /dev/null +++ b/src/main/java/br/gov/ans/exceptions/ErrorMessage.java @@ -0,0 +1,41 @@ +package br.gov.ans.exceptions; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class ErrorMessage { + private String error; + private String code; + + public ErrorMessage(){} + + public ErrorMessage(String error) { + this.error = error; + } + + public ErrorMessage(String error, String code) { + this.error = error; + this.code = code; + } + + public ErrorMessage(String error, int code) { + this.error = error; + this.code = String.valueOf(code); + } + + public String getError() { + return error; + } + + public void setError(String error){ + this.error = error; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } +} diff --git a/src/main/java/br/gov/ans/sei/modelo/Andamento.java b/src/main/java/br/gov/ans/sei/modelo/Andamento.java new file mode 100644 index 0000000..23458bf --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/Andamento.java @@ -0,0 +1,167 @@ +/** + * Andamento.java + * + * This file was auto-generated from WSDL + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. + */ + +package br.gov.ans.sei.modelo; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class Andamento implements java.io.Serializable { + private String descricao; + + private String dataHora; + + private Unidade unidade; + + private Usuario usuario; + + public Andamento() { + } + + public Andamento( + String descricao, + String dataHora, + Unidade unidade, + Usuario usuario) { + this.descricao = descricao; + this.dataHora = dataHora; + this.unidade = unidade; + this.usuario = usuario; + } + + + /** + * Gets the descricao value for this Andamento. + * + * @return descricao + */ + public String getDescricao() { + return descricao; + } + + + /** + * Sets the descricao value for this Andamento. + * + * @param descricao + */ + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + /** + * Gets the dataHora value for this Andamento. + * + * @return dataHora + */ + public String getDataHora() { + return dataHora; + } + + + /** + * Sets the dataHora value for this Andamento. + * + * @param dataHora + */ + public void setDataHora(String dataHora) { + this.dataHora = dataHora; + } + + + /** + * Gets the unidade value for this Andamento. + * + * @return unidade + */ + public Unidade getUnidade() { + return unidade; + } + + + /** + * Sets the unidade value for this Andamento. + * + * @param unidade + */ + public void setUnidade(Unidade unidade) { + this.unidade = unidade; + } + + + /** + * Gets the usuario value for this Andamento. + * + * @return usuario + */ + public Usuario getUsuario() { + return usuario; + } + + + /** + * Sets the usuario value for this Andamento. + * + * @param usuario + */ + public void setUsuario(Usuario usuario) { + this.usuario = usuario; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof Andamento)) return false; + Andamento other = (Andamento) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((this.descricao==null && other.getDescricao()==null) || + (this.descricao!=null && + this.descricao.equals(other.getDescricao()))) && + ((this.dataHora==null && other.getDataHora()==null) || + (this.dataHora!=null && + this.dataHora.equals(other.getDataHora()))) && + ((this.unidade==null && other.getUnidade()==null) || + (this.unidade!=null && + this.unidade.equals(other.getUnidade()))) && + ((this.usuario==null && other.getUsuario()==null) || + (this.usuario!=null && + this.usuario.equals(other.getUsuario()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getDescricao() != null) { + _hashCode += getDescricao().hashCode(); + } + if (getDataHora() != null) { + _hashCode += getDataHora().hashCode(); + } + if (getUnidade() != null) { + _hashCode += getUnidade().hashCode(); + } + if (getUsuario() != null) { + _hashCode += getUsuario().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + +} diff --git a/src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java b/src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java new file mode 100644 index 0000000..408f2fd --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/ArquivoExtensao.java @@ -0,0 +1,137 @@ +/** + * ArquivoExtensao.java + * + * This file was auto-generated from WSDL + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. + */ + +package br.gov.ans.sei.modelo; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class ArquivoExtensao implements java.io.Serializable { + private java.lang.String idArquivoExtensao; + + private java.lang.String extensao; + + private java.lang.String descricao; + + public ArquivoExtensao() { + } + + public ArquivoExtensao( + java.lang.String idArquivoExtensao, + java.lang.String extensao, + java.lang.String descricao) { + this.idArquivoExtensao = idArquivoExtensao; + this.extensao = extensao; + this.descricao = descricao; + } + + + /** + * Gets the idArquivoExtensao value for this ArquivoExtensao. + * + * @return idArquivoExtensao + */ + public java.lang.String getIdArquivoExtensao() { + return idArquivoExtensao; + } + + + /** + * Sets the idArquivoExtensao value for this ArquivoExtensao. + * + * @param idArquivoExtensao + */ + public void setIdArquivoExtensao(java.lang.String idArquivoExtensao) { + this.idArquivoExtensao = idArquivoExtensao; + } + + + /** + * Gets the extensao value for this ArquivoExtensao. + * + * @return extensao + */ + public java.lang.String getExtensao() { + return extensao; + } + + + /** + * Sets the extensao value for this ArquivoExtensao. + * + * @param extensao + */ + public void setExtensao(java.lang.String extensao) { + this.extensao = extensao; + } + + + /** + * Gets the descricao value for this ArquivoExtensao. + * + * @return descricao + */ + public java.lang.String getDescricao() { + return descricao; + } + + + /** + * Sets the descricao value for this ArquivoExtensao. + * + * @param descricao + */ + public void setDescricao(java.lang.String descricao) { + this.descricao = descricao; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof ArquivoExtensao)) return false; + ArquivoExtensao other = (ArquivoExtensao) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((this.idArquivoExtensao==null && other.getIdArquivoExtensao()==null) || + (this.idArquivoExtensao!=null && + this.idArquivoExtensao.equals(other.getIdArquivoExtensao()))) && + ((this.extensao==null && other.getExtensao()==null) || + (this.extensao!=null && + this.extensao.equals(other.getExtensao()))) && + ((this.descricao==null && other.getDescricao()==null) || + (this.descricao!=null && + this.descricao.equals(other.getDescricao()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getIdArquivoExtensao() != null) { + _hashCode += getIdArquivoExtensao().hashCode(); + } + if (getExtensao() != null) { + _hashCode += getExtensao().hashCode(); + } + if (getDescricao() != null) { + _hashCode += getDescricao().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + +} diff --git a/src/main/java/br/gov/ans/sei/modelo/Assinatura.java b/src/main/java/br/gov/ans/sei/modelo/Assinatura.java new file mode 100644 index 0000000..0103f22 --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/Assinatura.java @@ -0,0 +1,137 @@ +/** + * Assinatura.java + * + * This file was auto-generated from WSDL + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. + */ + +package br.gov.ans.sei.modelo; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class Assinatura implements java.io.Serializable { + private java.lang.String nome; + + private java.lang.String cargoFuncao; + + private java.lang.String dataHora; + + public Assinatura() { + } + + public Assinatura( + java.lang.String nome, + java.lang.String cargoFuncao, + java.lang.String dataHora) { + this.nome = nome; + this.cargoFuncao = cargoFuncao; + this.dataHora = dataHora; + } + + + /** + * Gets the nome value for this Assinatura. + * + * @return nome + */ + public java.lang.String getNome() { + return nome; + } + + + /** + * Sets the nome value for this Assinatura. + * + * @param nome + */ + public void setNome(java.lang.String nome) { + this.nome = nome; + } + + + /** + * Gets the cargoFuncao value for this Assinatura. + * + * @return cargoFuncao + */ + public java.lang.String getCargoFuncao() { + return cargoFuncao; + } + + + /** + * Sets the cargoFuncao value for this Assinatura. + * + * @param cargoFuncao + */ + public void setCargoFuncao(java.lang.String cargoFuncao) { + this.cargoFuncao = cargoFuncao; + } + + + /** + * Gets the dataHora value for this Assinatura. + * + * @return dataHora + */ + public java.lang.String getDataHora() { + return dataHora; + } + + + /** + * Sets the dataHora value for this Assinatura. + * + * @param dataHora + */ + public void setDataHora(java.lang.String dataHora) { + this.dataHora = dataHora; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof Assinatura)) return false; + Assinatura other = (Assinatura) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((this.nome==null && other.getNome()==null) || + (this.nome!=null && + this.nome.equals(other.getNome()))) && + ((this.cargoFuncao==null && other.getCargoFuncao()==null) || + (this.cargoFuncao!=null && + this.cargoFuncao.equals(other.getCargoFuncao()))) && + ((this.dataHora==null && other.getDataHora()==null) || + (this.dataHora!=null && + this.dataHora.equals(other.getDataHora()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getNome() != null) { + _hashCode += getNome().hashCode(); + } + if (getCargoFuncao() != null) { + _hashCode += getCargoFuncao().hashCode(); + } + if (getDataHora() != null) { + _hashCode += getDataHora().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + +} diff --git a/src/main/java/br/gov/ans/sei/modelo/Assunto.java b/src/main/java/br/gov/ans/sei/modelo/Assunto.java new file mode 100644 index 0000000..f63b14e --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/Assunto.java @@ -0,0 +1,107 @@ +/** + * Assunto.java + * + * This file was auto-generated from WSDL + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. + */ + +package br.gov.ans.sei.modelo; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class Assunto implements java.io.Serializable { + private java.lang.String codigoEstruturado; + + private java.lang.String descricao; + + public Assunto() { + } + + public Assunto( + java.lang.String codigoEstruturado, + java.lang.String descricao) { + this.codigoEstruturado = codigoEstruturado; + this.descricao = descricao; + } + + + /** + * Gets the codigoEstruturado value for this Assunto. + * + * @return codigoEstruturado + */ + public java.lang.String getCodigoEstruturado() { + return codigoEstruturado; + } + + + /** + * Sets the codigoEstruturado value for this Assunto. + * + * @param codigoEstruturado + */ + public void setCodigoEstruturado(java.lang.String codigoEstruturado) { + this.codigoEstruturado = codigoEstruturado; + } + + + /** + * Gets the descricao value for this Assunto. + * + * @return descricao + */ + public java.lang.String getDescricao() { + return descricao; + } + + + /** + * Sets the descricao value for this Assunto. + * + * @param descricao + */ + public void setDescricao(java.lang.String descricao) { + this.descricao = descricao; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof Assunto)) return false; + Assunto other = (Assunto) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((this.codigoEstruturado==null && other.getCodigoEstruturado()==null) || + (this.codigoEstruturado!=null && + this.codigoEstruturado.equals(other.getCodigoEstruturado()))) && + ((this.descricao==null && other.getDescricao()==null) || + (this.descricao!=null && + this.descricao.equals(other.getDescricao()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getCodigoEstruturado() != null) { + _hashCode += getCodigoEstruturado().hashCode(); + } + if (getDescricao() != null) { + _hashCode += getDescricao().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + +} diff --git a/src/main/java/br/gov/ans/sei/modelo/CancelamentoDocumento.java b/src/main/java/br/gov/ans/sei/modelo/CancelamentoDocumento.java new file mode 100644 index 0000000..e1e0f35 --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/CancelamentoDocumento.java @@ -0,0 +1,24 @@ +package br.gov.ans.sei.modelo; + +public class CancelamentoDocumento { + private String documento; + private String motivo; + + public CancelamentoDocumento(){} + + public String getDocumento() { + return documento; + } + + public void setDocumento(String documento) { + this.documento = documento; + } + + public String getMotivo() { + return motivo; + } + + public void setMotivo(String motivo) { + this.motivo = motivo; + } +} diff --git a/src/main/java/br/gov/ans/sei/modelo/Destinatario.java b/src/main/java/br/gov/ans/sei/modelo/Destinatario.java new file mode 100644 index 0000000..996f960 --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/Destinatario.java @@ -0,0 +1,107 @@ +/** + * Destinatario.java + * + * This file was auto-generated from WSDL + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. + */ + +package br.gov.ans.sei.modelo; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class Destinatario implements java.io.Serializable { + private java.lang.String sigla; + + private java.lang.String nome; + + public Destinatario() { + } + + public Destinatario( + java.lang.String sigla, + java.lang.String nome) { + this.sigla = sigla; + this.nome = nome; + } + + + /** + * Gets the sigla value for this Destinatario. + * + * @return sigla + */ + public java.lang.String getSigla() { + return sigla; + } + + + /** + * Sets the sigla value for this Destinatario. + * + * @param sigla + */ + public void setSigla(java.lang.String sigla) { + this.sigla = sigla; + } + + + /** + * Gets the nome value for this Destinatario. + * + * @return nome + */ + public java.lang.String getNome() { + return nome; + } + + + /** + * Sets the nome value for this Destinatario. + * + * @param nome + */ + public void setNome(java.lang.String nome) { + this.nome = nome; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof Destinatario)) return false; + Destinatario other = (Destinatario) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((this.sigla==null && other.getSigla()==null) || + (this.sigla!=null && + this.sigla.equals(other.getSigla()))) && + ((this.nome==null && other.getNome()==null) || + (this.nome!=null && + this.nome.equals(other.getNome()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getSigla() != null) { + _hashCode += getSigla().hashCode(); + } + if (getNome() != null) { + _hashCode += getNome().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + +} diff --git a/src/main/java/br/gov/ans/sei/modelo/Documento.java b/src/main/java/br/gov/ans/sei/modelo/Documento.java new file mode 100644 index 0000000..abe4aed --- /dev/null +++ b/src/main/java/br/gov/ans/sei/modelo/Documento.java @@ -0,0 +1,455 @@ +/** + * Documento.java + * + * This file was auto-generated from WSDL + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. + */ + +package br.gov.ans.sei.modelo; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement +public class Documento implements java.io.Serializable { + protected java.lang.String tipo; + + protected java.lang.String idProcedimento; + + protected java.lang.String idSerie; + + protected java.lang.String numero; + + protected java.lang.String data; + + protected java.lang.String descricao; + + protected Remetente remetente; + + protected Interessado[] interessados; + + protected Destinatario[] destinatarios; + + protected java.lang.String observacao; + + protected java.lang.String nomeArquivo; + + protected java.lang.String conteudo; + + protected java.lang.String nivelAcesso; + + public Documento() { + } + + public Documento( + java.lang.String tipo, + java.lang.String idProcedimento, + java.lang.String idSerie, + java.lang.String numero, + java.lang.String data, + java.lang.String descricao, + Remetente remetente, + Interessado[] interessados, + Destinatario[] destinatarios, + java.lang.String observacao, + java.lang.String nomeArquivo, + java.lang.String conteudo, + byte[] conteudoMTOM, + java.lang.String nivelAcesso) { + this.tipo = tipo; + this.idProcedimento = idProcedimento; + this.idSerie = idSerie; + this.numero = numero; + this.data = data; + this.descricao = descricao; + this.remetente = remetente; + this.interessados = interessados; + this.destinatarios = destinatarios; + this.observacao = observacao; + this.nomeArquivo = nomeArquivo; + this.conteudo = conteudo; +// this.conteudoMTOM = conteudoMTOM; + this.nivelAcesso = nivelAcesso; + } + + + /** + * Gets the tipo value for this Documento. + * + * @return tipo + */ + public java.lang.String getTipo() { + return tipo; + } + + + /** + * Sets the tipo value for this Documento. + * + * @param tipo + */ + public void setTipo(java.lang.String tipo) { + this.tipo = tipo; + } + + + /** + * Gets the idProcedimento value for this Documento. + * + * @return idProcedimento + */ + public java.lang.String getIdProcedimento() { + return idProcedimento; + } + + + /** + * Sets the idProcedimento value for this Documento. + * + * @param idProcedimento + */ + public void setIdProcedimento(java.lang.String idProcedimento) { + this.idProcedimento = idProcedimento; + } + + + /** + * Gets the idSerie value for this Documento. + * + * @return idSerie + */ + public java.lang.String getIdSerie() { + return idSerie; + } + + + /** + * Sets the idSerie value for this Documento. + * + * @param idSerie + */ + public void setIdSerie(java.lang.String idSerie) { + this.idSerie = idSerie; + } + + + /** + * Gets the numero value for this Documento. + * + * @return numero + */ + public java.lang.String getNumero() { + return numero; + } + + + /** + * Sets the numero value for this Documento. + * + * @param numero + */ + public void setNumero(java.lang.String numero) { + this.numero = numero; + } + + + /** + * Gets the data value for this Documento. + * + * @return data + */ + public java.lang.String getData() { + return data; + } + + + /** + * Sets the data value for this Documento. + * + * @param data + */ + public void setData(java.lang.String data) { + this.data = data; + } + + + /** + * Gets the descricao value for this Documento. + * + * @return descricao + */ + public java.lang.String getDescricao() { + return descricao; + } + + + /** + * Sets the descricao value for this Documento. + * + * @param descricao + */ + public void setDescricao(java.lang.String descricao) { + this.descricao = descricao; + } + + + /** + * Gets the remetente value for this Documento. + * + * @return remetente + */ + public Remetente getRemetente() { + return remetente; + } + + + /** + * Sets the remetente value for this Documento. + * + * @param remetente + */ + public void setRemetente(Remetente remetente) { + this.remetente = remetente; + } + + + /** + * Gets the interessados value for this Documento. + * + * @return interessados + */ + public Interessado[] getInteressados() { + return interessados; + } + + + /** + * Sets the interessados value for this Documento. + * + * @param interessados + */ + public void setInteressados(Interessado[] interessados) { + this.interessados = interessados; + } + + + /** + * Gets the destinatarios value for this Documento. + * + * @return destinatarios + */ + public Destinatario[] getDestinatarios() { + return destinatarios; + } + + + /** + * Sets the destinatarios value for this Documento. + * + * @param destinatarios + */ + public void setDestinatarios(Destinatario[] destinatarios) { + this.destinatarios = destinatarios; + } + + + /** + * Gets the observacao value for this Documento. + * + * @return observacao + */ + public java.lang.String getObservacao() { + return observacao; + } + + + /** + * Sets the observacao value for this Documento. + * + * @param observacao + */ + public void setObservacao(java.lang.String observacao) { + this.observacao = observacao; + } + + + /** + * Gets the nomeArquivo value for this Documento. + * + * @return nomeArquivo + */ + public java.lang.String getNomeArquivo() { + return nomeArquivo; + } + + + /** + * Sets the nomeArquivo value for this Documento. + * + * @param nomeArquivo + */ + public void setNomeArquivo(java.lang.String nomeArquivo) { + this.nomeArquivo = nomeArquivo; + } + + + /** + * Gets the conteudo value for this Documento. + * + * @return conteudo + */ + public java.lang.String getConteudo() { + return conteudo; + } + + + /** + * Sets the conteudo value for this Documento. + * + * @param conteudo + */ + public void setConteudo(java.lang.String conteudo) { + this.conteudo = conteudo; + } + + /** + * Gets the nivelAcesso value for this Documento. + * + * @return nivelAcesso + */ + public java.lang.String getNivelAcesso() { + return nivelAcesso; + } + + + /** + * Sets the nivelAcesso value for this Documento. + * + * @param nivelAcesso + */ + public void setNivelAcesso(java.lang.String nivelAcesso) { + this.nivelAcesso = nivelAcesso; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof Documento)) return false; + Documento other = (Documento) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((this.tipo==null && other.getTipo()==null) || + (this.tipo!=null && + this.tipo.equals(other.getTipo()))) && + ((this.idProcedimento==null && other.getIdProcedimento()==null) || + (this.idProcedimento!=null && + this.idProcedimento.equals(other.getIdProcedimento()))) && + ((this.idSerie==null && other.getIdSerie()==null) || + (this.idSerie!=null && + this.idSerie.equals(other.getIdSerie()))) && + ((this.numero==null && other.getNumero()==null) || + (this.numero!=null && + this.numero.equals(other.getNumero()))) && + ((this.data==null && other.getData()==null) || + (this.data!=null && + this.data.equals(other.getData()))) && + ((this.descricao==null && other.getDescricao()==null) || + (this.descricao!=null && + this.descricao.equals(other.getDescricao()))) && + ((this.remetente==null && other.getRemetente()==null) || + (this.remetente!=null && + this.remetente.equals(other.getRemetente()))) && + ((this.interessados==null && other.getInteressados()==null) || + (this.interessados!=null && + java.util.Arrays.equals(this.interessados, other.getInteressados()))) && + ((this.destinatarios==null && other.getDestinatarios()==null) || + (this.destinatarios!=null && + java.util.Arrays.equals(this.destinatarios, other.getDestinatarios()))) && + ((this.observacao==null && other.getObservacao()==null) || + (this.observacao!=null && + this.observacao.equals(other.getObservacao()))) && + ((this.nomeArquivo==null && other.getNomeArquivo()==null) || + (this.nomeArquivo!=null && + this.nomeArquivo.equals(other.getNomeArquivo()))) && + ((this.conteudo==null && other.getConteudo()==null) || + (this.conteudo!=null && + this.conteudo.equals(other.getConteudo()))) && + ((this.nivelAcesso==null && other.getNivelAcesso()==null) || + (this.nivelAcesso!=null && + this.nivelAcesso.equals(other.getNivelAcesso()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getTipo() != null) { + _hashCode += getTipo().hashCode(); + } + if (getIdProcedimento() != null) { + _hashCode += getIdProcedimento().hashCode(); + } + if (getIdSerie() != null) { + _hashCode += getIdSerie().hashCode(); + } + if (getNumero() != null) { + _hashCode += getNumero().hashCode(); + } + if (getData() != null) { + _hashCode += getData().hashCode(); + } + if (getDescricao() != null) { + _hashCode += getDescricao().hashCode(); + } + if (getRemetente() != null) { + _hashCode += getRemetente().hashCode(); + } + if (getInteressados() != null) { + for (int i=0; + i