Reference Source
public class | source

AssetsSvcProvider

Extends:

devapt-core-common/dist/js/services/service_provider~ServiceProvider → AssetsSvcProvider

Assets service provider class.

Constructor Summary

Public Constructor
public

constructor(arg_provider_name: string, arg_service_instance: Service, arg_context: string): nothing

Create a assets service provider.

Member Summary

Public Members
public

exec: Executable

Executable instance.

public

Class test flag.

Method Summary

Public Methods
public abstract

Get provider operations names.

public

Get plugin asset file path name.

public

produce(arg_request: ServiceRequest): Promise

Produce service datas on request.

Public Constructors

public constructor(arg_provider_name: string, arg_service_instance: Service, arg_context: string): nothing source

Create a assets service provider.

Params:

NameTypeAttributeDescription
arg_provider_name string

consumer name.

arg_service_instance Service

service instance.

arg_context string

logging context label.

Return:

nothing

Public Members

public exec: Executable source

Executable instance.

public is_assets_svc_provider: boolean source

Class test flag.

Public Methods

public abstract get_operations_names(): array source

Get provider operations names.

Return:

array

public get_plugin_asset_file_path(arg_asset_name: string): string | undefined source

Get plugin asset file path name.

Params:

NameTypeAttributeDescription
arg_asset_name string

asset name to lookup for.

Return:

string | undefined

asset file path name or undefined if not found.

public produce(arg_request: ServiceRequest): Promise source

Produce service datas on request.

Params:

NameTypeAttributeDescription
arg_request ServiceRequest

service request instance.

Return:

Promise

promise of ServiceResponse instance.