|
|
@ -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,10 +1508,14 @@ 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) { |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
_log.error(e,e); |
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
} |
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
|