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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable Entity
getContentEntity
(Entity pageEntity) protected abstract @Nullable Entity
getSectionFromSnippet
(Entity snippetEntity) run
(Optional<PageNode> page, 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
-
GetPageContentTask
public GetPageContentTask()
-
-
Method Details
-
run
- Specified by:
run
in 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
-