Interface StructureGenerator.Inserter
- All Superinterfaces:
StructureGenerator
- All Known Subinterfaces:
ActionHandlingGenerator.Inserter
- All Known Implementing Classes:
AbstractGenerator.Inserter
- Enclosing interface:
- StructureGenerator
An implementor inserts new items into the containing structure.
-
Nested Class Summary
Nested classes/interfaces inherited from interface StructureGenerator
StructureGenerator.ApplicabilityChecker, StructureGenerator.Context, StructureGenerator.EffectContext, StructureGenerator.Extender, StructureGenerator.Filter, StructureGenerator.GenerationContext, StructureGenerator.Grouper, StructureGenerator.HandlingContext, StructureGenerator.Inserter, StructureGenerator.ItemChangeFilterContext, StructureGenerator.Sorter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createFragment
(Map<String, Object> parameters, StructureGenerator.GenerationContext context, ItemForestBuilder builder) Builds a forest fragment.Methods inherited from interface StructureGenerator
addDefaultFormParameters, addParametersForSummary, addParametersToForm, buildParametersFromForm, isAvailable
-
Method Details
-
createFragment
void createFragment(@NotNull Map<String, Object> parameters, @NotNull StructureGenerator.GenerationContext context, @NotNull ItemForestBuilder builder) Builds a forest fragment. The Structure core inserts the fragment right after the row with this Inserter.
Security Note
In spite ofStructureItemType#isVisible()
method hides items those a user is not permitted to see, the Inserter implementation ought to check an item visibility before insertion. If the implementation inserts an invisible item, the Structure hides it from the user, but the Structure does not hide the item from a subsequent generator (if any). So the generator may disclose a private data from the item by aggregating it or in some similar way.- Parameters:
parameters
- configuration parameters. SeeStructureGenerator.buildParametersFromForm(Map, ErrorCollection)
context
- a generation contextbuilder
- a forest builder
-