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