Folks,
a further new feature... it is now possible to annotate a (single) domain
service with a new @Dashboard annotation [1].

This domain service is then rendered in the same way as a regular domain
object.  Unlike other domain services, the dashboard domain service may
contain properties and collections; these can be to regular entities or to
view models (ISIS-553).

The ToDo app has been enhanced to demonstrate this new feature.    There's
not much to it:

@Dashboard
@Named("Dashboard")
public class ToDoAppDashboard extends AbstractFactoryAndRepository {

    ...

    @Render(Type.EAGERLY)
    @Disabled
    public List<ToDoItemsByCategoryViewModel> getAnalysisByCategory() {
        return toDoItemAnalysis.toDoItemsByCategory();
    }

    @Render(Type.EAGERLY)
    @Disabled
    public List<ToDoItemsByDateRangeViewModel> getAnalysisByDateRange() {
        return toDoItemAnalysis.toDoItemsByDateRange();
    }

}

Do give it a go...

Cheers
Dan


[1] https://issues.apache.org/jira/browse/ISIS-554
[2] https://github.com/estatio/estatio

Reply via email to