Class SpaceContentErasersListBuilder
java.lang.Object
com.atlassian.confluence.impl.space.deletion.backgrounddeletion.erasers.SpaceContentErasersListBuilder
Creates all erasers for all depending on the SPACES table.
- Since:
- 9.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceContentErasersListBuilder
(SpaceContentErasersFactory spaceContentErasersFactory) -
Method Summary
Modifier and TypeMethodDescriptionMap<Class<?>,
EntityEraser> createAllErasers
(Collection<ExportableEntityInfo> allEntities, ConfluenceUser initiator, BooleanSupplier isDeadlineReached) Create all erasers for current space deletion iteration.
-
Constructor Details
-
SpaceContentErasersListBuilder
-
-
Method Details
-
createAllErasers
public Map<Class<?>,EntityEraser> createAllErasers(Collection<ExportableEntityInfo> allEntities, ConfluenceUser initiator, BooleanSupplier isDeadlineReached) Create all erasers for current space deletion iteration. This method should be called for every iteration.- Parameters:
allEntities
- all hibernate entities (can be space-related only)isDeadlineReached
- supplier that signals about whether the deadline reached or not- Returns:
- map of all erasers where the key is the hibernate entity class
-