Class DeleteServiceImpl.EntityDeletionDataImpl
java.lang.Object
ch.tocco.nice2.persist.entity.impl.delete.DeleteServiceImpl.EntityDeletionDataImpl
- All Implemented Interfaces:
DeleteService.EntityDeletionData
- Enclosing class:
DeleteServiceImpl
public static class DeleteServiceImpl.EntityDeletionDataImpl
extends Object
implements DeleteService.EntityDeletionData
-
Constructor Summary
ConstructorDescriptionEntityDeletionDataImpl
(DeleteService.EntityData entityToDelete, Set<DeleteService.EntityData> cascadedEntities, Set<DeleteService.EntityData> blockingEntities) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
EntityDeletionDataImpl
public EntityDeletionDataImpl(DeleteService.EntityData entityToDelete, Set<DeleteService.EntityData> cascadedEntities, Set<DeleteService.EntityData> blockingEntities)
-
-
Method Details
-
getEntityToDelete
- Specified by:
getEntityToDelete
in interfaceDeleteService.EntityDeletionData
- Returns:
- the entity that should be deleted
-
getCascadedEntities
- Specified by:
getCascadedEntities
in interfaceDeleteService.EntityDeletionData
- Returns:
- all referenced entities that would be deleted by the cascading operation
-
getBlockingEntities
- Specified by:
getBlockingEntities
in interfaceDeleteService.EntityDeletionData
- Returns:
- all entities that are blocking the deletion of the root entity (due to missing permissions or
DeleteBehavior.Cascade.DENY
-