@ExperimentalSpi
public interface DirectorySynchronisationStatusDao
Modifier and Type | Method and Description |
---|---|
DirectorySynchronisationStatus |
add(DirectorySynchronisationStatus status)
Saves a new synchronisation status
|
Optional<DirectorySynchronisationStatus> |
findActiveForDirectory(long directoryId) |
Collection<DirectorySynchronisationStatus> |
findActiveSyncsWhereNodeIdNotIn(Set<String> nodesIds) |
Optional<DirectorySynchronisationStatus> |
findLastForDirectory(long directoryId) |
long |
removeAll()
Removes all stored status information
|
long |
removeAllExcept(long directoryId,
int statusId)
Removes all stored status information for the directory except the indicated one
|
long |
removeStatusesForDirectory(Long directoryId)
Removes all stored status information for the directory with the specified id
|
DirectorySynchronisationStatus |
update(DirectorySynchronisationStatus status)
Updates an existing directory status
|
Optional<DirectorySynchronisationStatus> findActiveForDirectory(long directoryId)
Optional<DirectorySynchronisationStatus> findLastForDirectory(long directoryId)
DirectorySynchronisationStatus add(DirectorySynchronisationStatus status)
DirectorySynchronisationStatus update(DirectorySynchronisationStatus status) throws ObjectNotFoundException
ObjectNotFoundException
- if a status with the given id doesn't existlong removeStatusesForDirectory(Long directoryId)
directoryId
- the directory id to remove forlong removeAll()
long removeAllExcept(long directoryId, int statusId)
directoryId
- the directory idstatusId
- the id of the status to keepCollection<DirectorySynchronisationStatus> findActiveSyncsWhereNodeIdNotIn(Set<String> nodesIds)
nodesIds
- the set of node ids to filter onCopyright © 2020 Atlassian. All rights reserved.