|
|
|
@ -1457,14 +1457,16 @@ public class SismicaUtil {
|
|
|
|
|
IntPratica pratica = null; |
|
|
|
|
try { |
|
|
|
|
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); |
|
|
|
|
} catch (PortalException e) {} |
|
|
|
|
} catch (PortalException e) { |
|
|
|
|
_log.error(e,e) |
|
|
|
|
} |
|
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { |
|
|
|
|
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); |
|
|
|
|
FileEntry fileEntry = null; |
|
|
|
|
try { |
|
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
// _log.info(e.getClass() + ": " + e.getMessage());
|
|
|
|
|
_log.error(e,e) |
|
|
|
|
} |
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|