public class AddUsers extends DBaseCmdLine
password, type, url, user
exitStatus, OPTION_DEBUG, OPTION_HELP, OPTION_HOME, OPTION_REMOTE_URL, PROPERTY_REMOTE_URL
Constructor and Description |
---|
AddUsers() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraOptions(org.apache.commons.cli.Options options)
add extra command line options
|
protected Login |
addLogin(DBObject contact,
MutableDataSource ds,
ContactGroup grp) |
protected void |
addMagicNumber(Login login,
java.lang.String cmd,
MutableDataSource ds) |
void |
handleArgs(java.util.Properties p)
Do not use this method
|
static void |
main(java.lang.String[] argv)
The main for the program
|
void |
process()
process ( extend this method)
|
handleCommandLine, init
abort, abortShowHelp, execute, getExtraPars, setDefaults, setExitFlg
public void handleArgs(java.util.Properties p) throws java.lang.Exception
handleArgs
in class AppCmdLine
p
- the propertiesjava.lang.Exception
- Exception A serious problemprotected void addExtraOptions(org.apache.commons.cli.Options options)
addExtraOptions
in class DBaseCmdLine
options
- the optionspublic void process()
process
in class AppCmdLine
protected Login addLogin(DBObject contact, MutableDataSource ds, ContactGroup grp) throws java.lang.Exception
contact
- the contactds
- The datasourcegrp
- the groupjava.lang.Exception
- a serious problem.protected void addMagicNumber(Login login, java.lang.String cmd, MutableDataSource ds) throws java.lang.Exception
login
- the logincmd
- the commandds
- The datasourcejava.lang.Exception
- a serious problem.public static void main(java.lang.String[] argv)
argv
- The command line argumentsstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.