Class EventRegistrationPermissionService

java.lang.Object
ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationPermissionService

@Component public class EventRegistrationPermissionService extends Object
  • Constructor Details

  • Method Details

    • isRegistrationAllowed

      public boolean isRegistrationAllowed(Entity event, Entity eventRegistrationWidgetConfig)
      check if event is published by widget config
      Parameters:
      event - the event to check
      eventRegistrationWidgetConfig - 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 check
      eventRegistrationWidgetConfig - the widget config to load search filters
      constriction - a specific constriction-name
      Returns:
      true if event is published in widget