Class SpaceConcealer
java.lang.Object
com.atlassian.confluence.impl.space.deletion.concealing.SpaceConcealer
It is responsible for hiding a space, so the space key could be re-used again immediately.
In addition, the space should not be returned in the space list and its content should not be accessible and searchable.
- Since:
- 9.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceConcealer(SpaceManagerInternal spaceManager, SpaceDaoInternal spaceDao, SpaceKeyNameRenamer spaceKeyNameRenamer, BandanaPersister bandanaPersister, PluginSettingRepository pluginSettingRepository, SpacePermissionManagerInternal spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAllCircularReferences(long spaceId) Without deleting of the circular references, it won't be possible to delete space object.cloneSpace(long spaceId) voidconceal(long spaceId) It performs all preparations so the space key could be reused again; plus, the space should become hidden for users.
-
Constructor Details
-
SpaceConcealer
public SpaceConcealer(SpaceManagerInternal spaceManager, SpaceDaoInternal spaceDao, SpaceKeyNameRenamer spaceKeyNameRenamer, BandanaPersister bandanaPersister, PluginSettingRepository pluginSettingRepository, SpacePermissionManagerInternal spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher) - Since:
- 10.0
-
-
Method Details
-
conceal
@Transactional(propagation=REQUIRES_NEW) public void conceal(long spaceId) It performs all preparations so the space key could be reused again; plus, the space should become hidden for users. -
cloneSpace
-
clearAllCircularReferences
@Transactional(propagation=REQUIRES_NEW) public void clearAllCircularReferences(long spaceId) Without deleting of the circular references, it won't be possible to delete space object.
-