Class CreateWidgetRecordTask
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.widget.CreateWidgetRecordTask
- All Implemented Interfaces:
PersistTask<CreateWidgetRecordTask.Params,
Entity>
public class CreateWidgetRecordTask
extends Object
implements PersistTask<CreateWidgetRecordTask.Params,Entity>
Takes an entity of type "Section" and the unique id of a Cms_template of type "widget" to create a "Widget_legacy"
entity to link with this section.
Returns the created Widget_legacy entity.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
run
(Optional<CreateWidgetRecordTask.Params> params, CommandContext commandContext) 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.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
CreateWidgetRecordTask
public CreateWidgetRecordTask()
-
-
Method Details
-
run
@Nullable public @Nullable Entity run(Optional<CreateWidgetRecordTask.Params> params, CommandContext commandContext) throws Exception - Specified by:
run
in interfacePersistTask<CreateWidgetRecordTask.Params,
Entity> - Throws:
Exception
-