Resolve internal banner visibility¶
Centralize the internal/external visibility decision for the display banner. Read whenever Render needs to decide whether to emit the display banner.
| Field | Value |
|---|---|
| Operation ID | OP-V2-003 |
| Trigger | Read whenever Render needs to decide whether to emit the display banner. |
| Inputs | Insider/external classification, ShowInternalBanner ViewState entry. |
| Outputs | Boolean indicating whether the display banner should render. |
| Primary components | BannerControl.ShowInternalDisplayBanner |
| Entry point | SAIF.Presentation.Web.Controls.V2/Banner.vb |
Steps¶
- If the client is external, return
Trueunconditionally. (BR-V2-019) - Otherwise return the
ShowInternalBannerViewStateentry, defaulting toFalsewhen unset. (BR-V2-020)
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Property read]) --> D{External client?}
D -->|Yes| T([Return True])
D -->|No| V[Read ShowInternalBanner ViewState]
V --> R([Return value, default False])
Failure and edge-case behavior¶
- No exceptional failure handling beyond the branches described in Steps was found in the analysis findings.*
Related documentation¶
Sources¶
SAIF.Presentation.Web.Controls.V2/Banner.vb