Class DefaultModuleCollector
java.lang.Object
ch.tocco.nice2.optional.event.impl.widget.eventregistration.DefaultModuleCollector
- All Implemented Interfaces:
EventRegistrationModuleCollector
@Order(0)
@Component
public class DefaultModuleCollector
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
-
Method Summary
Modifier and TypeMethodDescriptioncollectModuleInformation
(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) boolean
isApplicable
(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) Methods 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
-
DefaultModuleCollector
public DefaultModuleCollector()
-
-
Method Details
-
isApplicable
public boolean isApplicable(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) - 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
-