Class DATSendMessage
java.lang.Object
overit.geocall.da.DATask
overit.geocall.basic.bl.message.task.DATSendMessage
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap<Long,Long> containing a list of users to send a message to.
Each entry in the map has theuser IDas its key and theID of the messageto update the date of if it is already present and not read as its value.
If the value of the map isnull, the message to be managed is not yet present in the database as unread and must therefore be inserted.protected StringFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody()Abstract method, that must be implemented, that represent the start point of the task.getSystemUserMap(PooledConnection pc, String message) protected ArrayListDeprecated, for removal: This API element is subject to removal in a future version.voidsend(PooledConnection pc, ArrayList alUserId, String text) voidvoidvoidsetDatiInvio(Long lUtente, String text) voidsetDatiInvio(ArrayList<?> alListaUtenti, String text) Deprecated, for removal: This API element is subject to removal in a future version.usesetSendingData(Map, String)instead.voidsetDatiInvioSistema(String text) voidsetSendingData(Map<Long, Long> recipientsMap, String text) 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
-
_alUserId
Map<Long,Long> containing a list of users to send a message to.
Each entry in the map has theuser IDas its key and theID of the messageto update the date of if it is already present and not read as its value.
If the value of the map isnull, the message to be managed is not yet present in the database as unread and must therefore be inserted. -
_text
-
-
Constructor Details
-
DATSendMessage
public DATSendMessage()
-
-
Method Details
-
setSendingData
-
setDatiInvio
@Deprecated(forRemoval=true, since="12.2") public void setDatiInvio(ArrayList<?> alListaUtenti, String text) Deprecated, for removal: This API element is subject to removal in a future version.usesetSendingData(Map, String)instead.Set the recipient list and message using the provided arguments. -
setDatiInvio
-
setDatiInvioSistema
-
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
-
send
public void send(PooledConnection pc, ArrayList alUserId, String text) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
send
public void send(PooledConnection pc, Map<Long, Long> alUserId, String text) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
send
public void send(PooledConnection pc, Map<Long, Long> alUserId, String text, boolean isError) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
getUserListSistema
@Deprecated(forRemoval=true, since="12.2") protected ArrayList getUserListSistema(PooledConnection pc) throws DAException Deprecated, for removal: This API element is subject to removal in a future version.usegetSystemUserMap(PooledConnection, String)instead.- Parameters:
pc- ThePooledConnectionused to connect to the database; it can't be null- Returns:
- an
ArrayList<Long> about thesystem userslist, using the provided arguments. - Throws:
DAException- in case of database network exception
-
getSystemUserMap
- Throws:
DAException
-
getSystemUserMap(PooledConnection, String)instead.