Home Manual Reference Source
public class | source

Core

Provides access to all important classes. Acts as an entry point for the JavaScript API.

Static Method Summary

Static Public Methods
public static

Member Summary

Public Members
public get
public get
public get
public get
public get
public get
public get
public get

Method Summary

Public Methods
public

Creates and returns a dialog builder using the specified title.

public

error(message: string)

Shows an error message.

public

Returns a new form builder for a ModelNode.

public

info(message: string)

Shows an info message.

public

Returns a new form builder for a NamedNode.

public

Returns a new table builder for a NamedNode.

public

Returns a new operation builder.

public

success(message: string)

Shows a success message.

public

Returns a new table builder for a ModelNode.

public

warning(message: string)

Shows a warning message.

Static Public Methods

public static getInstance(): Core source

Return:

Core

the singleton core instance.

Public Members

public get crud: CrudOperations source

Return:

CrudOperations

crud operations

public get dispatcher: Dispatcher source

Return:

Dispatcher

dispatcher

public get endpoints: Endpoints source

Return:

Endpoints

endpoints

public get environment: Environment source

Return:

Environment

environment

public get extensionRegistry: ExtensionRegistry source

Return:

ExtensionRegistry

extension registry

public get metadataProcessor: MetadataProcessor source

Return:

MetadataProcessor

metadata processor

public get metadataRegistry: MetadataRegistry source

Return:

MetadataRegistry

metadata registry

public get statementContext: StatementContext source

Return:

StatementContext

statement context

Public Methods

public dialog(title: string): DialogBuilder source

Creates and returns a dialog builder using the specified title.

Params:

NameTypeAttributeDescription
title string

The dialog title.

Return:

DialogBuilder

a builder to create dialogs

public error(message: string) source

Shows an error message.

Params:

NameTypeAttributeDescription
message string

The error message.

public form(meta: Metadata | AddressTemplate | string): FormBuilder source

Returns a new form builder for a ModelNode.

Params:

NameTypeAttributeDescription
meta Metadata | AddressTemplate | string

The metadata for the form.

Return:

FormBuilder

the form builder

public info(message: string) source

Shows an info message.

Params:

NameTypeAttributeDescription
message string

The info message.

public namedForm(meta: Metadata | AddressTemplate | string): FormBuilder source

Returns a new form builder for a NamedNode.

Params:

NameTypeAttributeDescription
meta Metadata | AddressTemplate | string

The metadata for the form.

Return:

FormBuilder

the form builder

public namedTable(meta: Metadata | AddressTemplate | string): TableBuilder source

Returns a new table builder for a NamedNode.

Params:

NameTypeAttributeDescription
meta Metadata | AddressTemplate | string

The metadata for the table.

Return:

TableBuilder

the table builder

public operation(address: AddressTemplate | ResourceAddress | string, name: string): OperationBuilder source

Returns a new operation builder.

Params:

NameTypeAttributeDescription
address AddressTemplate | ResourceAddress | string

The address.

name string

The operation name.

Return:

OperationBuilder

the operation builder

public success(message: string) source

Shows a success message.

Params:

NameTypeAttributeDescription
message string

The success message.

public table(meta: Object): TableBuilder source

Returns a new table builder for a ModelNode.

Params:

NameTypeAttributeDescription
meta Object

The metadata for the table.

Return:

TableBuilder

the table builder

public warning(message: string) source

Shows a warning message.

Params:

NameTypeAttributeDescription
message string

The warning message.