HibernateUserDao instead@Deprecated public final class HibernateUserDao extends Object implements InternalUserDao<com.atlassian.crowd.model.user.InternalUser>
UserDao which uses Hibernate 5.| Constructor and Description | 
|---|
| HibernateUserDao(org.hibernate.SessionFactory sessionFactory,
                Supplier<com.atlassian.crowd.embedded.spi.DirectoryDao> directoryDao,
                InternalMembershipDao membershipDao,
                ConfluenceUserDao confluenceUserDao,
                com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor<net.sf.hibernate.Session> batchProcessor,
                com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder,
                BatchOperationManager batchOperationManager)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| com.atlassian.crowd.model.user.InternalUser | add(com.atlassian.crowd.model.user.User user,
   com.atlassian.crowd.embedded.api.PasswordCredential credential)Deprecated.  | 
| com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.user.User> | addAll(Set<com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes> users)Deprecated.  | 
| com.atlassian.crowd.model.user.TimestampedUser | findByExternalId(long directoryId,
                String externalId)Deprecated.  | 
| Map<String,String> | findByExternalIds(long directoryId,
                 Set<String> externalIds)Deprecated.  | 
| com.atlassian.crowd.model.user.TimestampedUser | findByName(long directoryId,
          String userName)Deprecated.  | 
| Collection<com.atlassian.crowd.model.user.InternalUser> | findByNames(long directoryID,
           Collection<String> usernames)Deprecated.  Find all users from the list of user names | 
| com.atlassian.crowd.model.user.UserWithAttributes | findByNameWithAttributes(long directoryId,
                        String userName)Deprecated.  | 
| Set<Long> | findDirectoryIdsContainingUserName(String username)Deprecated.  | 
| Set<String> | getAllExternalIds(long directoryId)Deprecated.  | 
| com.atlassian.crowd.embedded.api.PasswordCredential | getCredential(long directoryId,
             String userName)Deprecated.  | 
| List<com.atlassian.crowd.embedded.api.PasswordCredential> | getCredentialHistory(long directoryId,
                    String userName)Deprecated.  | 
| long | getUserCount(long directoryId)Deprecated.  | 
| com.atlassian.crowd.model.user.InternalUser | internalFindByName(long directoryId,
                  String userName)Deprecated.  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)Deprecated.  Find the persistent user object that corresponds to the provided user. | 
| void | remove(com.atlassian.crowd.model.user.User user)Deprecated.  | 
| void | removeAllUsers(long directoryId)Deprecated.  Remove all users from a particular directory (used when deleting an internal directory) | 
| com.atlassian.crowd.util.BatchResult<String> | removeAllUsers(long directoryId,
              Set<String> userNames)Deprecated.  | 
| void | removeAttribute(com.atlassian.crowd.model.user.User user,
               String attributeName)Deprecated.  | 
| com.atlassian.crowd.model.user.User | rename(com.atlassian.crowd.model.user.User user,
      String newName)Deprecated.  | 
| <T> List<T> | search(long directoryId,
      com.atlassian.crowd.search.query.entity.EntityQuery<T> query)Deprecated.  | 
| void | setAttributeForAllInDirectory(long directoryId,
                             String attrName,
                             String attrValue)Deprecated.  | 
| void | storeAttributes(com.atlassian.crowd.model.user.User user,
               Map<String,Set<String>> attributes,
               boolean updateTimestamp)Deprecated.  | 
| com.atlassian.crowd.model.user.User | update(com.atlassian.crowd.model.user.User user)Deprecated.  | 
| void | updateCredential(com.atlassian.crowd.model.user.User user,
                com.atlassian.crowd.embedded.api.PasswordCredential credential,
                int maxCredentialHistory)Deprecated.  | 
public HibernateUserDao(org.hibernate.SessionFactory sessionFactory,
                        Supplier<com.atlassian.crowd.embedded.spi.DirectoryDao> directoryDao,
                        InternalMembershipDao membershipDao,
                        ConfluenceUserDao confluenceUserDao,
                        com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor<net.sf.hibernate.Session> batchProcessor,
                        com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder,
                        BatchOperationManager batchOperationManager)
public void remove(com.atlassian.crowd.model.user.User user)
            throws com.atlassian.crowd.exception.UserNotFoundException
remove in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic void removeAttribute(com.atlassian.crowd.model.user.User user,
                            String attributeName)
                     throws com.atlassian.crowd.exception.UserNotFoundException
