Class HibernateTombstoneDao
- java.lang.Object
-
- com.atlassian.confluence.impl.user.crowd.hibernate.HibernateTombstoneDao
-
- All Implemented Interfaces:
com.atlassian.crowd.dao.tombstone.TombstoneDao
public final class HibernateTombstoneDao extends Object implements com.atlassian.crowd.dao.tombstone.TombstoneDao
- Since:
- 7.11.0
-
-
Constructor Summary
Constructors Constructor Description HibernateTombstoneDao(Clock clock, org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.atlassian.crowd.model.tombstone.ApplicationTombstone>
List<T>getTombstonesAfter(long after, Long applicationId, Class<T> type)
<T extends com.atlassian.crowd.model.tombstone.AbstractTombstone>
List<T>getTombstonesAfter(long after, Collection<Long> directoryIds, Class<T> type)
int
removeAllUpTo(long timestamp)
void
storeAliasTombstone(long applicationId, String username)
void
storeEventsTombstone(String reason)
void
storeEventsTombstoneForApplication(long applicationId)
void
storeEventsTombstoneForDirectory(String reason, long directoryId)
void
storeGroupMembershipTombstone(long directoryId, String childGroupName, String parentGroupName)
void
storeGroupTombstones(long directoryId, Collection<String> names)
void
storeUserMembershipTombstone(long directoryId, String username, String parentGroupName)
void
storeUserTombstones(long directoryId, Collection<String> names)
-
-
-
Constructor Detail
-
HibernateTombstoneDao
public HibernateTombstoneDao(Clock clock, org.hibernate.SessionFactory sessionFactory)
-
-
Method Detail
-
storeUserTombstones
public void storeUserTombstones(long directoryId, Collection<String> names)
- Specified by:
storeUserTombstones
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeGroupTombstones
public void storeGroupTombstones(long directoryId, Collection<String> names)
- Specified by:
storeGroupTombstones
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeUserMembershipTombstone
public void storeUserMembershipTombstone(long directoryId, String username, String parentGroupName)
- Specified by:
storeUserMembershipTombstone
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeGroupMembershipTombstone
public void storeGroupMembershipTombstone(long directoryId, String childGroupName, String parentGroupName)
- Specified by:
storeGroupMembershipTombstone
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeEventsTombstoneForDirectory
public void storeEventsTombstoneForDirectory(String reason, long directoryId)
- Specified by:
storeEventsTombstoneForDirectory
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeEventsTombstoneForApplication
public void storeEventsTombstoneForApplication(long applicationId)
- Specified by:
storeEventsTombstoneForApplication
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeEventsTombstone
public void storeEventsTombstone(String reason)
- Specified by:
storeEventsTombstone
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
storeAliasTombstone
public void storeAliasTombstone(long applicationId, String username)
- Specified by:
storeAliasTombstone
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
getTombstonesAfter
public <T extends com.atlassian.crowd.model.tombstone.AbstractTombstone> List<T> getTombstonesAfter(long after, Collection<Long> directoryIds, Class<T> type)
- Specified by:
getTombstonesAfter
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
getTombstonesAfter
public <T extends com.atlassian.crowd.model.tombstone.ApplicationTombstone> List<T> getTombstonesAfter(long after, Long applicationId, Class<T> type)
- Specified by:
getTombstonesAfter
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
removeAllUpTo
public int removeAllUpTo(long timestamp)
- Specified by:
removeAllUpTo
in interfacecom.atlassian.crowd.dao.tombstone.TombstoneDao
-
-