- Javascript SDK
Class EntitiesClient
The client responsible for getting, saving and deleting entities.
Constructors
EntitiesClient()
Declaration
Functions
getAsync(param, loadConfiguration)
Gets the xref:IEntity instance with the specified id or identifier.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| param | The id or identifier of the entity to get | |
| loadConfiguration | The loading configuration for the entity |
Returns
| Type | Description |
|---|---|
The entity or null when it was not found. |
getManyAsync(param, loadConfiguration)
Gets the xref:IEntity instances with the specified ids or identifiers.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| param | The ids or identifiers of the entities to get | |
| loadConfiguration | The loading configuration for an entity |
Returns
| Type | Description |
|---|---|
| List of entities. |
getByDefinitionAsync()
{@inheritDoc}
Declaration
getIdsByDefinitionAsync()
{@inheritDoc}
Declaration
getEntityIterator()
{@inheritDoc}
Declaration
getEntityIdIterator()
{@inheritDoc}
Declaration
saveAsync()
{@inheritDoc}
Declaration
deleteAsync()
{@inheritDoc}
Declaration
createEntityAsync(entity)
Creates the specified xref:IEntity in the system.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| entity | The entity to create/save in the system |
updateEntityAsync(entity)
Update the specified xref:IEntity.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| entity | The entity to update |
single(queryResult)
Get an xref:IEntity or null from the specified IEntityQueryResult.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| queryResult | The query result (should contain one or no items) |
Returns
| Type | Description |
|---|---|
An xref:IEntity or null. |
If you have suggestions for improving this article, let us know!