Class PredefinedAnswersMode
java.lang.Object
ch.tocco.nice2.persist.core.spi.exec.AbstractModeWrapper
ch.tocco.nice2.netui.impl.clientquestion.PredefinedAnswersMode
- All Implemented Interfaces:
ModeWrapper
Deprecated.
Performs the task using the predefined answers for client questions.
Note, this will predefine answers on the whole thread for the time the task is executing!
It doesn't matter if the client questions are asked directly within the task or
somewhere in a entity listener which gets triggered.
-
Constructor Summary
ConstructorDescriptionPredefinedAnswersMode
(ClientQuestionService clientQuestionService) Deprecated. -
Method Summary
Modifier and TypeMethodDescription<A,
T> PersistTask <A, T> wrap
(PersistTask<A, T> task, Mode<?> mode) Deprecated.Returns a task conforming to the given mode.Methods inherited from class ch.tocco.nice2.persist.core.spi.exec.AbstractModeWrapper
getKey, getPriority
-
Constructor Details
-
PredefinedAnswersMode
Deprecated.
-
-
Method Details
-
wrap
Deprecated.Description copied from interface:ModeWrapper
Returns a task conforming to the given mode. Gives the opportunity to wrap the given task (or create a complete new one) before executing it. The usual use case is this: If some condition holds inside the givenmode
, a new task is returned wrapping the given task with additional behaviour. If the condition does not hold, thetask
argument is returned.
-