Skip to content

clsTeamAssignmentCollection

clsTeamAssignmentCollection retrieves the team assignment roster for a policy via pk72846_view_policy.team_assign_query (SQL-VP-024), and is consulted by clsPolicySecurity to find the assigned Loss Control Consultant for the loss-control access check (BR-VP-008).

Purpose

  • Retrieves the team-member assignment roster for a policy via SQL-VP-024.
  • Drives demo-user masking of team-member contact fields via Criteria.MaskData.

Context

  • Namespace: SAIF.Business.View.Policy
  • Assembly/package: SAIF.Business.View.Policy (embedded library reference)

Public members

Member Signature Purpose
Item(TeamFunctions) Default ReadOnly Property Item(function As TeamFunctions) As clsTeamAssignment Returns the team assignment for a specific team function (e.g. LossControlConsultant).
Count ReadOnly Property Count As Integer Number of team assignments retrieved for the policy.

Inherited public members

Members in this section are inherited from clsBusinessCollectionBase in saif.framework.core. They are available on this type through inheritance.

Member Signature Purpose Origin
IsFirst / First() / FirstItem Traversal members Navigate to and identify the first item in the collection.† saif.framework.core — clsBusinessCollectionBase
ErrorCount / ErrorMessages Properties Aggregated error count/messages across all member items.† saif.framework.core — clsBusinessCollectionBase

Behavioral notes

  • Item(TeamFunctions.LossControlConsultant) returns Nothing if no team assignment exists for that function, which clsPolicySecurity treats as an access denial.*

Constraints and usage notes

  • Contact-field masking is governed by the Criteria.MaskData flag consumed by Fill.

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\clsTeamAssignmentCollection.vb