Class ResetUser
- java.lang.Object
-
- All Implemented Interfaces:
Action
@Command(name="reset", description="Reset user\'s password or roles") public class ResetUser extends PasswordActionReset a user's password or roles, example: ./artemis user reset --user guest --role admin --password ***
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.activemq.artemis.cli.commands.AbstractAction
AbstractAction.ManagementCallback<T>
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
acceptor, brokerURL, clientID, password, protocol, user
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
context, DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description ResetUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(ActionContext context)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.user.PasswordAction
setUserCommandPassword
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.user.UserAction
setRole, setUserCommandUser
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.AbstractAction
performCoreManagement
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
createConnectionFactory, createConnectionFactory, createCoreConnectionFactory, createCoreConnectionFactory, getAcceptor, getBrokerURL, getClientID, getPassword, getProtocol, getUser, setAcceptor, setBrokerURL, setClientID, setPassword, setProtocol, setUser
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInput
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
checkOptions, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
Method Detail
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classConnectionAbstract- Throws:
Exception
-
-