Reference Source
public class | source

ExecutableRouteModelCrud

Extends:

devapt-core-common/dist/js/base/executable~ExecutableExecutableRoute → ExecutableRouteModelCrud

Constructor Summary

Public Constructor
public

constructor(): nothing

Create a route registration executable for CRUD operations

Method Summary

Public Methods
public

process_route(arg_server: object, arg_application: object, arg_cfg_route: object, arg_data: object): object

Process a route registering.

Inherited Summary

From class ExecutableRoute
protected

Executable server.

protected

Executable settings.

public

execute(arg_data: object): object

Execution with contextual informations.

public abstract

get_route_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function)

Callback for route handling.

public

get_route_redirect_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function): *

Callback for redirect route handling.

public

prepare(arg_settings: object): nothing

Prepare an execution with contextual informations.

public

process_route(arg_server: Server, arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object): Promise

Process a route registering.

Public Constructors

public constructor(): nothing source

Create a route registration executable for CRUD operations

Override:

ExecutableRoute#constructor

Return:

nothing

Public Methods

public process_route(arg_server: object, arg_application: object, arg_cfg_route: object, arg_data: object): object source

Process a route registering.

Override:

ExecutableRoute#process_route

Params:

NameTypeAttributeDescription
arg_server object

Server instance.

arg_application object

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

Return:

object

promise with a boolean resolved value (true:success, false: failure).