Package de.espirit.firstspirit.agency
Interface GenerateElementOperation
public interface GenerateElementOperation
Operation for a synchronous execution of a schedule entry generating a
PageRef
.- Since:
- 5.2.101
-
Field Summary
Modifier and TypeFieldDescriptionstatic final OperationType<GenerateElementOperation>
Operation for a synchronous execution of a schedule entry generating aPageRef
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Executes the configuredScheduleEntry
and waits for its completion.void
setBaseUrl
(@Nullable String baseUrl) Configures the base url the generated content is accessible from.void
setScheduleEntry
(@Nullable ScheduleEntry scheduleEntry) Configures aScheduleEntry
which should be used for the partial generation of thePageRef
.
-
Field Details
-
TYPE
Operation for a synchronous execution of a schedule entry generating aPageRef
- Since:
- 5.2.101
-
-
Method Details
-
setScheduleEntry
Configures aScheduleEntry
which should be used for the partial generation of thePageRef
. If none is specified this operation will search for a schedule entry containing a partial generation task.- Parameters:
scheduleEntry
- The schedule entry to use, ornull
.- Since:
- 5.2.101
-
setBaseUrl
Configures the base url the generated content is accessible from. If none is specified this operation will use the url of staging web application.- Parameters:
baseUrl
- The base url to use, ornull
.- Since:
- 5.2.101
-
perform
@Nullable @Nullable String perform(@NotNull @NotNull PageRef element, @NotNull @NotNull Language language) Executes the configuredScheduleEntry
and waits for its completion. This method will return an url the generated content is accessible from.- Parameters:
element
- The element to generate.- Returns:
- An url pointing to the generated content.
- Since:
- 5.2.101
-