clsTaskPriorityCodeCollection¶
clsTaskPriorityCodeCollection loads all TASK_PRIORITY_CODE rows and provides the code↔enum translation and well-known priority-level constants used throughout the task search subsystem's priority filtering.
Purpose¶
- Retrieve the full priority-code reference list (SQL-010).
- Translate between the database code string and the
TaskPriorityenum in both directions, defaulting unrecognized codes toInformational(BR-025). - Expose the well-known priority-level code constants consumed by
clsTaskCollection.Criteria.FormatPriorityParameter(BR-018).
Context¶
- Namespace:
SAIF.Business.Tasks - Assembly/package:
SAIF.Business.Tasks(embedded in theLegalMaintenanceweb deployment)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
cInfo, cLow, cMedium, cHigh, cUrgent |
Const cX As String |
Well-known priority-code literals (INFO, LOW, MED, HIGH, URG) used to build priority-level IN predicates (BR-018). |
Priority |
Shared Function Priority(inCode As String) As TaskPriority |
Translates a database priority code to the TaskPriority enum; unrecognized values return Informational (BR-025). |
Priority |
Shared Function Priority(inPriority As TaskPriority) As String |
Translates a TaskPriority enum value back to its database code string. |
Item |
Default ReadOnly Property Item(inPriority As TaskPriority) As clsTaskPriorityCode |
Looks up the loaded code object matching a TaskPriority value. |
Description |
ReadOnly Property Description(inPriority As TaskPriority) As String |
Looks up the description string matching a TaskPriority value. |
GetCodes |
Shared Function GetCodes(dpi As IDataPortalInfo) As clsTaskPriorityCodeCollection |
Factory/retrieval entry point that loads the entire priority-code table (SQL-010). |
Criteria |
Friend Class Criteria (nested, implements IBusinessCriteria) |
Read-only criteria for this code table; write-SQL properties throw ApplicationException(clsConstants.Messages.InvalidSQLProperty) (BR-023). |
Behavioral notes¶
- The class is
<Serializable()>, consistent with remoting/session persistence of BOF objects across the web tier*. - The priority-level constants are consumed by
clsTaskCollection.Criteria.FormatPriorityParameter, whoseUrgentbranch produces an unbalancedIN (clause — a likely defect in the caller, not in this type*.
Constraints and usage notes¶
- Any attempt to use
CreateSQL/InsertSQL/UpdateSQL/DeleteSQLon this type'sCriteriathrowsApplicationException(clsConstants.Messages.InvalidSQLProperty)(BR-023).
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Related documentation¶
Sources¶
- SAIF.Business.Tasks/clsTaskPriorityCodeCollection.vb