public CmsUser createUser(
        String name,
        String password,
        String description,
        String firstname,
        String lastname,
        String email)
    throws Exception {

        if (existsUser(name)) {
            m_shell.getOut().println(getMessages().key(Messages.GUI_SHELL_USER_ALREADY_EXISTS_1, name));
            return null;
        }
        CmsUser user = m_cms.createUser(name, password, description, new Hashtable<String, Object>());
        user.setEmail(email);
        user.setFirstname(firstname);
        user.setLastname(lastname);
        m_cms.writeUser(user);
        return user;
    }
public CmsUser createUser ( String name , String password , String description , String firstname , String lastname , String email ) throws Exception { if ( existsUser ( name ) ) { m_shell . getOut ( ) . println ( getMessages ( ) . key ( Messages . GUI_SHELL_USER_ALREADY_EXISTS_1 , name ) ) ; return null ; } CmsUser user = m_cms . createUser ( name , password , description , new Hashtable < String , Object > ( ) ) ; user . setEmail ( email ) ; user . setFirstname ( firstname ) ; user . setLastname ( lastname ) ; m_cms . writeUser ( user ) ; return user ; }
Creates a user with some additional information.<p>

@param name the name of the new user
@param password the password
@param description the description
@param firstname the users first name
@param lastname the users he last name
@param email the users email address
@return the created user

@throws Exception if something goes wrong

@see CmsObject#createUser(String, String, String, java.util.Map)