Class QualificationModuleCollector
java.lang.Object
ch.tocco.nice2.optional.qualificationregistration.impl.eventregistration.QualificationModuleCollector
- All Implemented Interfaces:
EventRegistrationModuleCollector
@Order(-10)
@Component
public class QualificationModuleCollector
extends Object
implements EventRegistrationModuleCollector
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationModuleCollector
EventRegistrationModuleCollector.CollectorContext, EventRegistrationModuleCollector.EventRegistrationModuleInformation
-
Field Summary
Fields inherited from interface ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationModuleCollector
DEFAULT_ORDER
-
Constructor Summary
ConstructorDescriptionQualificationModuleCollector
(QualificationEventInformationService qualificationEventInformationService, QualificationMaxAttemptsService qualificationMaxAttemptsService, ExternalQualificationService qualificationService) -
Method Summary
Modifier and TypeMethodDescriptioncollectModuleInformation
(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) boolean
isApplicable
(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) show qualification data when either - the module is shown - attempt logic is activated - promotion logic is activated and previous promotion status existMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationModuleCollector
collectModuleInformation, isApplicable
-
Constructor Details
-
QualificationModuleCollector
public QualificationModuleCollector(QualificationEventInformationService qualificationEventInformationService, QualificationMaxAttemptsService qualificationMaxAttemptsService, ExternalQualificationService qualificationService)
-
-
Method Details
-
isApplicable
public boolean isApplicable(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) show qualification data when either - the module is shown - attempt logic is activated - promotion logic is activated and previous promotion status exist- Specified by:
isApplicable
in interfaceEventRegistrationModuleCollector
- Parameters:
eventRelationship
- the Event_relationship entity to checkcollectorContext
- the context the modules are collected for- Returns:
- true if this collector should handle this module, false otherwise
-
collectModuleInformation
public EventRegistrationModuleCollector.EventRegistrationModuleInformation collectModuleInformation(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) - Specified by:
collectModuleInformation
in interfaceEventRegistrationModuleCollector
- Parameters:
eventRelationship
- the Event_relationship entity to handlecollectorContext
- the context the modules are collected for- Returns:
- the information for this module, use static helper methods in
EventRegistrationModuleCollector.EventRegistrationModuleInformation
-