|
|
@ -1458,7 +1458,7 @@ public class SismicaUtil { |
|
|
|
try { |
|
|
|
try { |
|
|
|
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); |
|
|
|
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); |
|
|
|
} catch (PortalException e) { |
|
|
|
} catch (PortalException e) { |
|
|
|
_log.error(e,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()); |
|
|
@ -1466,7 +1466,7 @@ public class SismicaUtil { |
|
|
|
try { |
|
|
|
try { |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
_log.error(e,e) |
|
|
|
_log.error(e,e); |
|
|
|
} |
|
|
|
} |
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
@ -1508,12 +1508,16 @@ public class SismicaUtil { |
|
|
|
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.error(e,e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
|
if (documenti.size() > 0) { |
|
|
|
if (documenti.size() > 0) { |
|
|
|
totali += documenti.size(); |
|
|
|
totali += documenti.size(); |
|
|
|