clsTeamAssignmentCollection¶
clsTeamAssignmentCollection loads every staff assignment on a policy and lets a consumer ask for one by role rather than by position. It also owns the e-mail initialisation for its members, taking a second data portal for the directory read, and reports whether agent or producer data is present at all.
Purpose¶
- Retrieves the staff assignments on a policy (Retrieve supporting policy aggregates).
- Locates an assignment by team function, which is how the loss-control consultant is found during the access decision (BR-007).
- Initialises the e-mail addresses of its members from a separate data portal.*
- Applies masking to its members when masking was requested at retrieval (BR-013).
Context¶
- Namespace:
SAIF.Business.View.Policy - Assembly/package:
SAIF.BOF.Business.View.Policy - Declared in:
Business/SAIF.Business.View.Policy/clsTeamAssignmentCollection.vb
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| HasAgentData | Public ReadOnly Property HasAgentData() As Boolean |
True when the policy has an agent assignment, so consumers can suppress an empty agent block.* |
| HasProducerData | Public ReadOnly Property HasProducerData() As Boolean |
True when the policy has a producer assignment.* |
| MyCriteria | Public ReadOnly Property MyCriteria() As Criteria |
The criteria this instance was retrieved with. |
| Add | Public Shadows Function Add(ByVal inTeamAssignment As clsTeamAssignment) As Integer |
Appends a member and returns its ordinal position. |
| Contains | Public Overloads Function Contains(ByVal inTeamAssignment As clsTeamAssignment) As Boolean |
Reports whether a member is present in the collection. |
| Contains | Public Overloads Function Contains(ByVal inTeamFunction As TeamFunctions) As Boolean |
Reports whether a member is present in the collection. |
| GetTeamAssignmentCollection | Public Shared Function GetTeamAssignmentCollection(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNum As Decimal, Optional ByVal inMaskData As Boolean = False) As clsTeamAssignmentCollection |
Retrieves the staff assignments on a policy, optionally masking assignee detail (Retrieve supporting policy aggregates). |
| GetTeamAssignmentCollection | Public Shared Function GetTeamAssignmentCollection(ByVal inDataportal As IDataPortalInfo, ByVal inSQLServerDataPortal As IDataPortalInfo, ByVal inPolicyNum As Decimal, Optional ByVal inMaskD … |
Retrieves the staff assignments on a policy and resolves their e-mail addresses through a second, SQL Server data portal (Retrieve supporting policy aggregates). |
| InitializeEmaillAddress | Public Sub InitializeEmaillAddress(ByVal inDataportal As IDataPortalInfo) |
Resolves e-mail addresses for every member from the supplied data portal. The misspelled name is retained for backwards compatibility.* |
| InitializeEmailAddress | Public Sub InitializeEmailAddress(ByVal inSQLServerDataPortal As IDataPortalInfo) |
Resolves e-mail addresses for every member from a SQL Server data portal. |
| InitializeEmailAddressUsingSystemUser | Public Sub InitializeEmailAddressUsingSystemUser(ByVal inDataportal As IDataPortalInfo) |
Resolves e-mail addresses for every member using the system account rather than the caller's identity.* |
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 |
|---|---|---|---|
| CurrentItem | Public Overridable ReadOnly Property CurrentItem() As Object |
The member most recently selected through SetCurrent; collections in this library shadow it to return their own element type.† |
SAIF.Framework.Core — clsBusinessCollectionBase |
| Count | Public ReadOnly Property Count() As Integer |
Number of live members, excluding items moved to the deleted list.† | SAIF.Framework.Core — clsBusinessCollectionBase |
| Add | Public Overridable Function Add(ByVal inItem As Object) As Integer |
Appends a member and returns its ordinal position.† | SAIF.Framework.Core — clsBusinessCollectionBase |
| Contains | Public Overridable Function Contains(ByVal inItem As Object) As Boolean |
Reports whether a member is present in the live collection.† | SAIF.Framework.Core — clsBusinessCollectionBase |
| SetCurrent | Public Overridable Sub SetCurrent(ByVal inKey As Object) |
Selects the member that CurrentItem will return.† |
SAIF.Framework.Core — clsBusinessCollectionBase |
| IsValid | Public Overridable ReadOnly Property IsValid() As Boolean |
Reports whether the object currently breaks any registered business rule.† | SAIF.Framework.Core — clsBusinessBase |
| IsSavable | Public Overridable ReadOnly Property IsSavable() As Boolean |
Reports whether the object may be written back; the read-only types in this library override it to refuse persistence.† | SAIF.Framework.Core — clsBusinessBase |
| BrokenRulesCollection | Public ReadOnly Property BrokenRulesCollection() As clsBrokenRulesCollection |
Carries the messages for the rules currently broken, which is what drives IsValid to false.† |
SAIF.Framework.Core — clsBusinessBase |
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¶
Business/SAIF.Business.View.Policy/clsTeamAssignmentCollection.vb