Class 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
    • Method Detail

      • findById

        public com.atlassian.crowd.model.directory.DirectoryImpl findById​(long directoryId)
                                                                   throws com.atlassian.crowd.exception.DirectoryNotFoundException
        Specified by:
        findById in interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.atlassian.crowd.embedded.spi.DirectoryDao