File

src/lib/services/sz-prefs.service.ts

Description

search form related preferences bus class. used by SzPrefsService to store it's admin area related prefs. Should really be used from SzPrefsService context, not on its own.

Example :
this.prefs.admin.streamConnectionProperties = {
connected: boolean;
clientId?: string;
hostname: string;
sampleSize: number;
port?: number;
connectionTest: boolean;
reconnectOnClose: boolean;
};
Example :
this.prefs.searchResults.prefsChanged.subscribe( (prefs) => { console.log('search form pref change happened.', prefs); })

Extends

SzSdkPrefsBase

Index

Properties
Methods
Accessors

Constructor

constructor()

Properties

jsonKeys
Type : []
Default value : [ 'streamAnalysisConfig', 'streamConnectionProperties', 'streamLoadConfig', 'useStreamingForAnalysis', 'useStreamingForLoad', ]

the keys of member setters or variables in the object to output in json, or to take as json input

Public bulkSet
Type : boolean
Default value : false

during a bulk property set, set this to true to not publish change events on every single value change

Public prefChanged
Type : Subject<literal type>
Default value : new Subject<{name: string, value: any}>()

subject that can be subscribed to for INDIVIDUAL value change notifications.

Public prefsChanged
Type : BehaviorSubject<any>
Default value : new BehaviorSubject<any>(this.toJSONObject())

behavior subject that can be subscribed to for change notifications.

typemap
Type : object
Default value : {}

Methods

Public fromJSONObject
fromJSONObject(value: string)

populate values by calling setters with the same names as json keys

Parameters :
Name Type Optional
value string No
Returns : void
Public getPublicPropertiesSchema
getPublicPropertiesSchema()

gets an array of all public json properties and their types

Returns : {}
Public toJSONObject
toJSONObject()

get shallow JSON copy of object state. properties are filtered by members of jsonKeys

Returns : {}
Public toJSONString
toJSONString()

get object state representation as a string

Returns : string

Accessors

streamAnalysisConfig
getstreamAnalysisConfig()

configuration parameters for doing analysis on a file stream prior to importing

setstreamAnalysisConfig(value: AdminStreamAnalysisConfig)

configuration parameters for doing analysis on a file stream prior to importing

Parameters :
Name Type Optional
value AdminStreamAnalysisConfig No
Returns : void
streamConnectionProperties
getstreamConnectionProperties()

connection parameters defining how and where to stream to bulk-loading endpoints

setstreamConnectionProperties(value: AdminStreamConnProperties | undefined)

connection parameters defining how and where to stream to bulk-loading endpoints

Parameters :
Name Type Optional
value AdminStreamConnProperties | undefined No
Returns : void
streamLoadConfig
getstreamLoadConfig()

configuration parameters for related to importing records using the stream connection

setstreamLoadConfig(value: AdminStreamLoadConfig)

configuration parameters for related to importing records using the stream connection

Parameters :
Name Type Optional
value AdminStreamLoadConfig No
Returns : void
useStreamingForAnalysis
getuseStreamingForAnalysis()

whether or not to use the streamConnectionProperties to do analysis through websocket stream.

Returns : boolean
setuseStreamingForAnalysis(value: boolean)

whether or not to use the streamConnectionProperties to do analysis through websocket stream.

Parameters :
Name Type Optional
value boolean No
Returns : void
useStreamingForLoad
getuseStreamingForLoad()

whether or not to use the streamConnectionProperties to do analysis through websocket stream.

Returns : boolean
setuseStreamingForLoad(value: boolean)

whether or not to use the streamConnectionProperties to do record importing through websocket stream.

Parameters :
Name Type Optional
value boolean No
Returns : void

results matching ""

    No results matching ""