public interface TombstoneDao
| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractTombstone> |
getTombstonesAfter(long after,
Collection<Long> directoryIds,
Class<T> type)
Retrieves tombstone of the specified type, after the timestamp specified, optionally constrained to a directory set
|
<T extends ApplicationTombstone> |
getTombstonesAfter(long after,
Long applicationId,
Class<T> type)
Retrieves tombstone for the specified application, after the timestamp specified
|
int |
removeAllUpTo(long timestamp)
Removes all tombstones with the timestamp less or equal than the specified one.
|
void |
storeAliasTombstone(long applicationId,
String username)
Stores a tombstone for an alias
|
void |
storeEventsTombstone(String reason)
Stores a tombstone denoting any events can't be reconstructed
|
void |
storeEventsTombstoneForApplication(long applicationId)
Stores a tombstone denoting events for the given application can't be reconstructed
|
void |
storeEventsTombstoneForDirectory(String reason,
long directoryId)
Stores a tombstone denoting events for the given directory can't be reconstructed
|
void |
storeGroupMembershipTombstone(long directoryId,
String childGroupName,
String parentGroupName)
Stores a tombstone for group-group memberships
|
void |
storeGroupTombstones(long directoryId,
Collection<String> names)
Stores a tombstone for groups with the given names
|
void |
storeUserMembershipTombstone(long directoryId,
String username,
String parentGroupName)
Stores a tombstone for user-group memberships
|
void |
storeUserTombstones(long directoryId,
Collection<String> names)
Stores a tombstone for users with the given names
|
void storeUserTombstones(long directoryId,
Collection<String> names)
directoryId - the directory idnames - the names of the users to store the tombstone forvoid storeGroupTombstones(long directoryId,
Collection<String> names)
directoryId - the directory idnames - the names of the groups to store the tombstone forvoid storeUserMembershipTombstone(long directoryId,
String username,
String parentGroupName)
directoryId - the directory idusername - the name of the userparentGroupName - the name of the group the user belonged tovoid storeGroupMembershipTombstone(long directoryId,
String childGroupName,
String parentGroupName)
directoryId - the directory idchildGroupName - the name of the userparentGroupName - the name of the group the user belonged tovoid storeEventsTombstoneForDirectory(String reason, long directoryId)
reason - describes why this tombstone was writtendirectoryId - the directory id this affectsTimestampBasedEventStorevoid storeEventsTombstoneForApplication(long applicationId)
applicationId - the application id this affectsTimestampBasedEventStorevoid storeEventsTombstone(String reason)
reason - describes why this tombstone was writtenTimestampBasedEventStorevoid storeAliasTombstone(long applicationId,
String username)
applicationId - the application id this affectsusername - the original user name for the alias<T extends AbstractTombstone> List<T> getTombstonesAfter(long after, Collection<Long> directoryIds, Class<T> type)
after - only tombstones persisted after this timestamp will be returneddirectoryIds - if empty all tombstones will be returned, otherwise only tombstones for the specified directories.
Should be when retrieving tombstones that aren't directory specific.type - only retrieve tombstone of the specified type. Use AbstractTombstone to search for all types.<T extends ApplicationTombstone> List<T> getTombstonesAfter(long after, Long applicationId, Class<T> type)
after - only tombstones persisted after this timestamp will be returnedapplicationId - if null all tombstones will be returned, otherwise only tombstones for the specified application.
Should be when retrieving tombstones that aren't directory specific.int removeAllUpTo(long timestamp)
Copyright © 2023 Atlassian. All rights reserved.