@Test void testDelete() { Entity entity = getEntityMock(); when(userPermissionEvaluator.hasPermission(new EntityIdentity(entity), EntityPermission.DELETE)) .thenReturn(true); rowLevelSecurityRepositoryDecorator.delete(entity); verify(delegateRepository).delete(entity); verify(mutableAclService).deleteAcl(new EntityIdentity(entity), true); }
@Override public void deleteAcl(Entity entity) { EntityIdentity entityIdentity = new EntityIdentity(entity); deleteAcl(entityIdentity); }
RowLevelSecurityRepositoryDecorator extends AbstractRowLevelSecurityRepositoryDecorator<Entity> { @Override public void deleteAcl(Entity entity) { EntityIdentity entityIdentity = new EntityIdentity(entity); deleteAcl(entityIdentity); } }
RowLevelSecurityRepositoryDecorator extends AbstractRowLevelSecurityRepositoryDecorator<Entity> { @Override public void deleteAcl(Entity entity) { EntityIdentity entityIdentity = new EntityIdentity(entity); deleteAcl(entityIdentity); } RowLevelSecurityRepositoryDecorator(
      Repository<Entity> delegateRepository,
      UserPermissionEvaluator userPermissionEvaluator,
      MutableAclService mutableAclService); }
RowLevelSecurityRepositoryDecorator extends AbstractRowLevelSecurityRepositoryDecorator<Entity> { @Override public void deleteAcl(Entity entity) { EntityIdentity entityIdentity = new EntityIdentity(entity); deleteAcl(entityIdentity); } RowLevelSecurityRepositoryDecorator(
      Repository<Entity> delegateRepository,
      UserPermissionEvaluator userPermissionEvaluator,
      MutableAclService mutableAclService); @Override boolean isActionPermitted(Entity entity, Action operation); @Override boolean isActionPermitted(Object id, Action operation); @Override void throwPermissionException(Entity entity, Action action); @Override void createAcl(Entity entity); @Override void deleteAcl(Entity entity); @Override void deleteAcl(Object id); @Override void updateAcl(Entity entity); }
RowLevelSecurityRepositoryDecorator extends AbstractRowLevelSecurityRepositoryDecorator<Entity> { @Override public void deleteAcl(Entity entity) { EntityIdentity entityIdentity = new EntityIdentity(entity); deleteAcl(entityIdentity); } RowLevelSecurityRepositoryDecorator(
      Repository<Entity> delegateRepository,
      UserPermissionEvaluator userPermissionEvaluator,
      MutableAclService mutableAclService); @Override boolean isActionPermitted(Entity entity, Action operation); @Override boolean isActionPermitted(Object id, Action operation); @Override void throwPermissionException(Entity entity, Action action); @Override void createAcl(Entity entity); @Override void deleteAcl(Entity entity); @Override void deleteAcl(Object id); @Override void updateAcl(Entity entity);  }