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 EventRegistrationModuleCollector
EventRegistrationModuleCollector.CollectorContext, EventRegistrationModuleCollector.EventRegistrationModuleInformation -
Field Summary
Fields inherited from interface EventRegistrationModuleCollector
DEFAULT_ORDER, OPTIONAL_TYPE, REQUIRED_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectModuleInformation(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) booleanisApplicable(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EventRegistrationModuleCollector
collectModuleInformation, isApplicable, postProcessModules
-
Constructor Details
-
DefaultModuleCollector
public DefaultModuleCollector()
-
-
Method Details
-
isApplicable
public boolean isApplicable(Entity eventRelationship, EventRegistrationModuleCollector.CollectorContext collectorContext) - Specified by:
isApplicablein 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:
collectModuleInformationin 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
-