Class HibernateDirectoryDao
- java.lang.Object
-
- com.atlassian.confluence.impl.user.crowd.hibernate.HibernateDirectoryDao
-
- All Implemented Interfaces:
com.atlassian.crowd.embedded.spi.DirectoryDao
public final class HibernateDirectoryDao extends Object implements com.atlassian.crowd.embedded.spi.DirectoryDao
Hibernate 5/Spring implementation of directory persistence- Since:
- 7.20.0
-
-
Constructor Summary
Constructors Constructor Description HibernateDirectoryDao(org.hibernate.SessionFactory sessionFactory, InternalUserDao userDao, InternalGroupDao groupDao, InternalMembershipDao internalMembershipDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.crowd.embedded.api.Directory
add(com.atlassian.crowd.embedded.api.Directory directory)
List<com.atlassian.crowd.embedded.api.Directory>
findAll()
com.atlassian.crowd.model.directory.DirectoryImpl
findById(long directoryId)
com.atlassian.crowd.embedded.api.Directory
findByName(String name)
void
remove(com.atlassian.crowd.embedded.api.Directory directory)
List<com.atlassian.crowd.embedded.api.Directory>
search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query)
com.atlassian.crowd.embedded.api.Directory
update(com.atlassian.crowd.embedded.api.Directory directory)
-
-
-
Constructor Detail
-
HibernateDirectoryDao
public HibernateDirectoryDao(org.hibernate.SessionFactory sessionFactory, InternalUserDao userDao, InternalGroupDao groupDao, InternalMembershipDao internalMembershipDao)
-
-
Method Detail
-
findById
public com.atlassian.crowd.model.directory.DirectoryImpl findById(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
findById
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
findByName
public com.atlassian.crowd.embedded.api.Directory findByName(String name) throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
findByName
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
findAll
public List<com.atlassian.crowd.embedded.api.Directory> findAll()
- Specified by:
findAll
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
-
add
public com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory)
- Specified by:
add
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
-
update
public com.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
update
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
remove
public void remove(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
remove
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
search
public List<com.atlassian.crowd.embedded.api.Directory> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query)
- Specified by:
search
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
-
-