iya-sts
    Preparing search index...

    Draws Directory → Groups from the answer of GET /admin-api/groups, and the pieces the group drill-down shares with it.

    A static utility class; it holds no state and takes no dependencies.

    Index

    Static ReadonlyENTRY_SUBJECT

    ENTRY_SUBJECT: "entry" = 'entry'
    GROUP_SUBJECT: "group" = 'group'
    GROUPS_SUBJECT: "groups" = 'groups'
    • Parameters

      • entry: any
      • Optionalt: any

      Returns string

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/groups

      Returns string

      the body as HTML

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns any

      the body as HTML

    • Draws a warning when either of the directory's listeners (plain LDAP and LDAPS) is not up, saying which.

      Parameters

      • t: any

        the page's translator

      • info: any

        the LDAP server's listener state

      • subject: any

        what the page shows: ENTRY_SUBJECT, GROUPS_SUBJECT or GROUP_SUBJECT

      Returns string

      the warning as HTML, or '' when both are listening

    • Names a group for a person: its cn, or a placeholder when it has none.

      Parameters

      • t: any

        the page's translator

      • group: any

        the group as the directory reader returns it

      Returns any

      the label as plain text

    • A group's own email address (#989): its first mail value, or ''.

      Parameters

      • group: any

        the group as the directory reader returns it

      Returns string

      the address

    • Draws the cell saying which rule made an entry count as a group.

      Parameters

      • t: any

        the page's translator

      • rule: any

        the rule's key in groupRules()

      Returns string

      the cell's HTML, with the rule's explanation as a tooltip

    • The three rules' labels and tooltips, by rule.

      Parameters

      • t: any

        the page's translator

      Returns any

      { both, placement, objectClass }, each { label, title } as plain text

    • Draws the caveat both groups pages carry.

      Parameters

      • t: any

        the page's translator

      • adminGroups: any

        the two console groups (read, write)

      Returns string

      the caveat as HTML

    • Draws the links at the foot of both groups pages.

      Parameters

      • t: any

        the page's translator

      Returns string

      the links as HTML

    • Draws a group member's DN, linked to its group page when it is a group or to the users page when that person has authenticated here.

      Parameters

      • member: any

        the member row from the group view

      • known: any

        the user keys this console has seen authenticate

      Returns string

      the member's HTML

    • Draws the Owners tab's "closed to its owners" checkbox.

      Parameters

      • t: any

        the translator

      • ownership: any

        { marked, protected, reasons }, or nothing

      • opts: any

        route, id (the tab's anchor), kind, name, back, write, and the page's state

      Returns string

      the HTML; '' where the page carries no ownership facts

    • Draws a group's Owners tab: its owners, and — for Admin Write — the search that adds one and the Remove beside each.

      Parameters

      • t: any

        the page's translator

      • group: any

        the group's view (dn, owners, maxOwners)

      • write: any

        whether the reader may write

      • back: any

        the list view to return to

      • OptionalpageState: any

        the page's state: groupOwners (find, notice, error), after a press

      • Optionalopts: any

        optional; for another kind of thing with owners (#604, a role): route, id (the section's anchor), field and value (the hidden field naming it), stateKey, lead and leadRead (markup), and self (a DN the search may not add; a group's own)

      Returns string

      the tab as HTML

    • Draws a group's policy pickers.

      Parameters

      • t: any

        the page's translator

      • group: any

        the group's entry

      • references: any

        the answer's policyReferences

      • back: any

        the list to return to

      Returns string

      the section as HTML, or ''

    • Draws the "On the users page" cell for a member or a memberOf claimant: a link, a name marked never here, or a dash when there is no name.

      Parameters

      • userKey: any

        the user name derived from the entry, or empty

      • known: any

        the user keys this console has seen authenticate

      • Optionalt: any

        optional; the page's translator. web_delegation.ts calls this without one, and its words are then the default translator's

      Returns string

      the cell's HTML