com.atlassian.crowd.integration.jive
Class CrowdUserManager

java.lang.Object
  extended by com.atlassian.crowd.integration.jive.CrowdUserManager

public class CrowdUserManager
extends Object

Crowd User connector copied from Jive LDAP connector.

Author:
Justen stepka, Matt Tucker

Field Summary
static Cache userEmailCache
           
 
Constructor Summary
CrowdUserManager()
           
 
Method Summary
 SOAPAttribute buildAttribute(String key, String value)
           
 User createUser(String username, String password, String email)
           
 User createUser(String username, String password, String name, String email, boolean nameVisible, boolean emailVisible, Map properties)
           
 void deleteUser(User user)
           
 User getUser(long userID)
           
 User getUser(String username)
           
 int getUserCount()
           
 User getUserFromEmailAddress(String email)
           
 long getUserID(String username)
           
 boolean isCreateUserSupported()
          Creation of users in Crowd implementation is not supported
 boolean isDeleteUserSupported()
          true, however Crowd will remain unaffected
 boolean isGetUserCountSupported()
          supported, returns true
 boolean isGetUserFromEmailAddressSupported()
          supported, returns true
 boolean isReadOnly()
          returns false
 boolean isUserListSupported()
          supported, returns true
 Iterator users()
           
 Iterator users(int startIndex, int numResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userEmailCache

public static Cache userEmailCache
Constructor Detail

CrowdUserManager

public CrowdUserManager()
Method Detail

createUser

public User createUser(String username,
                       String password,
                       String email)
                throws UserAlreadyExistsException
Throws:
UserAlreadyExistsException

createUser

public User createUser(String username,
                       String password,
                       String name,
                       String email,
                       boolean nameVisible,
                       boolean emailVisible,
                       Map properties)
                throws UserAlreadyExistsException
Throws:
UserAlreadyExistsException

getUser

public User getUser(long userID)
             throws UserNotFoundException
Throws:
UserNotFoundException

getUser

public User getUser(String username)
             throws UserNotFoundException
Throws:
UserNotFoundException

getUserID

public long getUserID(String username)
               throws UserNotFoundException
Throws:
UserNotFoundException

deleteUser

public void deleteUser(User user)
                throws UnauthorizedException
Throws:
UnauthorizedException

getUserCount

public int getUserCount()

users

public Iterator users()

users

public Iterator users(int startIndex,
                      int numResults)

buildAttribute

public SOAPAttribute buildAttribute(String key,
                                    String value)

getUserFromEmailAddress

public User getUserFromEmailAddress(String email)

isCreateUserSupported

public boolean isCreateUserSupported()
Creation of users in Crowd implementation is not supported

Returns:
false

isDeleteUserSupported

public boolean isDeleteUserSupported()
true, however Crowd will remain unaffected

Returns:
true

isGetUserCountSupported

public boolean isGetUserCountSupported()
supported, returns true

Returns:
true

isUserListSupported

public boolean isUserListSupported()
supported, returns true

Returns:
true

isGetUserFromEmailAddressSupported

public boolean isGetUserFromEmailAddressSupported()
supported, returns true

Returns:
returns true;

isReadOnly

public boolean isReadOnly()
returns false

Returns:
false


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.