Class DATCalculateNotificationStatus
java.lang.Object
overit.geocall.da.DATask
overit.geocallapp.wfm.notifications.notification.dat.DATCalculateNotificationStatus
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected booleanprotected DBViewprotected Longprotected Longprotected Longprotected Longstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.static final LongSetstatic final LongSetstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean_isEventValid(Long notificationEventID) static boolean_isStatusValid(Long notificationStatusID) protected voidbody()Abstract method, that must be implemented, that represent the start point of the task.protected voidprotected voidvoidexecute(PooledConnection conn) protected Parametersprotected Longprotected Parameterprotected Booleanprotected HashGetterloadNotificationHeader(HashGetter notificationHeader) protected voidprotected voidprotected HashGetterprotected HashGetterprotected voidprotected voidsetParams(Long notificationStatusID, Long notificationTypeID, Long notificationUserID, Long notificationEventID) voidsetParams(HashGetter notificationHeader, Long notificationEventID, boolean loadNotification) voidsetParams(Notification notification, Long notificationEventID) 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
-
FACTORY_PATH
Deprecated.- See Also:
-
POOL
- See Also:
-
TASK_NAME
- See Also:
-
USER_TYPE_DBFIELD
- See Also:
-
AUTOMATON_LAUT_DBFIELD
- See Also:
-
AUTOMATON_ROWS_AUTOMATON_DBFIELD
- See Also:
-
PREVIOUS_STATUS_DBFIELD
- See Also:
-
EVENT_DBFIELD
- See Also:
-
NEXT_STATUS_DBFIELD
- See Also:
-
USER_TYPE_ID_DBFIELD
- See Also:
-
NOTIFICATION_ID_DBFIELD
- See Also:
-
NOTIFICATION_TYPE_DBFIELD
- See Also:
-
NOTIFICATION_STATE_DBFIELD
- See Also:
-
NOTIFICATION_USER_CREATOR_DBFIELD
- See Also:
-
NOTIFICATION_USER_DBFIELD
- See Also:
-
LS_NOTIFICATION_STATUSES
-
LS_NOTIFICATION_EVENTS
-
_notificationStatusID
-
_notificationTypeID
-
_notificationUserID
-
_notificationEventID
-
_automatonID
-
_nextStatuses
-
_isNewNotification
protected boolean _isNewNotification
-
-
Constructor Details
-
DATCalculateNotificationStatus
public DATCalculateNotificationStatus()
-
-
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
-
calculateAutomaton
-
getParameterFilter
-
getAutomatonParameters
-
calculateNextStatus
-
prepareParametersFilter
-
prepareStatusFilter
-
isNotificationCreator
-
getCurrentUserTypeID
-
preConditions
protected void preConditions() -
postConditions
protected void postConditions() -
setParams
public void setParams(Notification notification, Long notificationEventID) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setParams
public void setParams(HashGetter notificationHeader, Long notificationEventID, boolean loadNotification) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadNotificationHeader
protected HashGetter loadNotificationHeader(HashGetter notificationHeader) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setParams
-
setParams
-
_isStatusValid
-
_isEventValid
-
getAutomatonID
-
getNextStatuses
-
getNextStatusesIDs
-