Class DefaultEventRegistrationActionService
java.lang.Object
ch.tocco.nice2.optional.event.api.actions.DefaultEventRegistrationActionService
- All Implemented Interfaces:
EventRegistrationActionService
@Primary
public class DefaultEventRegistrationActionService
extends Object
implements EventRegistrationActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.event.api.actions.EventRegistrationActionService
EventRegistrationActionService.EventQuestionData
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BusinessUnitManager
protected final Context
protected final EntityDefaultValueService
protected final CommandExecutor
protected final org.slf4j.Logger
protected final PrincipalService
protected final RebindService
protected final SecurityManager
protected final TextResources
-
Constructor Summary
ConstructorDescriptionDefaultEventRegistrationActionService
(BusinessUnitManager businessUnitManager, CommandExecutor executor, Context context, EntityDefaultValueService entityDefaultValueService, org.slf4j.Logger log, PrincipalService principalService, RebindService rebindService, SecurityManager securityManager, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
doRegister
(RebindValue[] rebindValues, Map<String, String> params, @Nullable Map<String, String> questionValues, List<String> selectedModuleKeys, Entity businessUnit, Entity eventEntity, PersistTask<RebindValue[], Entity> registrationTask) getAdditionalFormData
(String eventKey) protected EventRegistrationUserTask
getEventRegistrationUserTask
(Map<String, String> params, Entity businessUnit) protected String
getOverviewKey
(Map<String, String> params) getQuestionFromEvent
(String eventKey) load all questions of a given event to displayprotected PersistTask
<RebindValue[], Entity> register
(RebindValue[] rebindValues, Map<String, String> params, @Nullable Map<String, String> questionValues, List<String> selectedModuleKeys) boolean
showRegisterButton
(String eventKey, Boolean intranet)
-
Field Details
-
businessUnitManager
-
executor
-
context
-
entityDefaultValueService
-
log
protected final org.slf4j.Logger log -
principalService
-
rebindService
-
securityManager
-
textResources
-
-
Constructor Details
-
DefaultEventRegistrationActionService
public DefaultEventRegistrationActionService(BusinessUnitManager businessUnitManager, CommandExecutor executor, Context context, EntityDefaultValueService entityDefaultValueService, org.slf4j.Logger log, PrincipalService principalService, RebindService rebindService, SecurityManager securityManager, TextResources textResources)
-
-
Method Details
-
showRegisterButton
- Specified by:
showRegisterButton
in interfaceEventRegistrationActionService
-
register
public String register(RebindValue[] rebindValues, Map<String, String> params, @Nullable @Nullable Map<String, String> questionValues, List<String> selectedModuleKeys) - Specified by:
register
in interfaceEventRegistrationActionService
-
doRegister
protected String doRegister(RebindValue[] rebindValues, Map<String, String> params, @Nullable @Nullable Map<String, String> questionValues, List<String> selectedModuleKeys, Entity businessUnit, Entity eventEntity, PersistTask<RebindValue[], Entity> registrationTask) -
getAdditionalFormData
- Specified by:
getAdditionalFormData
in interfaceEventRegistrationActionService
-
getQuestionFromEvent
Description copied from interface:EventRegistrationActionService
load all questions of a given event to display- Specified by:
getQuestionFromEvent
in interfaceEventRegistrationActionService
- Parameters:
eventKey
- the key of the event- Returns:
- a bean containing all questions
-
getEventRegistrationUserTask
protected EventRegistrationUserTask getEventRegistrationUserTask(Map<String, String> params, Entity businessUnit) -
getAdditionalFormDataForEvent
-
getRegistrationTask
protected PersistTask<RebindValue[],Entity> getRegistrationTask(Entity event, Entity businessUnit, Map<String, String> params) -
getOverviewKey
-