public class SubModUserEdit extends Module
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
_roles
All available roles.
|
Constructor and Description |
---|
SubModUserEdit(int projectId,
java.lang.String userId,
java.lang.String username,
java.lang.String password,
java.lang.String roles,
java.lang.String firstname,
java.lang.String lastname)
Modify a user in a project.
|
SubModUserEdit(java.lang.String[] args)
Constructor for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Performs the actions provieded my the implementing module.
|
protected Options |
getActionOptions(java.lang.String actionName)
Required for the command line help system.
|
static java.lang.String |
moduleDescription() |
protected void |
parseParams()
Method to handle parameter value parsing in subclasses.
|
boolean |
requiresConnection()
Tells the caller if this module requires connection to the repository.
|
getArgs, getCommandLine, getModuleName, getOptions, notifyListeners, notifyListeners, notifyListeners, notifyListeners, notifyListeners, parseArgs
public SubModUserEdit(java.lang.String[] args) throws java.lang.Exception
args
- (String[]) The current command line user input.java.lang.Exception
- Missing parameters or other parameter parsing exceptions.public SubModUserEdit(int projectId, java.lang.String userId, java.lang.String username, java.lang.String password, java.lang.String roles, java.lang.String firstname, java.lang.String lastname) throws java.lang.Exception
projectId
- (int) Project ID.userId
- (String) ID of the user that will be modifyed.username
- (String) New username.password
- (String) New password.roles
- (String) New roles (Comma seperated).firstname
- (String) New firstname.lastname
- (String) New lastname.java.lang.Exception
- Missing parameters or other parameter parsing exceptions.protected final void parseParams() throws java.lang.Exception
Module
parseParams
in class Module
java.lang.Exception
- Is thrown when command line values fail to pass the required validation.public final void execute() throws java.lang.Exception
Module
protected final Options getActionOptions(java.lang.String actionName) throws java.lang.Exception
Module
getActionOptions
in class Module
actionName
- (String) Name of the submodule called in the command line.java.lang.Exception
- Error retrieving the requestes informations.public static java.lang.String moduleDescription()
public boolean requiresConnection()
Module
requiresConnection
in class Module