Can I filter events in a calendar that uses an event provider?

Hi I have a calendar that i want to filter events in. For example show only events belonging to the user, or other possible manual filters. My calendar uses my event provider class which gets the events from the database.

Am I able to create custom filters for the calendar, is there any premade filters I can use on the calendar? I saw that you can filter a data source like a JPA container, would that help?

If you use a Vaadin Container (for example JPAContainer) instead of a custom event provider and set it as the data source (Calendar.setContainerDataSource()) for the calendar you will be able to filter the events in the Container using the Container.Filterable interface.