Home Manual Reference Source
public class | source

User

Constructor Summary

Public Constructor
public

constructor(id: string, roles: Array<.string>, profile: Profile, groups: Array<Group>)

Create a User domain model.

Member Summary

Public Members
public

The creation date of the entity.

public

Groups this User is part of.

public

The user identifier.

public

Profile of the User.

public

roles: Array<.Role>

Names of the Roles this user can take on.

public

The most recent update date of the entity.

Public Constructors

public constructor(id: string, roles: Array<.string>, profile: Profile, groups: Array<Group>) source

Create a User domain model.

Params:

NameTypeAttributeDescription
id string
  • nullable: true

The user identifier. If none is given, one is generated.

roles Array<.string>

Names of the Roles this user can take on.

profile Profile
  • nullable: true

Profile of the User.

groups Array<Group>
  • nullable: true

Groups this User is part of.

Throw:

Error

id parameter of type "string|null" is required.

Error

profile parameter of type "Profile|null" is required.

Error

groups parameter of type "Array.<Groups>|null" is required.

Error

non-empty roles parameter of type "Array.<String>" is required.

Public Members

public created: Date source

The creation date of the entity.

public groups: Array<Group> source

Groups this User is part of.

public id: string source

The user identifier. If none is given, one is generated.

public profile: Profile source

Profile of the User.

public roles: Array<.Role> source

Names of the Roles this user can take on.

public updated: Date source

The most recent update date of the entity.