Class EventRegistrationPermissionService
java.lang.Object
ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationPermissionService
-
Constructor Summary
ConstructorDescriptionEventRegistrationPermissionService
(QueryBuilderFactory queryBuilderFactory, FormModel formModel, ConstrictionManager constrictionManager, QueryCompiler queryCompiler, SearchFilterQueryService searchFilterQueryService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isRegistrationAllowed
(Entity event, Entity eventRegistrationWidgetConfig) check if event is published by widget configboolean
isRegistrationAllowed
(Entity event, Entity eventRegistrationWidgetConfig, Optional<String> constriction) check if event is published by widget config
-
Constructor Details
-
EventRegistrationPermissionService
public EventRegistrationPermissionService(QueryBuilderFactory queryBuilderFactory, FormModel formModel, ConstrictionManager constrictionManager, QueryCompiler queryCompiler, SearchFilterQueryService searchFilterQueryService)
-
-
Method Details
-
isRegistrationAllowed
check if event is published by widget config- Parameters:
event
- the event to checkeventRegistrationWidgetConfig
- the widget config to load search filters and settings from- Returns:
- true if event is published in widget
-
isRegistrationAllowed
public boolean isRegistrationAllowed(Entity event, Entity eventRegistrationWidgetConfig, Optional<String> constriction) check if event is published by widget config- Parameters:
event
- the event to checkeventRegistrationWidgetConfig
- the widget config to load search filtersconstriction
- a specific constriction-name- Returns:
- true if event is published in widget
-