com.atlassian.jira.util
Class JiraUserUtils

java.lang.Object
  extended bycom.atlassian.jira.util.JiraUserUtils

public class JiraUserUtils
extends Object


Constructor Summary
JiraUserUtils()
           
 
Method Summary
static User createJiraUser(String username, String password, String email, String fullname)
          Create a JIRA user.
static Collection getAdministrators()
          Returns a list of JIRA admin Users.
 
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 Collection getAdministrators()
Returns a list of JIRA admin Users.


createJiraUser

public static User createJiraUser(String username,
                                  String password,
                                  String email,
                                  String fullname)
                           throws DuplicateEntityException,
                                  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:
DuplicateEntityException - If the user already exists
ImmutableException


Copyright © 2002-2007 Atlassian. All Rights Reserved.