Class UpdateSectionTask
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.persist.UpdateSectionTask
- All Implemented Interfaces:
PersistTask<Section,Entity>
Task for updating the html content of a section.
This task takes a
Section containing the key
and the html content as argument. The given key has to
be the key of the "Page_content_to_section" entity (not
the one of the "Section" entity). This task then retrieves
the "Section" entity to update by getting the section
directly or via a snippet.-
Constructor Summary
ConstructorsConstructorDescriptionUpdateSectionTask(ClientQuestionService clientQuestionService, ContentReferenceParseService contentReferenceParseService, TextResources textResources, WidgetService widgetService, CopyWidgetConfigService copyWidgetConfigService) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
UpdateSectionTask
public UpdateSectionTask(ClientQuestionService clientQuestionService, ContentReferenceParseService contentReferenceParseService, TextResources textResources, WidgetService widgetService, CopyWidgetConfigService copyWidgetConfigService)
-
-
Method Details
-
run
public Entity run(Optional<Section> section, CommandContext commandContext) throws PersistException, InterruptedException - Specified by:
runin interfacePersistTask<Section,Entity> - Throws:
PersistExceptionInterruptedException
-