Class UpdateUser
java.lang.Object
dev.getelements.elements.setup.commands.AbstractUserSetupCommand
dev.getelements.elements.setup.commands.UpdateUser
- All Implemented Interfaces:
SetupCommand,AutoCloseable
Created by patricktwohig on 5/8/15.
-
Field Summary
Fields inherited from interface dev.getelements.elements.setup.SetupCommand
STDERR, STDIN, STDOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjoptsimple.OptionSpec<String> protected UserreadOptions(joptsimple.OptionSet optionSet) Reads theOptionSetand generates aUserinstance from the options supplied to this command.voidsetUserDao(UserDao userDao) protected voidwriteUserToDatabase(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, runMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.setup.SetupCommand
close
-
Constructor Details
-
UpdateUser
public UpdateUser()
-
-
Method Details
-
readOptions
Description copied from class:AbstractUserSetupCommandReads theOptionSetand generates aUserinstance from the options supplied to this command. The returnedUserwill be made available using subsequent calls usingAbstractUserSetupCommand.getUser().- Overrides:
readOptionsin classAbstractUserSetupCommand- Parameters:
optionSet- theOptionSetmade from the arguments passed toAbstractUserSetupCommand.run(String[]).
-
writeUserToDatabase
protected void writeUserToDatabase(joptsimple.OptionSet optionSet) Description copied from class:AbstractUserSetupCommandPerforms the actual changes and commits them to the database.- Specified by:
writeUserToDatabasein classAbstractUserSetupCommand- Parameters:
optionSet-
-
getUserDao
-
setUserDao
-
getUserIdOptionSpec
-