clsTeamAssignment¶
clsTeamAssignment represents one team-member assignment (loss control consultant, underwriter,
etc.) for a policy, with support for demo-user masking and two alternate external-email lookup
paths (SQL Server and Oracle). The real username is preserved internally for authorization checks
even when display values are masked (BR-VP-012).
Purpose¶
- Represents one team-member assignment and its function (e.g. Loss Control Consultant).
- Masks username, full name, phone, and extension for demo users while preserving the real username internally for authorization matching (BR-VP-012).
- Resolves an external client's email address via two alternate lookups:
InitializeEmailAddress()(SQL Server, SQL-VP-025) andInitializeEmailAddressUsingSystemUser()(Oracle, SQL-VP-026).
Context¶
- Namespace:
SAIF.Business.View.Policy - Assembly/package:
SAIF.Business.View.Policy(embedded library reference)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
UserName |
ReadOnly Property UserName As String |
Masked display username when MaskData is set; otherwise the real username. |
UserIdName |
ReadOnly Property UserIdName As String |
The real, unmasked username, preserved for downstream authorization matching regardless of MaskData. |
TeamFunction |
Property TeamFunction As TeamFunctions |
The team function this assignment represents (e.g. LossControlConsultant). |
MaskData |
Property MaskData As Boolean |
When set, drives masking of username, full name, phone, and extension in Fill. |
InitializeEmailAddress |
Sub InitializeEmailAddress(idNum As String, clientLastname As String) |
Looks up an external client's email address via SQL Server (SQL-VP-025). |
InitializeEmailAddressUsingSystemUser |
Sub InitializeEmailAddressUsingSystemUser(mailId As String, lastName As String) |
Looks up an external client's email address via Oracle (SQL-VP-026). |
Inherited public members¶
Members in this section are inherited from clsBusinessBase in saif.framework.core. They are
available on this type through inheritance.
| Member | Signature | Purpose | Origin |
|---|---|---|---|
Rules |
Property Rules As clsRulesManager |
Owns the rule-registration/enforcement engine for this object.† | saif.framework.core — clsBusinessBase |
Error (via IDataErrorInfo) |
ReadOnly Property Error As String |
Surfaces broken-rule state to data-bound UI controls.† | saif.framework.core — clsBusinessBase |
Behavioral notes¶
InitializeEmailAddressis executed against an externally-supplied SQL ServerIDataPortalInfo, distinct from the internally-built BDS connection used byclsPolicySecurity.*
Constraints and usage notes¶
- Loss-control consultant authorization matching (BR-VP-008) always uses
UserIdName, never the maskedUserName.
Note: Statements marked with
†are derived from dependency library documentation via the Legends CLI. Statements marked with*were inferred from code structure or contextual evidence. Statements marked with**could not be confirmed; treat as unknown until verified.
Sources¶
SAIF.Business.View.Policy\clsTeamAssignment.vb