A user group data model.

Written by Hunter Perrin for SciActive.

Author

Hunter Perrin [email protected]

Copyright

SciActive Inc

See

http://nymph.io/

Hierarchy

Constructors

Properties

$allowlistData?: string[] = ...
$allowlistTags?: string[] = []
$clientEnabledMethods: string[] = ...
$data: GroupData
$dataHandler: Object
$dataStore: GroupData
$isASleepingReference: boolean
$nymph: default
$privateData: string[] = ...
$protectedData: string[]
$protectedTags: string[]
$sdata: SerializedEntityData
$skipAcWhenSaving: boolean = false

This is explicitly used only during the registration proccess.

$sleepingReference: null | EntityReference
$tags: never[] = []
$wakePromise: null | Promise<new AbleObject<GroupData>>
cdate: null | number
guid: null | string
mdate: null | number
tags: string[]
DEFAULT_ALLOWLIST_DATA: string[] = []
DEFAULT_PRIVATE_DATA: string[] = ...
ETYPE: string = 'tilmeld_group'

The instance of Tilmeld to use for queries.

class: string = 'Group'
clientEnabledStaticMethods: string[] = ...
nymph: default
pubSubEnabled: boolean
restEnabled: boolean
searchRestrictedData: string[] = ...

Methods

  • Parameters

    • Rest ...tags: string[]

    Returns void

  • Parameters

    • array: any[]
    • Optional strict: boolean

    Returns number

  • Returns boolean

  • Returns void

  • Check that an email is unique.

    Returns Promise<{
        message: string;
        result: boolean;
    }>

    An object with a boolean 'result' entry and a 'message' entry.

  • Check that a groupname is valid.

    Returns Promise<{
        message: string;
        result: boolean;
    }>

    An object with a boolean 'result' entry and a 'message' entry.

  • Returns void

  • Parameters

    • object: any

    Returns boolean

  • Returns null | string[]

  • Returns null | string

  • Returns null | string[]

  • Returns null | string

  • Returns null | string[]

  • Returns {
        acFull: null | string[];
        acGroup: any;
        acOther: any;
        acRead: null | string[];
        acUser: any;
        acWrite: null | string[];
        group: null | string;
        user: null | string;
    }

    • acFull: null | string[]
    • acGroup: any
    • acOther: any
    • acRead: null | string[]
    • acUser: any
    • acWrite: null | string[]
    • group: null | string
    • user: null | string
  • Parameters

    • Optional includeSData: boolean

    Returns any

  • Get the number of parents the group has.

    If the group is a top level group, this will return 0. If it is a child of a top level group, this will return 1. If it is a grandchild of a top level group, this will return 2, and so on.

    Levels will max out at 1024 to avoid recursive loops.

    Returns Promise<number>

    The level of the group.

  • Returns ACProperties

  • Returns SerializedEntityData

  • Returns string[]

  • Gets an array of users in the group.

    Parameters

    • descendants: boolean = false

      Include users in all descendant groups too.

    • Optional limit: number

      The limit for the query.

    • Optional offset: number

      The offset for the query.

    Returns Promise<(User & UserData)[]>

    An array of users.

  • Parameters

    • Rest ...tags: string[]

    Returns boolean

  • Parameters

    • array: any[]
    • Optional strict: boolean

    Returns boolean

  • Parameters

    • object: any

    Returns boolean

  • Parameters

    • reference: EntityReference

    Returns void

  • Returns Promise<boolean | 0>

  • Parameters

    • Rest ...tags: string[]

    Returns void

  • Update the data protection arrays for a user.

    Parameters

    • Optional givenUser: User & UserData

      User to update protection for. If undefined, will use the currently logged in user.

    Returns void

  • Parameters

    • skipAc: boolean

    Returns void

  • Returns null | EntityJson | EntityReference

  • Get all the groups that can be assigned as primary groups.

    Parameters

    • Optional options: Options

      The options for an optional search query.

    • Optional selectors: Selector[]

      The selectors for an optional search query.

    Returns Promise<(Group & GroupData)[]>

    An array of the assignable primary groups.

  • Get all the groups that can be assigned as secondary groups.

    Parameters

    • Optional options: Options

      The options for an optional search query.

    • Optional selectors: Selector[]

      The selectors for an optional search query.

    Returns Promise<(Group & GroupData)[]>

    An array of the assignable secondary groups.

Generated using TypeDoc