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