Interface InternalUserDao<T extends com.atlassian.crowd.model.user.User>
-
- All Superinterfaces:
com.atlassian.crowd.embedded.spi.UserDao
- All Known Implementing Classes:
CachedCrowdUserDao
,HibernateUserDao
public interface InternalUserDao<T extends com.atlassian.crowd.model.user.User> 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.- Since:
- 7.20.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
add(com.atlassian.crowd.model.user.User user, com.atlassian.crowd.embedded.api.PasswordCredential credential)
Collection<com.atlassian.crowd.model.user.InternalUser>
findByNames(long directoryId, Collection<String> userNames)
Find all users from the list of usernamescom.atlassian.crowd.model.user.InternalUser
internalFindByName(long directoryId, String userName)
Find a persistent user object from a given directory and usernamecom.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
addAll, findByExternalId, findByExternalIds, findByName, findByNameWithAttributes, findDirectoryIdsContainingUserName, getAllExternalIds, getCredential, getCredentialHistory, getUserCount, remove, removeAllUsers, removeAttribute, rename, search, setAttributeForAllInDirectory, storeAttributes, update, updateCredential
-
-
-
-
Method Detail
-
internalFindByName
com.atlassian.crowd.model.user.InternalUser internalFindByName(long directoryId, String userName) throws com.atlassian.crowd.exception.UserNotFoundException
Find a persistent user object from a given directory and username- 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
Collection<com.atlassian.crowd.model.user.InternalUser> findByNames(long directoryId, Collection<String> userNames)
Find all users from the list of usernames- Parameters:
directoryId
-userNames
-- Returns:
-
add
T add(com.atlassian.crowd.model.user.User user, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.UserAlreadyExistsException, IllegalArgumentException, com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
add
in interfacecom.atlassian.crowd.embedded.spi.UserDao
- Throws:
com.atlassian.crowd.exception.UserAlreadyExistsException
IllegalArgumentException
com.atlassian.crowd.exception.DirectoryNotFoundException
-
-