Class SynchronyTablesEraser
java.lang.Object
com.atlassian.confluence.impl.space.deletion.backgrounddeletion.erasers.SynchronyTablesEraser
- All Implemented Interfaces:
EntityEraser
-
Method Summary
Modifier and TypeMethodDescriptiondeleteDataRecursively
(String columnName, Collection<Long> ids) Deletes records in the table where ids in columnName are in ids list.Class<?>
Get the class name of the Hibernate entity, for example, Label.class, Space.class etc.
-
Method Details
-
getEntityClass
Description copied from interface:EntityEraser
Get the class name of the Hibernate entity, for example, Label.class, Space.class etc. Pages, blogpost etc use just one class, ConfluenceEntityObject.- Specified by:
getEntityClass
in interfaceEntityEraser
- Returns:
- hibernate entity class.
-
deleteDataRecursively
Description copied from interface:EntityEraser
Deletes records in the table where ids in columnName are in ids list. Before this, it will call other erasers to remove their dependent data. For example, for space permissions, columnName will be SPACEID and ids will contain the list of space ids. In this case, this method will remove all space permissions where SPACEID in (ids)- Specified by:
deleteDataRecursively
in interfaceEntityEraser
- Parameters:
columnName
- column name (referencing to some other parent entity)ids
- ids for removal (parent ids actually)- Returns:
- deletion result (number of deleted objects and finished/not finished state)
-