|
|
|
@ -1551,10 +1551,14 @@ public class SismicaUtil {
|
|
|
|
|
FileEntry fileEntry = null; |
|
|
|
|
try { |
|
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase()); |
|
|
|
|
} catch (Exception e) {} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
_log.error(e,e); |
|
|
|
|
} |
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdInvio() != 0)) { |
|
|
|
@ -1562,22 +1566,30 @@ public class SismicaUtil {
|
|
|
|
|
FileEntry fileEntry = null; |
|
|
|
|
try { |
|
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio()); |
|
|
|
|
} catch (Exception e) {} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
_log.error(e,e); |
|
|
|
|
} |
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdProtocollo() != 0)) { |
|
|
|
|
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); |
|
|
|
|
FileEntry fileEntry = null; |
|
|
|
|
try { |
|
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdProtocollo()); |
|
|
|
|
} catch (Exception e) {} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
_log.error(e,e); |
|
|
|
|
} |
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
inizio += SLICE; |
|
|
|
|
if (documenti.size() > 0) { |
|
|
|
|
totali += documenti.size(); |
|
|
|
|