public class PopulateNotificationContacts
extends java.lang.Object
implements java.io.Serializable
Prior to population this class first attempts to undo the results of any previous population.
| Modifier and Type | Field and Description |
|---|---|
protected JDBCConnectionInfo |
ivCnInfo
The current JDBC connection information object.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
PopulateNotificationContacts()
Constructs a new class instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doSalesRep(User user,
java.util.ArrayList<NotificationPref> srepprefs)
Processes a sales rep user.
|
protected boolean |
doShopper(User user,
java.util.ArrayList<NotificationPref> userprefs)
Processes a shopping user.
|
static void |
main(java.lang.String[] args)
The main entry point for when the class is started from a command line.
|
protected boolean |
populate()
Performs population processing.
|
protected boolean |
undo()
Attempts to undo the results of a previous run of this class.
|
private static final long serialVersionUID
protected JDBCConnectionInfo ivCnInfo
public PopulateNotificationContacts()
protected boolean populate()
true if successful, otherwise false.protected boolean doShopper(User user, java.util.ArrayList<NotificationPref> userprefs) throws java.lang.Exception
user - (User) The user to process.userprefs - (ArrayList) The notification preferences to process.true if successful, otherwise false.java.lang.Exception - - if an error occurs during processing.protected boolean doSalesRep(User user, java.util.ArrayList<NotificationPref> srepprefs) throws java.lang.Exception
user - (User) The user to process.srepprefs - (ArrayList) The notification preferences to process.true if successful, otherwise false.java.lang.Exception - - if an error occurs during processing.protected boolean undo()
throws java.lang.Exception
true if successful, otherwise false.java.lang.Exception - - if an error occurs during processing.public static void main(java.lang.String[] args)
args - (String[]) A string array of startup parameters.