public class NotificationTask extends Object implements Runnable
| Constructor and Description | 
|---|
NotificationTask(NotificationManager notificationManager,
                UserManager userManager,
                long sendTime,
                Map<String,String> someParams,
                List<NotificationTask> siblings,
                String autoNotify,
                Executor executor)
Constructor, initializes some information 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Command[] | 
getCommands()
getCommands 
 | 
String | 
getEmail()
getEmail 
 | 
int | 
getNotifyId()
Returns the unique id used to insert the row in the database for this
 notification task. 
 | 
long | 
getSendTime()
getSendTime 
 | 
String | 
getTuiPin()
getTuiPin 
 | 
User | 
getUser()
getUser 
 | 
boolean | 
isStarted()
isStarted 
 | 
void | 
run()
run 
 | 
void | 
setAutoNotify(String autoNotify)
Sets the autoNotify info for the usersnotified table 
 | 
void | 
setCommands(Command[] commands)
This method will construct the command that will be issued to send the
 actual page. 
 | 
void | 
setNoticeId(int anId)
Sets the group id that will be inserted into the row in notifications
 table 
 | 
void | 
setUser(User aUser)
Sets the user that the page needs to be sent to. 
 | 
void | 
start()
start 
 | 
String | 
toString()
toString 
 | 
public NotificationTask(NotificationManager notificationManager, UserManager userManager, long sendTime, Map<String,String> someParams, List<NotificationTask> siblings, String autoNotify, Executor executor)
someParams - the parameters from
 NotifynotificationManager - a NotificationManager object.userManager - a UserManager object.sendTime - a long.siblings - a List object.autoNotify - a String object.public String toString()
toString
public long getSendTime()
getSendTime
public int getNotifyId()
public void setUser(User aUser)
aUser - the user infopublic void setAutoNotify(String autoNotify)
autoNotify - a String object.public void setNoticeId(int anId)
anId - the group id to set for the rowpublic void setCommands(Command[] commands)
commands - the commands to call at the console.public String getEmail() throws IOException
getEmail
String object.IOException - if any.public String getTuiPin() throws IOException
getTuiPin
String object.IOException - if any.public void start()
start
public boolean isStarted()
isStarted
Copyright © 2021. All rights reserved.