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
Modifier and TypeFieldDescriptionprotected final Entity
Deprecated.protected final EntityDefaultValueService
Deprecated.protected final org.slf4j.Logger
Deprecated.Deprecated.protected final PrincipalService
Deprecated.protected final RebindService
Deprecated. -
Constructor Summary
ConstructorDescriptionEventRegistrationUserTask
(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 Entity
finalizeUser
(Entity user) Deprecated.getPublicationAddressUser
(Entity userEntity) Deprecated.protected void
handleNewAddress
(Entity addressEntity, Context context, Optional<Entity> language) Deprecated.protected void
handleNewAddressUser
(Entity addressUserEntity) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.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
Deprecated. -
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:
doRun
in 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
-
EventRegistrationResource
for new widget