Commit b2f9f192c71f803ed93ebf39df88b53c7817b3f4
1 parent
d93bb317
Exists in
master
Redmine # 3700 correção de include
Showing
2 changed files
with
11 additions
and
9 deletions
Show diff stats
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/AnexoGedServiceImpl.java
... | ... | @@ -107,7 +107,7 @@ public class AnexoGedServiceImpl extends GenericServiceImpl<AnexoGed, Long> impl |
107 | 107 | |
108 | 108 | documentoGed.setConteudo(this.gedFileService.doOcr(anexo)); |
109 | 109 | |
110 | - /*solrService.addDocumento(documentoGed); */ | |
110 | + solrService.addDocumento(documentoGed); | |
111 | 111 | |
112 | 112 | anexo.setDocumentoGed(documentoGed); |
113 | 113 | ... | ... |
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/DocumentoGedServiceImpl.java
... | ... | @@ -176,7 +176,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo |
176 | 176 | entity.setConteudo(this.decrypted(entity.getConteudoCriptografado())); |
177 | 177 | } |
178 | 178 | |
179 | - // this.saveSolr(entity); | |
179 | + /* this.saveSolr(entity);*/ | |
180 | 180 | |
181 | 181 | this.verificaTemporalidadeProcesso(entity); |
182 | 182 | |
... | ... | @@ -775,15 +775,17 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo |
775 | 775 | |
776 | 776 | if (!UtilColecao.isVazio(listaDocumentos)) { |
777 | 777 | for (DocumentoGed documento : listaDocumentos) { |
778 | - if (documento.getSigilo() == null) { | |
779 | - documento.setAprovado(Boolean.TRUE); | |
778 | + DocumentoGed entity = (DocumentoGed) this.documentoGedDao.getReference(documento.getId()); | |
779 | + if (documento.getNivelAcesso() == null) { | |
780 | + entity.setAprovado(Boolean.TRUE); | |
780 | 781 | } |
781 | 782 | |
782 | - // entity.setSigiloOriginal(documento.getSigilo()); | |
783 | - // entity.setNivelAcessoOriginal(documento.getNivelAcesso()); | |
784 | - // entity.setSigilo(documento.getSigilo()); | |
785 | - // entity.setNivelAcesso(documento.getNivelAcesso()); | |
786 | - // super.merge(entity); | |
783 | + | |
784 | + entity.setSigiloOriginal(documento.getSigilo()); | |
785 | + entity.setNivelAcessoOriginal(documento.getNivelAcesso()); | |
786 | + entity.setSigilo(documento.getSigilo()); | |
787 | + entity.setNivelAcesso(documento.getNivelAcesso()); | |
788 | + super.merge(entity); | |
787 | 789 | } |
788 | 790 | |
789 | 791 | } | ... | ... |