public class RenameUser extends Tool
displayHelp()
message for restrictions.
Usage: renameUser -user username [options] oldUsername newUsername"); renameUser -user username [options] -file filename");The csv file has a simple comma separated list, with a pair of usernames on each line. Comments and blank lines may also be included. For example:
# List of usernames to change # oldUsername,newUsername johnp,ceo # President and CEO johnn,cto # CTO and Chairman
Modifier and Type | Class and Description |
---|---|
class |
RenameUser.RenameUserToolContext |
class |
RenameUser.User |
Modifier and Type | Field and Description |
---|---|
protected RenameUser.RenameUserToolContext |
context
User Rename Tool Context
|
Constructor and Description |
---|
RenameUser() |
Modifier and Type | Method and Description |
---|---|
protected void |
displayHelp()
Display Tool Help
|
protected int |
execute()
Perform Tool Behaviour
|
protected String |
getToolName()
Get the tool name
|
static void |
main(String[] args)
Entry Point
|
protected org.alfresco.tools.ToolContext |
processArgs(String[] args)
Process Tool Arguments
|
void |
setLogin(boolean login) |
exit, getApplicationContext, getServiceRegistry, handleError, logError, logInfo, logVerbose, start
protected RenameUser.RenameUserToolContext context
public void setLogin(boolean login)
public static void main(String[] args)
args
- protected org.alfresco.tools.ToolContext processArgs(String[] args) throws org.alfresco.tools.ToolArgumentException
Tool
processArgs
in class Tool
args
- the argumentsorg.alfresco.tools.ToolArgumentException
protected void displayHelp()
Tool
displayHelp
in class Tool
protected String getToolName()
Tool
getToolName
in class Tool
protected int execute() throws ToolException
Tool
execute
in class Tool
ToolException
Copyright © 2005–2017 Alfresco Software. All rights reserved.