Class HibernateDirectorySynchronisationStatusDao
- java.lang.Object
-
- com.atlassian.confluence.impl.user.crowd.hibernate.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 Summary
Constructors Constructor Description HibernateDirectorySynchronisationStatusDao(org.hibernate.SessionFactory sessionFactory, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.crowd.model.directory.DirectorySynchronisationStatus
add(com.atlassian.crowd.model.directory.DirectorySynchronisationStatus status)
Optional<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus>
findActiveForDirectory(long directoryId)
Collection<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus>
findActiveSyncsWhereNodeIdNotIn(Set<String> nodesIds)
Optional<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus>
findLastForDirectory(long directoryId)
long
removeAll()
long
removeAllExcept(long directoryId, int statusId)
long
removeStatusesForDirectory(Long directoryId)
com.atlassian.crowd.model.directory.DirectorySynchronisationStatus
update(com.atlassian.crowd.model.directory.DirectorySynchronisationStatus status)
-
-
-
Method Detail
-
findActiveForDirectory
public Optional<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus> findActiveForDirectory(long directoryId)
- Specified by:
findActiveForDirectory
in interfacecom.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
-
findLastForDirectory
public Optional<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus> findLastForDirectory(long directoryId)
- Specified by:
findLastForDirectory
in interfacecom.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 interfacecom.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 interfacecom.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
- Throws:
com.atlassian.crowd.exception.ObjectNotFoundException
-
removeStatusesForDirectory
public long removeStatusesForDirectory(Long directoryId)
- Specified by:
removeStatusesForDirectory
in interfacecom.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
-
removeAll
public long removeAll()
- Specified by:
removeAll
in interfacecom.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
-
removeAllExcept
public long removeAllExcept(long directoryId, int statusId)
- Specified by:
removeAllExcept
in interfacecom.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
-
findActiveSyncsWhereNodeIdNotIn
public Collection<com.atlassian.crowd.model.directory.DirectorySynchronisationStatus> findActiveSyncsWhereNodeIdNotIn(Set<String> nodesIds)
- Specified by:
findActiveSyncsWhereNodeIdNotIn
in interfacecom.atlassian.crowd.embedded.spi.DirectorySynchronisationStatusDao
-
-