|
|
@ -726,13 +726,15 @@ public class SismicaUtil { |
|
|
|
+ pratica.getNumeroProgetto() + ": " + e2.getMessage()); |
|
|
|
+ pratica.getNumeroProgetto() + ": " + e2.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
controllo.setStatus(WorkflowConstants.STATUS_APPROVED); |
|
|
|
if(controllo != null){ |
|
|
|
AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), |
|
|
|
controllo.setStatus(WorkflowConstants.STATUS_APPROVED); |
|
|
|
"Attestazione di deposito progetto", new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, |
|
|
|
AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), |
|
|
|
StatoPraticaConstants.CONFORME, fileEntryIdTemplate, dettPratica.getDettPraticaId(), |
|
|
|
"Attestazione di deposito progetto", new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, |
|
|
|
DettPratica.class.getName(), controllo.getControlloPraticaId(), serviceContext); |
|
|
|
StatoPraticaConstants.CONFORME, fileEntryIdTemplate, dettPratica.getDettPraticaId(), |
|
|
|
pratica.setStatoPratica(StatoPraticaConstants.CONFORME); |
|
|
|
DettPratica.class.getName(), controllo.getControlloPraticaId(), serviceContext); |
|
|
|
IntPraticaLocalServiceUtil.updateIntPratica(pratica); |
|
|
|
pratica.setStatoPratica(StatoPraticaConstants.CONFORME); |
|
|
|
|
|
|
|
IntPraticaLocalServiceUtil.updateIntPratica(pratica); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (PortalException | SystemException e) { |
|
|
|
} catch (PortalException | SystemException e) { |
|
|
@ -958,7 +960,7 @@ public class SismicaUtil { |
|
|
|
if (tokens.contains(controllo.getControlloPraticaId())) |
|
|
|
if (tokens.contains(controllo.getControlloPraticaId())) |
|
|
|
tokenCount++; |
|
|
|
tokenCount++; |
|
|
|
} |
|
|
|
} |
|
|
|
if (0 == tokenCount) { |
|
|
|
if (0 == tokenCount && Validator.isNotNull(last)) { |
|
|
|
ServiceContext serviceContext = new ServiceContext(); |
|
|
|
ServiceContext serviceContext = new ServiceContext(); |
|
|
|
serviceContext.setCompanyId(last.getCompanyId()); |
|
|
|
serviceContext.setCompanyId(last.getCompanyId()); |
|
|
|
serviceContext.setScopeGroupId(last.getGroupId()); |
|
|
|
serviceContext.setScopeGroupId(last.getGroupId()); |
|
|
@ -1266,53 +1268,56 @@ public class SismicaUtil { |
|
|
|
|
|
|
|
|
|
|
|
public static List<String> resetFirme(long companyId, String numeroProgetto) throws SystemException, |
|
|
|
public static List<String> resetFirme(long companyId, String numeroProgetto) throws SystemException, |
|
|
|
PortalException { |
|
|
|
PortalException { |
|
|
|
|
|
|
|
try{ |
|
|
|
List<String> esito = new ArrayList<>(); |
|
|
|
List<String> esito = new ArrayList<>(); |
|
|
|
if (Validator.isNull(numeroProgetto)) { |
|
|
|
if (Validator.isNull(numeroProgetto)) { |
|
|
|
esito.addAll(firmeBloccate(companyId)); |
|
|
|
esito.addAll(firmeBloccate(companyId)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); |
|
|
|
IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); |
|
|
|
ControlloPratica controllo = getLastControlloPratica(pratica.getIntPraticaId()); |
|
|
|
ControlloPratica controllo = getLastControlloPratica(pratica.getIntPraticaId()); |
|
|
|
KaleoInstanceToken instanceToken = findInstanceToken(controllo.getControlloPraticaId()); |
|
|
|
KaleoInstanceToken instanceToken = findInstanceToken(controllo.getControlloPraticaId()); |
|
|
|
if (Validator.isNotNull(instanceToken)) { |
|
|
|
if (Validator.isNotNull(instanceToken)) { |
|
|
|
esitoLog(esito, "Trovato KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId() |
|
|
|
esitoLog(esito, "Trovato KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId() |
|
|
|
+ ", currentKaleoNodeName = \"" + instanceToken.getCurrentKaleoNodeName() + StringPool.QUOTE); |
|
|
|
+ ", currentKaleoNodeName = \"" + instanceToken.getCurrentKaleoNodeName() + StringPool.QUOTE); |
|
|
|
if (instanceToken.getCurrentKaleoNodeName().equalsIgnoreCase("signal_ff")) { |
|
|
|
if (instanceToken.getCurrentKaleoNodeName().equalsIgnoreCase("signal_ff")) { |
|
|
|
List<KaleoTaskInstanceToken> taskInstanceTokens = findTaskInstanceTokens(instanceToken |
|
|
|
List<KaleoTaskInstanceToken> taskInstanceTokens = findTaskInstanceTokens(instanceToken |
|
|
|
.getKaleoInstanceTokenId()); |
|
|
|
.getKaleoInstanceTokenId()); |
|
|
|
esitoLog(esito, "Trovati " + taskInstanceTokens.size() + " KaleoTaskInstanceToken"); |
|
|
|
esitoLog(esito, "Trovati " + taskInstanceTokens.size() + " KaleoTaskInstanceToken"); |
|
|
|
List<KaleoTaskAssignmentInstance> taskAssignmentInstances = findTaskAssignmentInstances(instanceToken |
|
|
|
List<KaleoTaskAssignmentInstance> taskAssignmentInstances = findTaskAssignmentInstances(instanceToken |
|
|
|
.getKaleoInstanceId()); |
|
|
|
.getKaleoInstanceId()); |
|
|
|
esitoLog(esito, "Trovati " + taskAssignmentInstances.size() + " KaleoTaskAssignmentInstance"); |
|
|
|
esitoLog(esito, "Trovati " + taskAssignmentInstances.size() + " KaleoTaskAssignmentInstance"); |
|
|
|
|
|
|
|
|
|
|
|
KaleoTaskInstanceToken taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 1); |
|
|
|
KaleoTaskInstanceToken taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 1); |
|
|
|
KaleoTaskAssignmentInstance taskAssignmentInstance = taskAssignmentInstances |
|
|
|
KaleoTaskAssignmentInstance taskAssignmentInstance = taskAssignmentInstances |
|
|
|
.get(taskAssignmentInstances.size() - 1); |
|
|
|
.get(taskAssignmentInstances.size() - 1); |
|
|
|
|
|
|
|
|
|
|
|
esitoLog(esito, |
|
|
|
esitoLog(esito, |
|
|
|
"Cancello KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId()); |
|
|
|
"Cancello KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId()); |
|
|
|
KaleoTaskInstanceTokenLocalServiceUtil.deleteKaleoTaskInstanceToken(taskInstanceToken); |
|
|
|
KaleoTaskInstanceTokenLocalServiceUtil.deleteKaleoTaskInstanceToken(taskInstanceToken); |
|
|
|
esitoLog( |
|
|
|
esitoLog( |
|
|
|
esito, |
|
|
|
esito, |
|
|
|
"Cancello KaleoTaskAssignmentInstance " |
|
|
|
"Cancello KaleoTaskAssignmentInstance " |
|
|
|
+ taskAssignmentInstance.getKaleoTaskAssignmentInstanceId()); |
|
|
|
+ taskAssignmentInstance.getKaleoTaskAssignmentInstanceId()); |
|
|
|
KaleoTaskAssignmentInstanceLocalServiceUtil |
|
|
|
KaleoTaskAssignmentInstanceLocalServiceUtil |
|
|
|
.deleteKaleoTaskAssignmentInstance(taskAssignmentInstance); |
|
|
|
.deleteKaleoTaskAssignmentInstance(taskAssignmentInstance); |
|
|
|
|
|
|
|
|
|
|
|
taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 2); |
|
|
|
taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 2); |
|
|
|
esitoLog(esito, |
|
|
|
esitoLog(esito, |
|
|
|
"Aggiorno KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId()); |
|
|
|
"Aggiorno KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId()); |
|
|
|
taskInstanceToken.setCompleted(false); |
|
|
|
taskInstanceToken.setCompleted(false); |
|
|
|
taskInstanceToken.setCompletionUserId(0); |
|
|
|
taskInstanceToken.setCompletionUserId(0); |
|
|
|
taskInstanceToken.setCompletionDate(null); |
|
|
|
taskInstanceToken.setCompletionDate(null); |
|
|
|
KaleoTaskInstanceTokenLocalServiceUtil.updateKaleoTaskInstanceToken(taskInstanceToken); |
|
|
|
KaleoTaskInstanceTokenLocalServiceUtil.updateKaleoTaskInstanceToken(taskInstanceToken); |
|
|
|
|
|
|
|
|
|
|
|
esitoLog(esito, "Aggiorno KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId()); |
|
|
|
esitoLog(esito, "Aggiorno KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId()); |
|
|
|
instanceToken.setCurrentKaleoNodeId(21639); |
|
|
|
instanceToken.setCurrentKaleoNodeId(21639); |
|
|
|
instanceToken.setCurrentKaleoNodeName("Esito"); |
|
|
|
instanceToken.setCurrentKaleoNodeName("Esito"); |
|
|
|
KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken); |
|
|
|
KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
_log.error(e, e); |
|
|
|
} |
|
|
|
} |
|
|
|
return esito; |
|
|
|
return esito; |
|
|
|
} |
|
|
|
} |
|
|
@ -1452,18 +1457,22 @@ 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); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
@ -1499,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; |
|
|
@ -1538,10 +1551,14 @@ public class SismicaUtil { |
|
|
|
FileEntry fileEntry = null; |
|
|
|
FileEntry fileEntry = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase()); |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase()); |
|
|
|
} 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()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdInvio() != 0)) { |
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdInvio() != 0)) { |
|
|
@ -1549,20 +1566,28 @@ public class SismicaUtil { |
|
|
|
FileEntry fileEntry = null; |
|
|
|
FileEntry fileEntry = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio()); |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio()); |
|
|
|
} 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()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdProtocollo() != 0)) { |
|
|
|
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdProtocollo() != 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.getFileEntryIdProtocollo()); |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdProtocollo()); |
|
|
|
} 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; |
|
|
@ -1599,11 +1624,13 @@ public class SismicaUtil { |
|
|
|
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); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(Validator.isNotNull(fileEntry){ |
|
|
|
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
@ -1640,11 +1667,13 @@ public class SismicaUtil { |
|
|
|
try { |
|
|
|
try { |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getDlFileEntryId()); |
|
|
|
fileEntry = DLAppServiceUtil.getFileEntry(documento.getDlFileEntryId()); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
// _log.info(e.getClass() + ": " + e.getMessage());
|
|
|
|
_log.error(e,e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
@ -1681,11 +1710,13 @@ public class SismicaUtil { |
|
|
|
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); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
@ -1722,11 +1753,13 @@ public class SismicaUtil { |
|
|
|
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); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(Validator.isNotNull(fileEntry)){ |
|
|
|
|
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " |
|
|
|
|
|
|
|
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento |
|
|
|
|
|
|
|
+ StringPool.SPACE + documento.getPrimaryKey()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
inizio += SLICE; |
|
|
|
inizio += SLICE; |
|
|
|