Class DeleteServiceImpl.EntityDataImpl
java.lang.Object
ch.tocco.nice2.persist.entity.impl.delete.DeleteServiceImpl.EntityDataImpl
- All Implemented Interfaces:
DeleteService.EntityData
- Enclosing class:
DeleteServiceImpl
public static class DeleteServiceImpl.EntityDataImpl
extends Object
implements DeleteService.EntityData
Implementation of the
DeleteService.EntityData
interface,
which is part of the result structure.
Contains information for one specific Entity
that is
part of the deletion tree.-
Constructor Summary
ConstructorDescriptionEntityDataImpl
(EntityId entityId, @Nullable String businessUnitId, @Nullable DeleteBehavior.Cascade cascade, @Nullable DeleteBehavior.Visualisation visualisation) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
@Nullable String
@Nullable DeleteBehavior.Visualisation
boolean
int
hashCode()
boolean
void
setCascadedEntityIsDeleted
(boolean cascadedEntityIsDeleted) void
setDeletePermission
(boolean hasDeletePermission) void
setReadPermission
(boolean hasDeletePermission)
-
Constructor Details
-
EntityDataImpl
public EntityDataImpl(EntityId entityId, @Nullable @Nullable String businessUnitId, @Nullable @Nullable DeleteBehavior.Cascade cascade, @Nullable @Nullable DeleteBehavior.Visualisation visualisation)
-
-
Method Details
-
getEntityId
- Specified by:
getEntityId
in interfaceDeleteService.EntityData
-
getBusinessUnitId
- Specified by:
getBusinessUnitId
in interfaceDeleteService.EntityData
-
hasReadPermission
public boolean hasReadPermission()- Specified by:
hasReadPermission
in interfaceDeleteService.EntityData
-
hasDeletePermission
public boolean hasDeletePermission()- Specified by:
hasDeletePermission
in interfaceDeleteService.EntityData
-
deleteBlockedByCascade
public boolean deleteBlockedByCascade()- Specified by:
deleteBlockedByCascade
in interfaceDeleteService.EntityData
-
getVisualisation
- Specified by:
getVisualisation
in interfaceDeleteService.EntityData
-
setDeletePermission
public void setDeletePermission(boolean hasDeletePermission) -
setReadPermission
public void setReadPermission(boolean hasDeletePermission) -
setCascadedEntityIsDeleted
public void setCascadedEntityIsDeleted(boolean cascadedEntityIsDeleted) -
hashCode
public int hashCode() -
equals
-