Feature #1497
closed
New toDto method with filter for dto services
Added by Ondřej Kopr about 5 years ago.
Updated about 5 years ago.
Description
Now isn't possible put filter into toDto method. Please create new toDto method with third parameter.
The new method toDto will call the original toDto method (backward compatibility).
In this ticket please check and allow fill dtoClass in DataFilter. The attribute can be used in new toDto method.
This changes MUST be mentioned in changelog. Because toDto line will have new step.
- Related to Feature #1498: Identity role audit (new audit for all sub entities) added
- Status changed from New to In Progress
- % Done changed from 0 to 60
I create new methods:
- DTO toDto(E entity, DTO dto, F filter)
- Page<DTO> toDtoPage(Page<E> entityPage, F filter),
- List<DTO> toDtos(List<E> entities, boolean trimmed, F filter)
All these methods are last in whole line and methods contain behavior from previous method. This change must be consult with someone who made these methods.
Otherwise I'm done. And done as done :)
- % Done changed from 60 to 40
Ouh, the change with method toDto wasn't good. Some services are problematic.
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 40 to 90
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 90 to 100
I did code review, it looks nice, thx!
- Status changed from Resolved to Closed
Also available in: Atom
PDF