Class AddSnippetTask
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.persist.AddSnippetTask
- All Implemented Interfaces:
PersistTask<AddSnippetTask.Param,Entity>
Converts a section into a snippet.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Entityrun(Optional<AddSnippetTask.Param> a, CommandContext commandContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
AddSnippetTask
public AddSnippetTask()
-
-
Method Details
-
run
@Nullable public @Nullable Entity run(Optional<AddSnippetTask.Param> a, CommandContext commandContext) throws PersistException, InterruptedException - Specified by:
runin interfacePersistTask<AddSnippetTask.Param,Entity> - Throws:
PersistExceptionInterruptedException
-