Entity
Base class for system objects stored in the database in a structured manner. Contains base properties: id, name and path
Extended by
User
UserSession
Func
Project
DataConnection
Model
Notebook
TableInfo
ColumnInfo
FileInfo
Group
Credentials
ScriptEnvironment
LogEventType
LogEvent
LogEventParameter
LogEventParameterValue
Package
DockerContainer
UserReport
UserReportsRule
DockerImage
FuncCall
ViewLayout
ViewInfo
Constructors
new Entity()
new Entity(
dart
):Entity
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Constructs
Entity
Source
Properties
Property | Modifier | Type |
---|---|---|
dart | public | any |
Accessors
author
get
author():User
Who created entity *
Returns
Source
createdOn
get
createdOn():Dayjs
Time when entity was created *
Returns
Dayjs
Source
friendlyName
get
friendlyName():string
Entity friendly name
set
friendlyName(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
id
get
id():string
Entity ID (GUID)
set
id(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
name
get
name():string
Entity short name
set
name(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
nqName
get
nqName():string
Entity full-qualified name
Returns
string
Source
path
get
path():string
Entity path
Returns
string
Source
updatedOn
get
updatedOn():null
|Dayjs
Time when entity was updated *
Returns
null
| Dayjs
Source
Methods
getProperties()
getProperties():
Promise
<object
>
Gets entity properties
Returns
Promise
<object
>
Source
hasTag()
hasTag(
tag
):boolean
Parameters
Parameter | Type |
---|---|
tag | string |
Returns
boolean
Source
newId()
newId():
void
Generates new id for this entity.
Returns
void
Source
setProperties()
setProperties(
props
):Promise
<any
>
Sets entity properties
Parameters
Parameter | Type |
---|---|
props | object |
Returns
Promise
<any
>
Source
tag()
tag(
tag
):boolean
Adds a specified tag
Parameters
Parameter | Type |
---|---|
tag | string |
Returns
boolean
Source
toString()
toString():
string
Returns a string representing the object
Returns
string
Source
unTag()
unTag(
tag
):boolean
Removes a specified tag
Parameters
Parameter | Type |
---|---|
tag | string |
Returns
boolean