Class AddUser
java.lang.Object
dev.getelements.elements.setup.commands.AbstractUserSetupCommand
dev.getelements.elements.setup.commands.AddUser
- All Implemented Interfaces:
SetupCommand
,AutoCloseable
Created by patricktwohig on 4/8/15.
-
Field Summary
Fields inherited from interface dev.getelements.elements.setup.SetupCommand
STDERR, STDIN, STDOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setUserDao
(UserDao userDao) protected void
writeUserToDatabase
(joptsimple.OptionSet optionSet) Performs the actual changes and commits them to the database.Methods inherited from class dev.getelements.elements.setup.commands.AbstractUserSetupCommand
getEmailOptionSpec, getLevelOptionSpec, getOptionParser, getPassword, getPasswordOptionSpec, getStrictOptionSpec, getUser, getUsernameOptionSpec, hasPassword, readOptions, run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.setup.SetupCommand
close
-
Constructor Details
-
AddUser
public AddUser()
-
-
Method Details
-
writeUserToDatabase
protected void writeUserToDatabase(joptsimple.OptionSet optionSet) Description copied from class:AbstractUserSetupCommand
Performs the actual changes and commits them to the database.- Specified by:
writeUserToDatabase
in classAbstractUserSetupCommand
- Parameters:
optionSet
-
-
getUserDao
-
setUserDao
-