public interface GenerateElementOperation
PageRef
.Modifier and Type | Field and Description |
---|---|
static OperationType<GenerateElementOperation> |
TYPE
Operation for a synchronous execution of a schedule entry generating a
PageRef |
Modifier and Type | Method and Description |
---|---|
String |
perform(PageRef element,
Language language)
Executes the configured
ScheduleEntry and waits for its completion. |
void |
setBaseUrl(String baseUrl)
Configures the base url the generated content is accessible from.
|
void |
setScheduleEntry(ScheduleEntry scheduleEntry)
Configures a
ScheduleEntry which should be used for the partial generation
of the PageRef . |
static final OperationType<GenerateElementOperation> TYPE
PageRef
void setScheduleEntry(@Nullable ScheduleEntry scheduleEntry)
ScheduleEntry
which should be used for the partial generation
of the PageRef
. If none is specified this operation will search for
a schedule entry containing a partial generation task.scheduleEntry
- The schedule entry to use, or null
.void setBaseUrl(@Nullable String baseUrl)
baseUrl
- The base url to use, or null
.@Nullable String perform(@NotNull PageRef element, @NotNull Language language)
ScheduleEntry
and waits for its completion.
This method will return an url the generated content is accessible from.element
- The element to generate.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210