Skip to main content

Group

Extends

Constructors

new Group()

new Group(dart): Group

Parameters

ParameterType
dartany

Returns

Group

Overrides

Entity . constructor

Constructs

Group

Source

src/entities.ts:957

Properties

PropertyModifierTypeInherited from
dartpublicanyEntity.dart

Accessors

adminMembers

get adminMembers(): Group[]

Returns list of groups that belong to group, with admin permissions

Returns

Group[]

Source

src/entities.ts:993


adminMemberships

get adminMemberships(): Group[]

Returns list of groups that group belongs to, with admin permissions

Returns

Group[]

Source

src/entities.ts:1001


author

get author(): User

Who created entity *

Returns

User

Source

src/entities.ts:124


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Source

src/entities.ts:115


friendlyName

get friendlyName(): string

Entity friendly name

set friendlyName(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:101


hidden

get hidden(): boolean

Hidden group

set hidden(e): void

Parameters

ParameterType
eboolean

Returns

boolean

Source

src/entities.ts:1008


id

get id(): string

Entity ID (GUID)

set id(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:93


members

get members(): Group[]

Returns list of groups that belong to group, with no admin permissions

Returns

Group[]

Source

src/entities.ts:989


memberships

get memberships(): Group[]

Returns list of groups that group belongs to, with no admin permissions

Returns

Group[]

Source

src/entities.ts:997


name

get name(): string

Entity short name

set name(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:105


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Source

src/entities.ts:109


path

get path(): string

Entity path

Returns

string

Source

src/entities.ts:112


personal

get personal(): boolean

Personal user group

set personal(e): void

Parameters

ParameterType
eboolean

Returns

boolean

Source

src/entities.ts:1004


updatedOn

get updatedOn(): null | Dayjs

Time when entity was updated *

Returns

null | Dayjs

Source

src/entities.ts:118


admin

get static admin(): Group

Returns

Group

Source

src/entities.ts:1031


administrators

get static administrators(): Group

Returns

Group

Source

src/entities.ts:1035


allUsers

get static allUsers(): Group

Returns

Group

Source

src/entities.ts:1023


defaultGroupsIds

get static defaultGroupsIds(): object

Returns

object

MemberTypeValue
Admin"a4b45840-9a50-11e6-c537-6bf8e9ab02ee""a4b45840-9a50-11e6-c537-6bf8e9ab02ee"
Administrators"1ab8b38d-9c4e-4b1e-81c3-ae2bde3e12c5""1ab8b38d-9c4e-4b1e-81c3-ae2bde3e12c5"
All users"a4b45840-9a50-11e6-9cc9-8546b8bf62e6""a4b45840-9a50-11e6-9cc9-8546b8bf62e6"
Developers"ba9cd191-9a50-11e6-9cc9-910bf827f0ab""ba9cd191-9a50-11e6-9cc9-910bf827f0ab"
Need to create"00000000-0000-0000-0000-000000000000""00000000-0000-0000-0000-000000000000"
System"a4b45840-ac9c-4d39-8b4b-4db3e576b3c3""a4b45840-ac9c-4d39-8b4b-4db3e576b3c3"
Test"ca1e672e-e3be-40e0-b79b-8546b8bf62e6""ca1e672e-e3be-40e0-b79b-8546b8bf62e6"

Source

src/entities.ts:1011


developers

get static developers(): Group

Returns

Group

Source

src/entities.ts:1025


needToCreate

get static needToCreate(): Group

Returns

Group

Source

src/entities.ts:1027


system

get static system(): Group

Returns

Group

Source

src/entities.ts:1033


test

get static test(): Group

Returns

Group

Source

src/entities.ts:1029

Methods

addAdminMember()

addAdminMember(m): void

Adds an admin member to the group

Parameters

ParameterTypeDescription
mGroup

Returns

void

Source

src/entities.ts:969


addMember()

addMember(m): void

Adds a member to the group

Parameters

ParameterTypeDescription
mGroup

Returns

void

Source

src/entities.ts:965


excludeFrom()

excludeFrom(m): void

Removes membership from another group

Parameters

ParameterTypeDescription
mGroup

Returns

void

Source

src/entities.ts:985


getProperties()

getProperties(): Promise<object>

Gets entity properties

Returns

Promise<object>

Inherited from

Entity . getProperties

Source

src/entities.ts:127


hasTag()

hasTag(tag): boolean

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . hasTag

Source

src/entities.ts:139


includeAdminTo()

includeAdminTo(m): void

Adds the group to another one as an admin

Parameters

ParameterTypeDescription
mGroup

Returns

void

Source

src/entities.ts:981


includeTo()

includeTo(m): void

Adds the group to another one

Parameters

ParameterTypeDescription
mGroup

Returns

void

Source

src/entities.ts:977


newId()

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Entity . newId

Source

src/entities.ts:97


removeMember()

removeMember(m): void

Removes a member from the group

Parameters

ParameterTypeDescription
mGroup

Returns

void

Source

src/entities.ts:973


setProperties()

setProperties(props): Promise<any>

Sets entity properties

Parameters

ParameterType
propsobject

Returns

Promise<any>

Inherited from

Entity . setProperties

Source

src/entities.ts:132


tag()

tag(tag): boolean

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . tag

Source

src/entities.ts:142


toString()

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Entity . toString

Source

src/entities.ts:137


unTag()

unTag(tag): boolean

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . unTag

Source

src/entities.ts:145


create()

static create(name): Group

Parameters

ParameterType
namestring

Returns

Group

Source

src/entities.ts:961