public class UpdateAdminContactsTask extends DBUTask
The updating performed is based on current site configuration values as compared to any admin contact information previously created.
The running of this task is included in the Flash startup processing but it is only run if the Notification Framework is installed and configured as being active. See ScheduledTaskManager.* properties.
Modifier and Type | Field and Description |
---|---|
private static java.lang.Thread |
cvThread
The thread running the update admin contacts task.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
UpdateAdminContactsTask()
Constructs a new instance of the update admin contacts task with a
null servlet or thread context. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
createCurrent()
Creates new admin contact information in the front-end db and the
Notification Framework based on the current configuration values.
|
protected boolean |
deleteExisting()
Deletes all existing admin contact information from the front-end db
and the Notification Framework.
|
static boolean |
isRunning()
Answers if the task is currently running.
|
void |
run()
Runs the update admin contacts task.
|
protected boolean |
updateDefault()
Updates the default user (*default) with notification preferences for
use in the admin test site messages function.
|
getContext, setContext
private static final long serialVersionUID
private static java.lang.Thread cvThread
public UpdateAdminContactsTask()
null
servlet or thread context.
A CONTEXT MUST BE SET BEFORE INVOKING ANY OTHER METHODS.
.public void run()
Runnable
interface.protected boolean createCurrent() throws java.lang.Exception
true
if the creates are successful,
otherwise false
.java.lang.Exception
- - if an error occurs during processing.protected boolean deleteExisting() throws java.lang.Exception
true
if the deletes are successful,
otherwise false
.java.lang.Exception
- - if an error occurs during processing.protected boolean updateDefault() throws java.lang.Exception
true
if the updates are successful,
otherwise false
.java.lang.Exception
- - if an error occurs during processing.public static boolean isRunning()
true
if the task is currently running,
otherwise false
.