com.atlassian.crowd.embedded.hibernate2
Interface InternalUserDao

All Superinterfaces:
com.atlassian.crowd.embedded.spi.UserDao
All Known Implementing Classes:
CachedCrowdUserDao, HibernateUserDao

public interface InternalUserDao
extends com.atlassian.crowd.embedded.spi.UserDao

Private-ish interface for methods that should only be called by other DAOs. If you are calling anything on this interface from outside this package, you are Doing It Wrong.


Method Summary
 java.util.Collection<com.atlassian.crowd.model.user.InternalUser> findByNames(long directoryId, java.util.Collection<java.lang.String> userNames)
          Find all users from the list of user names
 com.atlassian.crowd.model.user.InternalUser internalFindByName(long directoryId, java.lang.String userName)
          Find a persistent user object from a given directory and user name
 com.atlassian.crowd.model.user.InternalUser internalFindByUser(com.atlassian.crowd.model.user.User user)
          Find the persistent user object that corresponds to the provided user.
 void removeAllUsers(long directoryId)
          Remove all users from a particular directory (used when deleting an internal directory)
 
Methods inherited from interface com.atlassian.crowd.embedded.spi.UserDao
add, addAll, findByExternalId, findByName, findByNameWithAttributes, getCredential, getCredentialHistory, remove, removeAllUsers, removeAttribute, rename, search, storeAttributes, update, updateCredential
 

Method Detail

internalFindByName

com.atlassian.crowd.model.user.InternalUser internalFindByName(long directoryId,
                                                               java.lang.String userName)
                                                               throws com.atlassian.crowd.exception.UserNotFoundException
Find a persistent user object from a given directory and user name

Throws:
com.atlassian.crowd.exception.UserNotFoundException

internalFindByUser

com.atlassian.crowd.model.user.InternalUser internalFindByUser(com.atlassian.crowd.model.user.User user)
                                                               throws com.atlassian.crowd.exception.UserNotFoundException
Find the persistent user object that corresponds to the provided user.

Throws:
com.atlassian.crowd.exception.UserNotFoundException

removeAllUsers

void removeAllUsers(long directoryId)
Remove all users from a particular directory (used when deleting an internal directory)


findByNames

java.util.Collection<com.atlassian.crowd.model.user.InternalUser> findByNames(long directoryId,
                                                                              java.util.Collection<java.lang.String> userNames)
Find all users from the list of user names

Parameters:
directoryId -
userNames -
Returns:


Copyright © 2003-2013 Atlassian. All Rights Reserved.