Package org.apache.juneau.console.views
Class SinkRenderAllowlist
java.lang.Object
org.apache.juneau.console.views.SinkRenderAllowlist
Serving-path allowlist of renderer ids that may be named on a fill sink
(a field-grid catalog
render entry or PopoverField.render).
This does not freeze JavaScript functions; the client resolveSinkRenderer lookup owns that. The
table-cell render path does not call this helper (unknown ids still warn-and-fall-back).
- Since:
- 10.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionBuilt-in ids safe to name on a field-grid fill sink (and the JS frozen-builtin set).Text-shaped built-ins allowed on aPopoverField(no tags indisplay()when popup is forced off). -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertAllowed(String renderId) Accepts a frozen built-in id.static voidassertPopoverAllowed(String renderId) Accepts only the text-shaped popover built-ins.
-
Field Details
-
BUILTIN_IDS
Built-in ids safe to name on a field-grid fill sink (and the JS frozen-builtin set).pillis a fill-sink built-in whose sink renderer is a display-only variant of the cell renderer: the client'sresolveSinkRenderer("pill")never emitsrole="button", and serving-path validation forbids ameta.actionon a sink pill outright (a fill sink has norowActionsin scope to bind one to).codeis a minimal monospace, whitespace-preserving, HTML-escaped source-text renderer intended for a field-grid catalog entry inside a row-detail region — no language hint or syntax highlighting on this first pass. -
POPOVER_TEXT_IDS
Text-shaped built-ins allowed on aPopoverField(no tags indisplay()when popup is forced off). A subset ofBUILTIN_IDS.
-
-
Method Details
-
assertAllowed
Accepts a frozen built-in id.- Parameters:
renderId- The renderer id. Must not benull or blank.- Throws:
IllegalArgumentException- If the id is not a built-in.
-
assertPopoverAllowed
Accepts only the text-shaped popover built-ins. Custom ids are never allowed on a popover.- Parameters:
renderId- The renderer id. Must not benull or blank.- Throws:
IllegalArgumentException- If the id is not inPOPOVER_TEXT_IDS.
-