Class GetPageContentTask
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.persist.GetPageContentTask
- All Implemented Interfaces:
PersistTask<PageNode, PageContent>
- Direct Known Subclasses:
GetEditContentTask, GetPublishedContentTask
public abstract class GetPageContentTask
extends Object
implements PersistTask<PageNode, PageContent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable EntitygetContentEntity(Entity pageEntity) protected abstract @Nullable EntitygetSectionFromSnippet(Entity snippetEntity) run(Optional<PageNode> page, CommandContext commandContext) 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
-
GetPageContentTask
public GetPageContentTask()
-
-
Method Details
-
run
- Specified by:
runin interfacePersistTask<PageNode, PageContent>- Throws:
Exception
-
getContentEntity
@Nullable protected abstract @Nullable Entity getContentEntity(Entity pageEntity) throws PersistException - Throws:
PersistException
-
getSectionFromSnippet
@Nullable protected abstract @Nullable Entity getSectionFromSnippet(Entity snippetEntity) throws PersistException - Throws:
PersistException
-