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
FieldsModifier and TypeFieldDescriptionprotected final BusinessUnitManagerprotected final Contextprotected final EntityDefaultValueServiceprotected final CommandExecutorprotected final org.slf4j.Loggerprotected final OverbookingHelperprotected final PrincipalServiceprotected final RebindServiceprotected final SecurityManagerprotected final TextResources -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEventRegistrationActionService(BusinessUnitManager businessUnitManager, CommandExecutor executor, Context context, EntityDefaultValueService entityDefaultValueService, org.slf4j.Logger log, PrincipalService principalService, RebindService rebindService, SecurityManager securityManager, TextResources textResources, OverbookingHelper overbookingHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoRegister(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 EventRegistrationUserTaskgetEventRegistrationUserTask(Map<String, String> params, Entity businessUnit) protected StringgetOverviewKey(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) booleanshowRegisterButton(String eventKey, Boolean intranet)
-
Field Details
-
businessUnitManager
-
executor
-
context
-
entityDefaultValueService
-
log
protected final org.slf4j.Logger log -
principalService
-
rebindService
-
securityManager
-
textResources
-
overbookingHelper
-
-
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, OverbookingHelper overbookingHelper)
-
-
Method Details
-
showRegisterButton
- Specified by:
showRegisterButtonin interfaceEventRegistrationActionService
-
register
public String register(RebindValue[] rebindValues, Map<String, String> params, @Nullable @Nullable Map<String, String> questionValues, List<String> selectedModuleKeys) - Specified by:
registerin 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:
getAdditionalFormDatain interfaceEventRegistrationActionService
-
getQuestionFromEvent
Description copied from interface:EventRegistrationActionServiceload all questions of a given event to display- Specified by:
getQuestionFromEventin 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
-