Class DefaultEventModuleRegistrationService
java.lang.Object
ch.tocco.nice2.optional.event.api.actions.moduleregistration.DefaultEventModuleRegistrationService
- All Implemented Interfaces:
EventModuleRegistrationService
public class DefaultEventModuleRegistrationService
extends Object
implements EventModuleRegistrationService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.event.api.actions.moduleregistration.EventModuleRegistrationService
EventModuleRegistrationService.EventModule
-
Constructor Summary
ConstructorDescriptionDefaultEventModuleRegistrationService
(CommandExecutor executor, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetAvailableModulesKeysForRegistration
(String eventKey) getModuleDataTask
(DefaultDisplayService defaultDisplayService) getModulesForEventRegistration
(String eventKey) used to create checkboxes for the modules
-
Constructor Details
-
DefaultEventModuleRegistrationService
public DefaultEventModuleRegistrationService(CommandExecutor executor, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getAvailableModulesKeysForRegistration
- Specified by:
getAvailableModulesKeysForRegistration
in interfaceEventModuleRegistrationService
- Parameters:
eventKey
- the key of the event to get the modules from- Returns:
- a list of primary keys of event as strings
-
getModulesForEventRegistration
public List<EventModuleRegistrationService.EventModule> getModulesForEventRegistration(String eventKey) Description copied from interface:EventModuleRegistrationService
used to create checkboxes for the modules- Specified by:
getModulesForEventRegistration
in interfaceEventModuleRegistrationService
- Parameters:
eventKey
- the key of the event to get the modules from- Returns:
- a list of beans for the modules
-
getModuleDataTask
protected OptionalTask<Entity,EventModuleRegistrationService.EventModule> getModuleDataTask(DefaultDisplayService defaultDisplayService)
-