com.atlassian.jira.util
Class JiraUserUtils

java.lang.Object
  extended by com.atlassian.jira.util.JiraUserUtils

public class JiraUserUtils
extends java.lang.Object


Constructor Summary
JiraUserUtils()
           
 
Method Summary
static com.opensymphony.user.User createJiraUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullname)
          Create a JIRA user.
static java.util.Collection getAdministrators()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraUserUtils

public JiraUserUtils()
Method Detail

getAdministrators

public static java.util.Collection getAdministrators()

createJiraUser

public static com.opensymphony.user.User createJiraUser(java.lang.String username,
                                                        java.lang.String password,
                                                        java.lang.String email,
                                                        java.lang.String fullname)
                                                 throws com.opensymphony.user.DuplicateEntityException,
                                                        com.opensymphony.user.ImmutableException
Create a JIRA user. This user will be added to all groups with the USE permission.

If password is specified as null, a new password will be generated for the user.

NOTE: This method does not fire any user events, you will need to fire them yourself if you want to.

Throws:
com.opensymphony.user.DuplicateEntityException - If the user already exists
com.opensymphony.user.ImmutableException


Copyright © 2002-2006 Atlassian. All Rights Reserved.