Class HibernateDirectorySynchronisationStatusDao

  • All Implemented Interfaces:
    com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao

    public final class HibernateDirectorySynchronisationStatusDao
    extends Object
    implements com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
    Since:
    7.11.0
    • Constructor Detail

      • HibernateDirectorySynchronisationStatusDao

        public HibernateDirectorySynchronisationStatusDao​(org.hibernate.SessionFactory sessionFactory,
                                                          com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
    • Method Detail

      • findActiveForDirectory

        public Optional<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus> findActiveForDirectory​(long directoryId)
        Specified by:
        findActiveForDirectory in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
      • findLastForDirectory

        public Optional<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus> findLastForDirectory​(long directoryId)
        Specified by:
        findLastForDirectory in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
      • add

        public com.atlassian.crowd.model.directory.DirectorySynchronisationStatus add​(com.atlassian.crowd.model.directory.DirectorySynchronisationStatus status)
        Specified by:
        add in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
      • update

        public com.atlassian.crowd.model.directory.DirectorySynchronisationStatus update​(com.atlassian.crowd.model.directory.DirectorySynchronisationStatus status)
                                                                                  throws com.atlassian.crowd.exception.ObjectNotFoundException
        Specified by:
        update in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
        Throws:
        com.atlassian.crowd.exception.ObjectNotFoundException
      • removeStatusesForDirectory

        public long removeStatusesForDirectory​(Long directoryId)
        Specified by:
        removeStatusesForDirectory in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
      • removeAll

        public long removeAll()
        Specified by:
        removeAll in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
      • removeAllExcept

        public long removeAllExcept​(long directoryId,
                                    int statusId)
        Specified by:
        removeAllExcept in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
      • findActiveSyncsWhereNodeIdNotIn

        public Collection<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus> findActiveSyncsWhereNodeIdNotIn​(Set<String> nodesIds)
        Specified by:
        findActiveSyncsWhereNodeIdNotIn in interface com.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao