Interface Editable<T extends Module>
- Type Parameters:
T- editable module type
- All Known Implementing Classes:
ContentModule, RichContentModule, SimpleListModule
public interface Editable<T extends Module>
Primary editing contract for mutable SimplyPages modules.
Framework boundary: this interface defines rendering and mutation hooks only. Applications are responsible for authorization, CSRF, transport validation, and persistence policy.
Mutability and thread-safety: implementations are typically mutable and request-scoped. Treat editable module instances as not thread-safe unless an implementation documents otherwise.
-
Method Summary
Modifier and TypeMethodDescriptionapplyEdits(Map<String, String> formData) Applies form data to this module instance.Builds the main-property edit view for this module.default List<EditableChild> Returns editable child handles for nested editing UIs.default ValidationResultValidates form data before mutation.
-
Method Details
-
buildEditView
Component buildEditView()Builds the main-property edit view for this module.- Returns:
- component containing form controls
-
applyEdits
-
validate
Validates form data before mutation.- Parameters:
formData- form field name to value map- Returns:
- validation result; default is success
-
getEditableChildren
Returns editable child handles for nested editing UIs.- Returns:
- editable children in UI/display order; default is empty
-