removeAttribute in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.model.user.User rename(com.atlassian.crowd.model.user.User user,
                                                  String newName)
                                           throws com.atlassian.crowd.exception.UserNotFoundException,
                                                  com.atlassian.crowd.exception.UserAlreadyExistsException
rename in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.UserAlreadyExistsExceptionpublic com.atlassian.crowd.model.user.InternalUser internalFindByUser(com.atlassian.crowd.model.user.User user)
                                                               throws com.atlassian.crowd.exception.UserNotFoundException
InternalUserDaointernalFindByUser in interface InternalUserDao<com.atlassian.crowd.model.user.InternalUser>com.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<String> removeAllUsers(long directoryId, Set<String> userNames)
removeAllUsers in interface com.atlassian.crowd.embedded.spi.UserDaopublic void removeAllUsers(long directoryId)
InternalUserDaoremoveAllUsers in interface InternalUserDao<com.atlassian.crowd.model.user.InternalUser>public Collection<com.atlassian.crowd.model.user.InternalUser> findByNames(long directoryID, Collection<String> usernames)
InternalUserDaofindByNames in interface InternalUserDao<com.atlassian.crowd.model.user.InternalUser>public void updateCredential(com.atlassian.crowd.model.user.User user,
                             com.atlassian.crowd.embedded.api.PasswordCredential credential,
                             int maxCredentialHistory)
                      throws com.atlassian.crowd.exception.UserNotFoundException
updateCredential in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
search in interface com.atlassian.crowd.embedded.spi.UserDaopublic com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.user.User> addAll(Set<com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes> users)
addAll in interface com.atlassian.crowd.embedded.spi.UserDaopublic com.atlassian.crowd.model.user.User update(com.atlassian.crowd.model.user.User user)
                                           throws com.atlassian.crowd.exception.UserNotFoundException
update in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic void storeAttributes(com.atlassian.crowd.model.user.User user,
                            Map<String,Set<String>> attributes,
                            boolean updateTimestamp)
                     throws com.atlassian.crowd.exception.UserNotFoundException
storeAttributes in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.model.user.InternalUser 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
add in interface InternalUserDao<com.atlassian.crowd.model.user.InternalUser>add in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserAlreadyExistsExceptionIllegalArgumentExceptioncom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic List<com.atlassian.crowd.embedded.api.PasswordCredential> getCredentialHistory(long directoryId, String userName) throws com.atlassian.crowd.exception.UserNotFoundException
getCredentialHistory in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.embedded.api.PasswordCredential getCredential(long directoryId,
                                                                         String userName)
                                                                  throws com.atlassian.crowd.exception.UserNotFoundException
getCredential in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.model.user.UserWithAttributes findByNameWithAttributes(long directoryId,
                                                                                  String userName)
                                                                           throws com.atlassian.crowd.exception.UserNotFoundException
findByNameWithAttributes in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.model.user.TimestampedUser findByName(long directoryId,
                                                                 String userName)
                                                          throws com.atlassian.crowd.exception.UserNotFoundException
findByName in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.model.user.TimestampedUser findByExternalId(long directoryId,
                                                                       String externalId)
                                                                throws com.atlassian.crowd.exception.UserNotFoundException
findByExternalId in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.model.user.InternalUser internalFindByName(long directoryId,
                                                                      String userName)
                                                               throws com.atlassian.crowd.exception.UserNotFoundException
InternalUserDaointernalFindByName in interface InternalUserDao<com.atlassian.crowd.model.user.InternalUser>com.atlassian.crowd.exception.UserNotFoundException - if the user is not foundpublic void setAttributeForAllInDirectory(long directoryId,
                                          String attrName,
                                          String attrValue)
setAttributeForAllInDirectory in interface com.atlassian.crowd.embedded.spi.UserDaopublic Set<String> getAllExternalIds(long directoryId)
getAllExternalIds in interface com.atlassian.crowd.embedded.spi.UserDaopublic long getUserCount(long directoryId)
getUserCount in interface com.atlassian.crowd.embedded.spi.UserDaopublic Set<Long> findDirectoryIdsContainingUserName(String username)
findDirectoryIdsContainingUserName in interface com.atlassian.crowd.embedded.spi.UserDaoCopyright © 2003–2022 Atlassian. All rights reserved.