Class DATSaveNotification
java.lang.Object
overit.geocall.da.DATask
overit.geocallapp.wfm.notifications.notification.dat.DATSaveNotification
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Notificationprotected DAXWFMAAvvisiprotected DAXWFMAAvvisiAttivitaprotected DAXWFMAAvvisiCataloghiprotected DAXWFMAAvvisiRigheprotected DAXWFMAAvvisiTestoprotected overit.geocallapp.wfm.storici.avvisi.DAXWFMSLogTransazioniAvvisiprotected overit.geocallapp.wfm.docsharing.DATSaveWfmResourceprotected booleanprotected booleanprotected booleanprotected Stringprotected Longprotected DATSaveNotification.SaveModeprotected Notificationprotected Stringprotected Longprotected Notificationprotected Stringprotected Longstatic final StringFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChild(Long parentId, Long childId, PooledConnection pc) protected voidaddCreationDate(HashGetter hgNotification) protected voidbody()Abstract method, that must be implemented, that represent the start point of the task.protected booleancheckNote(HashGetter hgNote, PooledConnection pc) protected voidcheckNotification(Notification notification) protected booleancheckNotificationNotModified(Notification notification, Notification dbNotification) protected booleancheckRow(HashGetter hgRow, PooledConnection pc) protected voidcreateAttachment(Long notificationId, Long rowId, HashGetter hgAttachment, PooledConnection pc) protected LongcreateNote(Long notificationId, HashGetter hgNote, PooledConnection pc) protected Longprotected LongcreateRow(Long notificationId, HashGetter hgRow, PooledConnection pc) protected voidcreateSubRowActivity(Long rowId, HashGetter hgSubRowActivity, PooledConnection pc) protected voidcreateSubRowFault(Long rowId, HashGetter hgSubRowFault, PooledConnection pc) voidcustomInsert(HashGetter hgNotification) protected voiddeleteChild(Long childId, PooledConnection pc) voidprotected voidprotected Stringprotected StringgetNewNotificationCode(Long typeId, PooledConnection pc) protected voidprotected NotificationloadNotification(Long notificationId, DATLoadNotification.LoadMode loadingMode, PooledConnection pc) protected NotificationloadNotificationHeader(Long notificationId, PooledConnection pc) protected overit.geocallapp.docshare.docsharing.bl.ResourceloadResourceFather(String baseDir, Long notificationId) protected voidmanageSapCreation(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) protected voidmanageSapIntegration(Notification notification, Long notificationId, PooledConnection pc) protected voidmanageSapIntegrationOLD(Notification notification, Long notificationId, PooledConnection pc) protected voidmanageSapModification(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) protected voidsaveNotificationHeader(Notification notification, PooledConnection pc) voidsetDisableGAE(boolean disableGAE) voidsetDisableNotificationCheck(boolean disableNotificationCheck) voidsetDisableSAP(boolean disableSAP) voidvoidsetNotification(Notification notification) protected voidupdateNote(HashGetter hgNote, PooledConnection pc) protected voidprotected voidupdateRow(HashGetter hgRow, PooledConnection pc) protected voidupdateSapCode(Long notificationId, String sapCode, PooledConnection pc) protected voidupdateStatusInvioSap(Notification notification, Long notificationId, boolean success, String error, PooledConnection pc) protected voidupdateSubRowActivity(HashGetter hgSubRowActivity, PooledConnection pc) protected voidupdateSubRowFault(HashGetter hgSubRowFault, PooledConnection pc) Methods inherited from class overit.geocall.da.DATask
commit, deliverCourier, getConnection, getDA, getIdentity, getServiceConnection, holdFactoryCourier, holdUserCourier, releaseConnection, rollback, run, setIdentity, start, startInBackground, synchronizeOn
-
Field Details
-
M_NOTIFICATION_CONCURRENCY_ALERT
- See Also:
-
_mode
-
_disableGAE
protected boolean _disableGAE -
_disableSAP
protected boolean _disableSAP -
_disableNotificationCheck
protected boolean _disableNotificationCheck -
_notification
-
_notificationId
-
_notificationCode
-
_rowsKeyId
-
_daAAvvisi
-
_daAAvvisiRighe
-
_daAAvvisiAttivita
-
_daAAvvisiCataloghi
-
_datSaveWfmResource
protected overit.geocallapp.wfm.docsharing.DATSaveWfmResource _datSaveWfmResource -
_daAAvvisiTesto
-
_daLogTransazioniAvvisi
protected overit.geocallapp.wfm.storici.avvisi.DAXWFMSLogTransazioniAvvisi _daLogTransazioniAvvisi -
_transactionID
-
_idHistory
-
_preSaveNotification
-
_afterSaveNotification
-
_statusInvioSap
-
_esitoInvioSap
-
-
Constructor Details
-
DATSaveNotification
public DATSaveNotification()
-
-
Method Details
-
body
Description copied from class:DATaskAbstract method, that must be implemented, that represent the start point of the task. The method contains the application logic of the specific task.- Specified by:
bodyin classDATask- Throws:
DAException- If there is a (blocking) data-access error, a DAException is thrown to the callerDAValidateException- If there are error in the data validation phase, a DAValidateException is thrown
-
execute
- Throws:
DAExceptionDAValidateException
-
getConcurrencyAlertMessage
-
inizializzaTransazioneStorico
protected void inizializzaTransazioneStorico(PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
finalizzaTransazioneStorico
protected void finalizzaTransazioneStorico(PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkNotification
- Throws:
DAValidateException
-
createNotification
- Throws:
DAExceptionDAValidateException
-
addCreationDate
-
customInsert
-
checkNotificationNotModified
protected boolean checkNotificationNotModified(Notification notification, Notification dbNotification) -
updateNotification
- Throws:
DAExceptionDAValidateException
-
createRow
protected Long createRow(Long notificationId, HashGetter hgRow, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateRow
protected void updateRow(HashGetter hgRow, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkRow
-
createSubRowActivity
protected void createSubRowActivity(Long rowId, HashGetter hgSubRowActivity, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateSubRowActivity
protected void updateSubRowActivity(HashGetter hgSubRowActivity, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createSubRowFault
protected void createSubRowFault(Long rowId, HashGetter hgSubRowFault, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateSubRowFault
protected void updateSubRowFault(HashGetter hgSubRowFault, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createAttachment
protected void createAttachment(Long notificationId, Long rowId, HashGetter hgAttachment, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadResourceFather
protected overit.geocallapp.docshare.docsharing.bl.Resource loadResourceFather(String baseDir, Long notificationId) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createNote
protected Long createNote(Long notificationId, HashGetter hgNote, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateNote
protected void updateNote(HashGetter hgNote, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkNote
-
deleteChild
protected void deleteChild(Long childId, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
addChild
protected void addChild(Long parentId, Long childId, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadNotificationHeader
protected Notification loadNotificationHeader(Long notificationId, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadNotification
protected Notification loadNotification(Long notificationId, DATLoadNotification.LoadMode loadingMode, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
saveNotificationHeader
protected void saveNotificationHeader(Notification notification, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getNewNotificationCode
protected String getNewNotificationCode(Long typeId, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
manageSapIntegration
protected void manageSapIntegration(Notification notification, Long notificationId, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
manageSapIntegrationOLD
protected void manageSapIntegrationOLD(Notification notification, Long notificationId, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
manageSapCreation
protected void manageSapCreation(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
manageSapModification
protected void manageSapModification(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateStatusInvioSap
protected void updateStatusInvioSap(Notification notification, Long notificationId, boolean success, String error, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateSapCode
protected void updateSapCode(Long notificationId, String sapCode, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setMode
-
setDisableGAE
public void setDisableGAE(boolean disableGAE) -
setDisableSAP
public void setDisableSAP(boolean disableSAP) -
setDisableNotificationCheck
public void setDisableNotificationCheck(boolean disableNotificationCheck) -
setNotification
-
getNotificationId
-
getNotificationCode
-
getStatusInvioSap
-
getEsitoInvioSap
-