Group and category lookups¶
Group and category lookups is implemented by GroupRepository and is documented as OP-SDN-14 in the Stage 1 analysis.
| Field | Value |
|---|---|
| Operation ID | OP-SDN-14 |
| Trigger | See steps below |
| Primary components | GroupRepository |
Steps¶
GroupFound,GetGroup,GetGroupOrDefaultqueryGroupAssociation(group_association).GetImageCategoryCodesreturns category codes whereFileCode == ImageFileCode.GroupImageFileCode("GROUP").- Rule: SDN-BR-044.
ImageDocumentTypeFoundandGetDocumentTypeOrDefaultlook up by category and document type.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["Group and category lookups"]) --> S1["`GroupRepository`"]
S1 --> S2{"Rules satisfied?"}
S2 -->|Yes| EndOk([Result returned])
S2 -->|No| EndErr([Exception / empty result])
Related documentation¶
Sources¶
Data/SAIF.Data.NHibernate/Repositories/Groups/GroupRepository.cs