public User createUser()

in src/main/java/org/apache/sling/jackrabbit/usermanager/CreateUser.java [53:80]


    public User createUser(Session jcrSession,
                            String name,
                            String password,
                            String passwordConfirm,
                            Map<String, ?> properties,
                            List<Modification> changes
                ) throws RepositoryException;

    /**
     * Create a new user for the repository. The name is calculated from the 
     * supplied properties (per SLING-10902).
     * 
     * @param jcrSession the JCR session of the user creating the user
     * @param password The password of the new user (required)
     * @param passwordConfirm The password of the new user again (required)
     * @param properties Extra properties to update on the user.  The entry values should be either a String or String[] (optional)
     * @param changes The list of changes for this operation (optional)
     * @return the user that was created
     * @throws RepositoryException if user can't be created
     */
    public default User createUser(Session jcrSession,
                            String password,
                            String passwordConfirm,
                            Map<String, ?> properties,
                            List<Modification> changes
                ) throws RepositoryException {
        return createUser(jcrSession, null, password, passwordConfirm, properties, changes);
    }