Skip to content

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

  1. GroupFound, GetGroup, GetGroupOrDefault query GroupAssociation (group_association).
  2. GetImageCategoryCodes returns category codes where FileCode == ImageFileCode.GroupImageFileCode ("GROUP").
  3. Rule: SDN-BR-044.
  4. ImageDocumentTypeFound and GetDocumentTypeOrDefault look 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])

Sources

  • Data/SAIF.Data.NHibernate/Repositories/Groups/GroupRepository.cs