Class EventRegistrationUserTask
java.lang.Object
ch.tocco.nice2.optional.event.api.actions.EventRegistrationUserTask
- All Implemented Interfaces:
OptionalTask<RebindValue[], Entity>, PersistTask<RebindValue[], Entity>
@Deprecated
public class EventRegistrationUserTask
extends Object
implements OptionalTask<RebindValue[], Entity>
Deprecated.
rebinds a User or Address, or gets the current User if RebindValues are empty
if Address was rebound, try to find the current User in related Users, if not found this will throw
sets source and status on Address and User source is set to 'event_registration' if empty status is set to 'check' if something on the entity was changed
sets Address_type on Address, Salutation on User and Correspondence_language on both if User was newly created Address_type is set to 'neutral' Salutation is set to 'formal' Correspondence_language is set to whatever was passed in params, throws if none or not valid Correspondence_language
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityDeprecated.protected final EntityDefaultValueServiceDeprecated.protected final org.slf4j.LoggerDeprecated.Deprecated.protected final PrincipalServiceDeprecated.protected final RebindServiceDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionEventRegistrationUserTask(Entity businessUnit, EntityDefaultValueService entityDefaultValueService, org.slf4j.Logger log, Map<String, String> params, PrincipalService principalService, RebindService rebindService) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondoRun(RebindValue[] rebindValues, CommandContext commandContext) Deprecated.protected EntityfinalizeUser(Entity user) Deprecated.getPublicationAddressUser(Entity userEntity) Deprecated.protected voidhandleNewAddress(Entity addressEntity, Context context, Optional<Entity> language) Deprecated.protected voidhandleNewAddressUser(Entity addressUserEntity) Deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalTask
runMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Field Details
-
businessUnit
Deprecated. -
entityDefaultValueService
Deprecated. -
log
protected final org.slf4j.Logger logDeprecated. -
params
-
principalService
Deprecated. -
rebindService
Deprecated.
-
-
Constructor Details
-
EventRegistrationUserTask
public EventRegistrationUserTask(Entity businessUnit, EntityDefaultValueService entityDefaultValueService, org.slf4j.Logger log, Map<String, String> params, PrincipalService principalService, RebindService rebindService) Deprecated.
-
-
Method Details
-
doRun
Deprecated.- Specified by:
doRunin interfaceOptionalTask<RebindValue[], Entity>- Throws:
Exception
-
finalizeUser
Deprecated.- Throws:
InterruptedException
-
getPublicationAddressUser
Deprecated.- Throws:
InterruptedException
-
handleNewAddress
protected void handleNewAddress(Entity addressEntity, Context context, Optional<Entity> language) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
handleNewAddressUser
Deprecated.- Throws:
InterruptedException
-
EventRegistrationResourcefor new widget