public class SyncUsersTask extends DBUTask
| Modifier and Type | Class and Description |
|---|---|
static class |
SyncUsersTask.SyncLogWriter
An inner class for persisting events to a log file and for sending alert
email messages when a configured severity level occurs.
|
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Thread |
cvThread
The thread running the user synchronization task.
|
private IUserMaintenance |
ivUserMaint
A reference to the User Maintenance Interface object.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
SyncUsersTask()
Constructs a new instance of the user synchronization task with a
null servlet or thread context. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isRunning()
Answers if the task is currently running.
|
void |
miniSync(User flashUser)
Performs mini-sync for the given Flash user if mini-sync is configured
and user has not already been mini-synced.
|
void |
run()
Runs the user synchronization task.
|
protected int[] |
synchronize(User flashUser,
boolean miniSync)
Updates the given Flash user with information from the backend ERP
system.
|
getContext, setContextprivate static final long serialVersionUID
private static java.lang.Thread cvThread
private IUserMaintenance ivUserMaint
public SyncUsersTask()
null servlet or thread context.
A CONTEXT MUST BE SET BEFORE INVOKING ANY OTHER METHODS.
.public void run()
Runnable
interface.public static boolean isRunning()
true if the task is currently running,
otherwise false.public void miniSync(User flashUser)
flashUser - (User) The Flash user to process.protected int[] synchronize(User flashUser, boolean miniSync)
flashUser - (User) The Flash user to update.miniSync - (boolean) true if invoking in mini-sync mode,
otherwise false.