Class RenameUser


  • public class RenameUser
    extends Tool
    Rename user tool. This tool provides minimal support for renaming users. See 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
     
    Author:
    Alan Davis
    • Constructor Detail

      • RenameUser

        public RenameUser()
    • Method Detail

      • setLogin

        public void setLogin​(boolean login)
      • main

        public static void main​(java.lang.String[] args)
        Entry Point
        Parameters:
        args -
      • processArgs

        protected org.alfresco.tools.ToolContext processArgs​(java.lang.String[] args)
                                                      throws org.alfresco.tools.ToolArgumentException
        Description copied from class: Tool
        Process Tool Arguments
        Overrides:
        processArgs in class Tool
        Parameters:
        args - the arguments
        Returns:
        the tool context
        Throws:
        org.alfresco.tools.ToolArgumentException
      • displayHelp

        protected void displayHelp()
        Description copied from class: Tool
        Display Tool Help
        Overrides:
        displayHelp in class Tool
      • getToolName

        protected java.lang.String getToolName()
        Description copied from class: Tool
        Get the tool name
        Specified by:
        getToolName in class Tool
        Returns:
        the tool name