User
Represents a user of the Datagrok platform.
Extends
Constructors
new User()
new User(
dart):User
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Overrides
Constructs
User
Source
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
dart | public | any | Entity.dart |
Accessors
author
getauthor():User
Who created entity *
Returns
Source
createdOn
getcreatedOn():Dayjs
Time when entity was created *
Returns
Dayjs
Source
email
getemail():null|string
setemail(void
Parameters
| Parameter | Type |
|---|---|
email | null | string |
Returns
null | string
Source
firstName
getfirstName():string
First name
setfirstName(name):void
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
string
Source
friendlyName
getfriendlyName():string
Entity friendly name
setfriendlyName(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
group
getgroup():Group
Security Group
Returns
Source
home
gethome():DataConnection
User home folder connection
Returns
Source
id
getid():string
Entity ID (GUID)
setid(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
joined
getjoined():Dayjs
Date when user joined
Returns
Dayjs
Source
lastName
getlastName():string
Last name
setlastName(name):void
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
string
Source
login
getlogin():string
Login
setlogin(login):void
Parameters
| Parameter | Type |
|---|---|
login | string |
Returns
string
Source
name
getname():string
Entity short name
setname(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
nqName
getnqName():string
Entity full-qualified name
Returns
string
Source
path
getpath():string
Entity path
Returns
string
Source
picture
getpicture():string|object
Picture URL
Returns
string | object
Source
project
getproject():Project
User home project
Returns
Source
status
getstatus():USER_STATUS
setstatus(name):void
Parameters
| Parameter | Type |
|---|---|
name | USER_STATUS |
Returns
Source
updatedOn
getupdatedOn():null|Dayjs
Time when entity was updated *
Returns
null | Dayjs
Source
admin
getstaticadmin():User
Returns
Source
defaultUsersIds
getstaticdefaultUsersIds():object
Returns
object
| Member | Type | Value |
|---|---|---|
Admin | "878c42b0-9a50-11e6-c537-6bf8e9ab02ee" | "878c42b0-9a50-11e6-c537-6bf8e9ab02ee" |
System | "3e32c5fa-ac9c-4d39-8b4b-4db3e576b3c3" | "3e32c5fa-ac9c-4d39-8b4b-4db3e576b3c3" |
Test | "ca1e672e-e3be-40e0-b79b-d2c68e68d380" | "ca1e672e-e3be-40e0-b79b-d2c68e68d380" |
Source
system
getstaticsystem():User
Returns
Source
test
getstatictest():User
Returns
Source
Methods
getProperties()
getProperties():
Promise<object>
Gets entity properties
Returns
Promise<object>
Inherited from
Source
hasTag()
hasTag(
tag):boolean
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
boolean
Inherited from
Source
newId()
newId():
void
Generates new id for this entity.
Returns
void
Inherited from
Source
setProperties()
setProperties(
props):Promise<any>
Sets entity properties
Parameters
| Parameter | Type |
|---|---|
props | object |
Returns
Promise<any>
Inherited from
Source
tag()
tag(
tag):boolean
Adds a specified tag
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
boolean
Inherited from
Source
toMarkup()
toMarkup():
string
Returns
string
Source
toString()
toString():
string
Returns a string representing the object
Returns
string
Inherited from
Source
unTag()
unTag(
tag):boolean
Removes a specified tag
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
boolean
Inherited from
Source
create()
staticcreate():User
Creates a new user. Note that it's just a client object, it won't be saved in the database.
Returns
Source
current()
staticcurrent():User
Returns current user.
Returns
Source
fromId()
staticfromId(id):User
Parameters
| Parameter | Type |
|---|---|
id | string |